spec/integration/matcher_spec.rb in sinclair-1.1.2 vs spec/integration/matcher_spec.rb in sinclair-1.1.3
- old
+ new
@@ -31,9 +31,10 @@
context 'when method existed before' do
before do
block.call
end
+
it 'raises expectation error' do
expect { expectation }.to raise_error(
RSpec::Expectations::ExpectationNotMetError,
"expected 'the_method' to be added to #{klass} but it already existed"
)