Sha256: 0764f80d1a89fa4543de5f54cbc7600cab91e2e143e3a595820949c60b6a56f7
Contents?: true
Size: 529 Bytes
Versions: 33
Compression:
Stored size: 529 Bytes
Contents
RSpec::Matchers.define :have_attr_accessor do |field| match do |object_instance| object_instance.respond_to?(field) && object_instance.respond_to?("#{field}=") end failure_message do |object_instance| "expected attr_accessor for #{field} on #{object_instance}" end failure_message_when_negated do |object_instance| "expected attr_accessor for #{field} not to be defined on #{object_instance}" end description do "checks to see if there is an attr accessor on the supplied object" end end
Version data entries
33 entries across 33 versions & 2 rubygems