Skip to content

Commit

Permalink
Merge pull request #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 and rafaelfranca committed Jan 10, 2022
1 parent c315b9d commit 65bd37c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions activerecord/test/cases/relation/mutation_test.rb
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 65bd37c

Please sign in to comment.