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

Version Path
metasploit-model-1.0.2 spec/support/matchers/allow_attribute.rb
metasploit-model-1.0.1 spec/support/matchers/allow_attribute.rb
metasploit-model-1.0.0 spec/support/matchers/allow_attribute.rb
metasploit-model-0.30.2 spec/support/matchers/allow_attribute.rb
metasploit-model-0.30.2-java spec/support/matchers/allow_attribute.rb
metasploit-model-0.30.1 spec/support/matchers/allow_attribute.rb
metasploit-model-0.30.1-java spec/support/matchers/allow_attribute.rb
metasploit-model-0.30.1.pre.rspec.pre.3.pre.1 spec/support/matchers/allow_attribute.rb
metasploit-model-1.0.0.pre.rails.pre.4.0 spec/support/matchers/allow_attribute.rb
metasploit-model-0.30.0 spec/support/matchers/allow_attribute.rb
metasploit-model-0.30.0-java spec/support/matchers/allow_attribute.rb
metasploit-model-0.29.2 spec/support/matchers/allow_attribute.rb
metasploit-model-0.29.2-java spec/support/matchers/allow_attribute.rb
metasploit-model-0.29.0 spec/support/shared/matchers/allow_attribute.rb
metasploit-model-0.29.0-java spec/support/shared/matchers/allow_attribute.rb
metasploit-model-0.28.0 spec/support/shared/matchers/allow_attribute.rb
metasploit-model-0.28.0-java spec/support/shared/matchers/allow_attribute.rb
metasploit-model-0.28.0.pre.engine.pre.requires spec/support/shared/matchers/allow_attribute.rb
metasploit-model-0.27.4 spec/support/shared/matchers/allow_attribute.rb
metasploit-model-0.27.4-java spec/support/shared/matchers/allow_attribute.rb