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:
commit
c79ad9d227
1 changed files with 2 additions and 4 deletions
|
@ -32,11 +32,9 @@ module ActiveRecord
|
||||||
|
|
||||||
test "#order! on non-string does not attempt regexp match for references" do
|
test "#order! on non-string does not attempt regexp match for references" do
|
||||||
obj = Object.new
|
obj = Object.new
|
||||||
assert_not_called(obj, :=~) do
|
|
||||||
assert relation.order!(obj)
|
assert relation.order!(obj)
|
||||||
assert_equal [obj], relation.order_values
|
assert_equal [obj], relation.order_values
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
test "extending!" do
|
test "extending!" do
|
||||||
mod, mod2 = Module.new, Module.new
|
mod, mod2 = Module.new, Module.new
|
||||||
|
|
Loading…
Reference in a new issue