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

Show the example a warning occurred in if nil call site is given. #28

Closed
wants to merge 1 commit into from

Conversation

fables-tales
Copy link
Member

Sometimes we issue warnings outside of a user's spec, but the warning was caused by something the user did.. An example of this is in: rspec/rspec-mocks#496 where we want to tell the user where the error came from, but we can't really detect where the object was frozen.

This prints that if a nil call site is given.

@fables-tales
Copy link
Member Author

Oh right, I need to push a method to RSpec-core as well. I think this change actually wants to live in RSpec-core that adds the spec location warning.

@JonRowe
Copy link
Member

JonRowe commented Jan 15, 2014

Pretty sure source_location is only 1.9 and above too...

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.

2 participants