We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f23576 + 646538e commit 927b3b5Copy full SHA for 927b3b5
activerecord/test/cases/arel/attributes/attribute_test.rb
@@ -658,6 +658,16 @@ class AttributeTest < Arel::Spec
658
)
659
end
660
661
+ it "can be constructed with an exclusive range implicitly ending at Infinity" do
662
+ attribute = Attribute.new nil, nil
663
+ node = attribute.between(0...)
664
+
665
+ _(node).must_equal Nodes::GreaterThanOrEqual.new(
666
+ attribute,
667
+ Nodes::Casted.new(0, attribute)
668
+ )
669
+ end
670
671
it "can be constructed with a quoted range ending at Infinity" do
672
attribute = Attribute.new nil, nil
673
node = attribute.between(quoted_range(0, ::Float::INFINITY, false))
0 commit comments