Skip to content

Instantly share code, notes, and snippets.

View mvz's full-sized avatar

Matijs van Zuijlen mvz

View GitHub Profile
@mvz
mvz / spec_helper.rb
Last active August 29, 2015 14:05 — forked from sorah/spec_helper.rb
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