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 |