lib/eventsimple/support/spec_helpers.rb in eventsimple-1.2.0 vs lib/eventsimple/support/spec_helpers.rb in eventsimple-1.2.1
- old
+ new
@@ -43,5 +43,7 @@
it 'does not write event on save!' do
expect { event.save! }.not_to change(event.class, :count)
end
end
end
+
+RSpec::Matchers.define_negated_matcher(:not_change, :change)