diff options
-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 |