Sha256: 6d5203388e595d7b8344425cd8b55eecc94e474316bb6d9c65e93cbfc373f8ea

Contents?: true

Size: 420 Bytes

Versions: 5

Compression:

Stored size: 420 Bytes

Contents

FactoryGirl.define do
  factory :mdm_module_target, :class => Mdm::ModuleTarget do
    index { generate :mdm_module_target_index }
    name { generate :mdm_module_target_name }

    #
    # Associations
    #
    association :module_detail, :factory => :mdm_module_detail
  end

  sequence :mdm_module_target_index do |n|
    n
  end

  sequence :mdm_module_target_name do |n|
    "Mdm::ModuleTarget#name #{n}"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
metasploit_data_models-0.7.0 spec/factories/mdm/module_targets.rb
metasploit_data_models-0.7.0-java spec/factories/mdm/module_targets.rb
metasploit_data_models-0.6.16 spec/factories/mdm/module_targets.rb
metasploit_data_models-0.6.14 spec/factories/mdm/module_targets.rb
metasploit_data_models-0.6.13 spec/factories/mdm/module_targets.rb