diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-10-25 07:18:28 -0500 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-10-25 07:18:28 -0500 |
commit | 438d553b76f59eed003c8e4bb569936e68e0e7c2 (patch) | |
tree | 4c7b2d1b842d35937ac4c4d7b129885179b99e07 /test/attributes | |
parent | 2347f153b1303e32811e4aef69ddf81771b25ac5 (diff) | |
download | rails-438d553b76f59eed003c8e4bb569936e68e0e7c2.tar.gz rails-438d553b76f59eed003c8e4bb569936e68e0e7c2.tar.bz2 rails-438d553b76f59eed003c8e4bb569936e68e0e7c2.zip |
💣
Diffstat (limited to 'test/attributes')
-rw-r--r-- | test/attributes/test_attribute.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/attributes/test_attribute.rb b/test/attributes/test_attribute.rb index 264ba7e878..0851a07258 100644 --- a/test/attributes/test_attribute.rb +++ b/test/attributes/test_attribute.rb @@ -712,7 +712,7 @@ module Arel attribute = Attribute.new nil, nil node = attribute.not_in(1..3) - node.must_equal Nodes::Or.new( + node.must_equal Nodes::Grouping.new(Nodes::Or.new( Nodes::LessThan.new( attribute, Nodes::Casted.new(1, attribute) @@ -721,7 +721,7 @@ module Arel attribute, Nodes::Casted.new(3, attribute) ) - ) + )) end it 'can be constructed with a range starting from -Infinity' do @@ -765,7 +765,7 @@ module Arel attribute = Attribute.new nil, nil node = attribute.not_in(0...3) - node.must_equal Nodes::Or.new( + node.must_equal Nodes::Grouping.new(Nodes::Or.new( Nodes::LessThan.new( attribute, Nodes::Casted.new(0, attribute) @@ -774,7 +774,7 @@ module Arel attribute, Nodes::Casted.new(3, attribute) ) - ) + )) end end |