Sha256: 31282417f5469322668d6d97be9315649cf963353497a6c092f22f2420488be7

Contents?: true

Size: 442 Bytes

Versions: 31

Compression:

Stored size: 442 Bytes

Contents

FactoryGirl.define do
  abbreviations = Metasploit::Model::Architecture::ABBREVIATIONS

  # dummy_architectures is not a factory, but a sequence because only the seeded Dummy::Architectures are valid
  sequence :dummy_architecture do |n|
    # use abbreviations since they are unique
    abbreviation = abbreviations[n % abbreviations.length]

    architecture = Dummy::Architecture.with_abbreviation(abbreviation)

    architecture
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
metasploit-model-0.28.0 spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.28.0-java spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.28.0.pre.engine.pre.requires spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.27.4 spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.27.4-java spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.27.3 spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.27.3-java spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.27.2 spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.27.2-java spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.27.1 spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.27.1-java spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.27.0 spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.27.0-java spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.27.0.pre.dep.pre.railties spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.26.1-java spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.26.1 spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.25.7 spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.25.7-java spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.25.6 spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.25.6-java spec/dummy/spec/factories/dummy/architectures.rb