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.28.0 spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.28.0-java spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.28.0.pre.engine.pre.requires spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.27.4 spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.27.4-java spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.27.3 spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.27.3-java spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.27.2 spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.27.2-java spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.27.1 spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.27.1-java spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.27.0 spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.27.0-java spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.27.0.pre.dep.pre.railties spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.26.1-java spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.26.1 spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.25.7 spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.25.7-java spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.25.6 spec/dummy/spec/factories/dummy/module/ranks.rb
metasploit-model-0.25.6-java spec/dummy/spec/factories/dummy/module/ranks.rb