Skip to content

Commit

Permalink
Fix "global use of must_equal" deprecation warning
Browse files Browse the repository at this point in the history
Followup to e01bf7f, fixing two new
occurrences introduced in 1c3a6e8.
  • Loading branch information
eugeneius committed May 2, 2020
1 parent e9075d5 commit 675d379
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/test/cases/arel/attributes/attribute_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ class AttributeTest < Arel::Spec
attribute = Attribute.new nil, nil
node = attribute.between(eval("..0")) # eval for backwards compatibility

node.must_equal Nodes::LessThanOrEqual.new(
_(node).must_equal Nodes::LessThanOrEqual.new(
attribute,
Nodes::Casted.new(0, attribute)
)
Expand Down Expand Up @@ -856,7 +856,7 @@ class AttributeTest < Arel::Spec
attribute = Attribute.new nil, nil
node = attribute.not_between(eval("..0")) # eval for backwards compatibility

node.must_equal Nodes::GreaterThan.new(
_(node).must_equal Nodes::GreaterThan.new(
attribute,
Nodes::Casted.new(0, attribute)
)
Expand Down

0 comments on commit 675d379

Please sign in to comment.