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.25.3 spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.25.3-java spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.25.2 spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.25.2-java spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.25.1 spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.25.1-java spec/dummy/spec/factories/dummy/architectures.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/architectures.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/architectures.rb
metasploit-model-0.24.1-java spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.24.1 spec/dummy/spec/factories/dummy/architectures.rb
metasploit-model-0.24.1.pre.semantic.pre.versioning.pre.2.pre.0 spec/dummy/spec/factories/dummy/architectures.rb