mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
💣
This commit is contained in:
parent
2347f153b1
commit
438d553b76
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue