From 3b5b5d99ff9f68f00d9e121715e429ddbd8795cf Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 9 Apr 2014 10:24:41 -0700 Subject: make the bindvalue visitor backwards compatible --- test/visitors/test_bind_visitor.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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 -- cgit v1.2.3