diff options
author | Kazuki Hasegawa <k_hasegawa@timedia.co.jp> | 2014-04-03 12:38:26 +0900 |
---|---|---|
committer | Kazuki Hasegawa <k_hasegawa@timedia.co.jp> | 2014-04-03 12:38:38 +0900 |
commit | 8e3e04f47dd356ec6a0adba32a440ce388767faa (patch) | |
tree | 7500812a9448416ebcf4d45917de249b9f6248a3 /test | |
parent | a35fede61ac1a2fcff519ad052f2fcb8808922b9 (diff) | |
download | rails-8e3e04f47dd356ec6a0adba32a440ce388767faa.tar.gz rails-8e3e04f47dd356ec6a0adba32a440ce388767faa.tar.bz2 rails-8e3e04f47dd356ec6a0adba32a440ce388767faa.zip |
flatten object.children in visit_Arel_Node_And
Diffstat (limited to 'test')
-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 |