Sha256: c78a32155ac8dc07366d7ddd7ff3eb2a0e86c1d4122813d2b2e8d9c3acb7c7f4

Contents?: true

Size: 320 Bytes

Versions: 11

Compression:

Stored size: 320 Bytes

Contents

FactoryBot.define do
  factory :mdm_tag, :class => Mdm::Tag do
    association :user, factory: :mdm_user
    desc { generate :mdm_tag_desc }
    name { generate :mdm_tag_name }
  end

  sequence :mdm_tag_desc do |n|
    "Mdm::Tag#description #{n}"
  end

  sequence :mdm_tag_name do |n|
    "mdm_tag_name#{n}"
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
metasploit_data_models-6.0.5 spec/factories/mdm/tags.rb
metasploit_data_models-6.0.4 spec/factories/mdm/tags.rb
metasploit_data_models-6.0.3 spec/factories/mdm/tags.rb
metasploit_data_models-6.0.2 spec/factories/mdm/tags.rb
metasploit_data_models-6.0.1 spec/factories/mdm/tags.rb
metasploit_data_models-6.0.0 spec/factories/mdm/tags.rb
metasploit_data_models-5.0.6 spec/factories/mdm/tags.rb
metasploit_data_models-5.0.5 spec/factories/mdm/tags.rb
metasploit_data_models-5.0.4 spec/factories/mdm/tags.rb
metasploit_data_models-5.0.3 spec/factories/mdm/tags.rb
metasploit_data_models-5.0.2 spec/factories/mdm/tags.rb