1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #44128 from zzak/issue/44107

Remove assert_not_called Object#=~ here for Ruby 3.2 compat
This commit is contained in:
Ryuta Kamizono 2022-01-10 03:52:41 +09:00 committed by GitHub
commit c79ad9d227
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,10 +32,8 @@ module ActiveRecord
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