Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove assert_not_called Object#=~ here for Ruby 3.2 compat #44128

Merged
merged 1 commit into from Jan 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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