Sha256: ab692bf46d847cf157ac9a1940ecf80b65a935b3c19906417e726fb2a1040164

Contents?: true

Size: 366 Bytes

Versions: 31

Compression:

Stored size: 366 Bytes

Contents

FactoryGirl.define do
  # Dummy::Module::Rank does not have a factory because all valid records are seeded, so it only has a sequence to grab
  # a seeded record

  names = Metasploit::Model::Module::Rank::NUMBER_BY_NAME.keys

  sequence :dummy_module_rank do |n|
    name = names[n % names.length]

    rank = Dummy::Module::Rank.with_name(name)

    rank
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
metasploit-model-0.25.3 spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.25.3-java spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.25.2 spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.25.2-java spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.25.1 spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.25.1-java spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups-java spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.24.1-java spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.24.1 spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.24.1.pre.semantic.pre.versioning.pre.2.pre.0 spec/dummy/spec/factories/dummy/module/ranks.rb