Sha256: 1112545b6d9ba69a2e2412155d080624883e3d0979edaddf886514bde46a2a40
Contents?: true
Size: 333 Bytes
Versions: 2
Compression:
Stored size: 333 Bytes
Contents
RSpec::Matchers.define :clear_hash_when_cleared do |property| match do |object| object.send(property.to_sym)['key'] = 'value' object.clear! expect(object.send(property.to_sym)).to be_empty end failure_message_for_should do "Expected #{object} to clear #{property} hash after clear!, but it did not." end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fake_braintree-0.6.0 | spec/support/matchers/clear_hash_when_cleared.rb |
fake_braintree-0.5.0 | spec/support/matchers/clear_hash_when_cleared.rb |