diff options
Diffstat (limited to 'test/visitors')
-rw-r--r-- | test/visitors/test_to_sql.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/visitors/test_to_sql.rb b/test/visitors/test_to_sql.rb index b142ecd695..0a7af91397 100644 --- a/test/visitors/test_to_sql.rb +++ b/test/visitors/test_to_sql.rb @@ -237,9 +237,9 @@ module Arel end it "should visit_Arel_Nodes_And" do - node = Nodes::And.new [@attr.eq(10), @attr.eq(11)] + node = Nodes::And.new [@attr.eq(10), [@attr.eq(11), @attr.eq(12)]] @visitor.accept(node).must_be_like %{ - "users"."id" = 10 AND "users"."id" = 11 + "users"."id" = 10 AND "users"."id" = 11 AND "users"."id" = 12 } end |