diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-09 10:24:41 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-09 10:24:41 -0700 |
commit | 3b5b5d99ff9f68f00d9e121715e429ddbd8795cf (patch) | |
tree | 2f8c14545c21a171cd26c6b5a6c8bc51788d1930 /test | |
parent | 5d403e45858956e89d323e44ab7b413f80f5171f (diff) | |
download | rails-3b5b5d99ff9f68f00d9e121715e429ddbd8795cf.tar.gz rails-3b5b5d99ff9f68f00d9e121715e429ddbd8795cf.tar.bz2 rails-3b5b5d99ff9f68f00d9e121715e429ddbd8795cf.zip |
make the bindvalue visitor backwards compatible
Diffstat (limited to 'test')
-rw-r--r-- | test/visitors/test_bind_visitor.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/visitors/test_bind_visitor.rb b/test/visitors/test_bind_visitor.rb index a04a04f4cb..5171bbe57c 100644 --- a/test/visitors/test_bind_visitor.rb +++ b/test/visitors/test_bind_visitor.rb @@ -25,8 +25,8 @@ module Arel }.new Table.engine.connection assignment = um.ast.values[0] - actual = visitor.accept(assignment, collector) { |collector| - collector << "replace" + actual = visitor.accept(assignment, collector) { + "replace" } assert actual value = actual.value @@ -43,7 +43,7 @@ module Arel bp = Nodes::BindParam.new 'omg' called = false - visitor.accept(bp, collector) { |collector| called = true } + visitor.accept(bp, collector) { called = true } assert called end |