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

Does not swallow NameError on determine_constant_from_test_name. #14574

Closed
wants to merge 1 commit into from
Closed

Does not swallow NameError on determine_constant_from_test_name. #14574

wants to merge 1 commit into from

Conversation

laurocaetano
Copy link
Contributor

It is an attempt to fix #9933.

With this change, when a constant is not defined, it will raise NameError. Also I removed the tests that were expecting inexistent constant to return nil.

I'm not sure if there was a reason not to raise NameError. Does it make sense?

@laurocaetano
Copy link
Contributor Author

Closing, see: #9933 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Obscure error message in the tests if using undefined class method in controller
1 participant