Sha256: ff12f207b302963b687630a5eb399b14cf3917fffc0ff1199cdedc0ead43e3fa
Contents?: true
Size: 483 Bytes
Versions: 1
Compression:
Stored size: 483 Bytes
Contents
RSpec::Matchers.define :have_attribute_values do |expected| match do |actual| actual.has_attribute_values?(expected) end failure_message do |actual| %(expected: #{expected.symbolize_keys.inspect}\n) + %( got: #{actual.attributes.slice(*expected.stringify_keys.keys).symbolize_keys.inspect}) end failure_message_when_negated do |actual| %(expected #{actual.inspect}\n) + %(not to have attribute values #{expected.symbolize_keys.inspect}) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_record_ignored_attributes-0.0.5 | lib/active_record_ignored_attributes/matchers/have_attribute_values.rb |