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

Add tests for ArgumentError errors in finder methods #42287

Conversation

martinjaimem
Copy link
Contributor

@martinjaimem martinjaimem commented May 25, 2021

Summary

This PR includes enhancements to the tests of the ArgumentError error message for some finder methods:

  • Enhanced test for calling #find with an instance of ActiveRecord::Base (now checks the error message).
  • Enhanced test for calling #exists? with an instance of ActiveRecord::Base (now checks the error message).
  • Added test for calling #update with an instance of ActiveRecord::Base

@martinjaimem martinjaimem force-pushed the enhancement/add-tests-for-argument-error-on-finder-methods branch from c459792 to 93c15c3 Compare May 25, 2021 01:36
@kamipo kamipo merged commit a8461b7 into rails:main May 25, 2021
@martinjaimem martinjaimem deleted the enhancement/add-tests-for-argument-error-on-finder-methods branch May 25, 2021 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants