Sha256: 1432c96db95bd2dd26d629a29f590659aa406bf14d5dab37c168501a90ee3c3e
Contents?: true
Size: 318 Bytes
Versions: 3
Compression:
Stored size: 318 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 do "Expected #{object} to clear #{property} hash after clear!, but it did not." end end
Version data entries
3 entries across 3 versions & 1 rubygems