Sha256: 89710a362fbb149b81b204cc3a26cd0a252e9e52b8df81bebd840c9d3b535f09
Contents?: true
Size: 577 Bytes
Versions: 46
Compression:
Stored size: 577 Bytes
Contents
RSpec::Matchers.define :allow_attribute do |attribute| description do "allow zero or more items for #{attribute}" end failure_message_for_should do |module_instance| "expected that #{module_instance} with #{module_instance.module_type} #module_type would allow #{attribute} zero or more items" end failure_message_for_should_not do |module_instance| "expected that #{module_instance} with #{module_instance.module_type} would not allow #{attribute} zero or more items" end match do |module_instance| module_instance.allows?(attribute) end end
Version data entries
46 entries across 46 versions & 1 rubygems