Sha256: 7d7e139cea529e845c8574f5b2634bd73809f78161f6449cca027e704ea12fe3
Contents?: true
Size: 306 Bytes
Versions: 2
Compression:
Stored size: 306 Bytes
Contents
RSpec::Matchers.define :have_hash_accessor_for do |property| match do |object| object.send(property.to_sym)['key'] = 'value' expect(object.send(property.to_sym)['key']).to eq 'value' end failure_message do "Expected #{object} to have accessor for #{property}, but it did not." end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fake_braintree-0.8.0 | spec/support/matchers/have_accessor_for.rb |
fake_braintree-0.7.0 | spec/support/matchers/have_accessor_for.rb |