Sha256: 31c233cb23d2dab8b2111b81fb61c0e821ceafe46e8779dc73219757b4a97918

Contents?: true

Size: 497 Bytes

Versions: 139

Compression:

Stored size: 497 Bytes

Contents

FactoryGirl.define do
  factory :mdm_module_author, :class => Mdm::Module::Author do
    name { generate :mdm_module_author_name }

    #
    # Associations
    #
    association :detail, :factory => :mdm_module_detail

    factory :full_mdm_module_author do
      email { generate :mdm_module_author_name }
    end
  end

  sequence :mdm_module_author_name do |n|
    "Mdm::Module::Author#name #{n}"
  end

  sequence :mdm_module_author_email do |n|
    "Mdm::Module::Author#email #{n}"
  end
end

Version data entries

139 entries across 139 versions & 1 rubygems

Version Path
metasploit_data_models-2.0.17 spec/factories/mdm/module/authors.rb
metasploit_data_models-2.0.16 spec/factories/mdm/module/authors.rb
metasploit_data_models-2.0.15 spec/factories/mdm/module/authors.rb
metasploit_data_models-2.0.14 spec/factories/mdm/module/authors.rb
metasploit_data_models-2.0.13 spec/factories/mdm/module/authors.rb
metasploit_data_models-2.0.12 spec/factories/mdm/module/authors.rb
metasploit_data_models-2.0.11 spec/factories/mdm/module/authors.rb
metasploit_data_models-2.0.10 spec/factories/mdm/module/authors.rb
metasploit_data_models-2.0.9 spec/factories/mdm/module/authors.rb
metasploit_data_models-2.0.8 spec/factories/mdm/module/authors.rb
metasploit_data_models-2.0.7 spec/factories/mdm/module/authors.rb
metasploit_data_models-2.0.6 spec/factories/mdm/module/authors.rb
metasploit_data_models-2.0.5 spec/factories/mdm/module/authors.rb
metasploit_data_models-2.0.4 spec/factories/mdm/module/authors.rb
metasploit_data_models-2.0.1 spec/factories/mdm/module/authors.rb
metasploit_data_models-2.0.0 spec/factories/mdm/module/authors.rb
metasploit_data_models-1.3.0 spec/factories/mdm/module/authors.rb
metasploit_data_models-1.2.11 spec/factories/mdm/module/authors.rb
metasploit_data_models-1.2.10 spec/factories/mdm/module/authors.rb
metasploit_data_models-1.2.9 spec/factories/mdm/module/authors.rb