-
-
Save mvz/758a60339a1a1b6902f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RSpec.configure do |config| | |
config.after(:each) do | |
next if RSpec::Matchers.last_should | |
result = self.example.metadata[:execution_result] | |
next if result[:exception] || result[:pending_message] | |
next if RSpec::Mocks.space.instance_eval { proxies }.any? | |
raise "No expectations found in example at #{self.example.location}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment