1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
This commit is contained in:
Sean Griffin 2014-10-25 07:18:28 -05:00
parent 2347f153b1
commit 438d553b76

View file

@ -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