Sha256: 3abbe0dfa72acda8a4618de7fe8b55206a6595701e2417363f2051918c143924
Contents?: true
Size: 329 Bytes
Versions: 7
Compression:
Stored size: 329 Bytes
Contents
RSpec::Matchers.define :clear_hash_when_cleared do |property| match do |object| object.send(property.to_sym)['key'] = 'value' object.clear! object.send(property.to_sym).should 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
7 entries across 7 versions & 2 rubygems