Skip to content

Commit

Permalink
Merge pull request rails#44128 from zzak/issue/44107
Browse files Browse the repository at this point in the history
Remove assert_not_called Object#=~ here for Ruby 3.2 compat
  • Loading branch information
kamipo authored Jan 9, 2022
2 parents 45621ef + 1414a15 commit c79ad9d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions activerecord/test/cases/relation/mutation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ class RelationMutationTest < ActiveRecord::TestCase

test "#order! on non-string does not attempt regexp match for references" do
obj = Object.new
assert_not_called(obj, :=~) do
assert relation.order!(obj)
assert_equal [obj], relation.order_values
end
assert relation.order!(obj)
assert_equal [obj], relation.order_values
end

test "extending!" do
Expand Down

0 comments on commit c79ad9d

Please sign in to comment.