Sha256: 934e023dee789e38fa84ae82c3888ace147bd59103617f6c0f70f1565fefe2c1

Contents?: true

Size: 564 Bytes

Versions: 22

Compression:

Stored size: 564 Bytes

Contents

RSpec::Matchers.define :allow_attribute do |attribute|
  description do
    "allow zero or more items for #{attribute}"
  end

  failure_message do |module_instance|
    "expected that #{module_instance} with #{module_instance.module_type} #module_type would allow #{attribute} zero or more items"
  end

  failure_message_when_negated 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

22 entries across 22 versions & 1 rubygems

Version Path
metasploit-model-2.0.0 spec/support/matchers/allow_attribute.rb
metasploit-model-1.1.0 spec/support/matchers/allow_attribute.rb