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-5.0.2 spec/support/matchers/allow_attribute.rb
metasploit-model-5.0.1 spec/support/matchers/allow_attribute.rb
metasploit-model-5.0.0 spec/support/matchers/allow_attribute.rb
metasploit-model-4.0.6 spec/support/matchers/allow_attribute.rb
metasploit-model-4.0.5 spec/support/matchers/allow_attribute.rb
metasploit-model-4.0.4 spec/support/matchers/allow_attribute.rb
metasploit-model-4.0.3 spec/support/matchers/allow_attribute.rb
metasploit-model-4.0.2 spec/support/matchers/allow_attribute.rb
metasploit-model-4.0.1 spec/support/matchers/allow_attribute.rb
metasploit-model-4.0.0 spec/support/matchers/allow_attribute.rb
metasploit-model-3.1.4 spec/support/matchers/allow_attribute.rb
metasploit-model-3.1.3 spec/support/matchers/allow_attribute.rb
metasploit-model-3.1.2 spec/support/matchers/allow_attribute.rb
metasploit-model-3.1.1 spec/support/matchers/allow_attribute.rb
metasploit-model-3.1.0 spec/support/matchers/allow_attribute.rb
metasploit-model-3.0.0 spec/support/matchers/allow_attribute.rb
metasploit-model-2.0.4 spec/support/matchers/allow_attribute.rb
metasploit-model-2.0.3 spec/support/matchers/allow_attribute.rb
metasploit-model-2.0.2 spec/support/matchers/allow_attribute.rb
metasploit-model-2.0.1 spec/support/matchers/allow_attribute.rb