Sha256: 7de4d594d8db2a23020ee30671798ae5a4b057300a396fbbaab5157e7fe7928b

Contents?: true

Size: 355 Bytes

Versions: 32

Compression:

Stored size: 355 Bytes

Contents

FactoryBot.define do
  factory :mdm_event, :aliases => [:event], :class => Mdm::Event do
    name { FactoryBot.generate :mdm_event_name }

    trait :workspace do
      association :workspace, :factory => :mdm_workspace
    end

    factory :mdm_workspace_event, :traits => [:workspace]
  end

  sequence :mdm_event_name do |n|
    "Event #{n}"
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
wg-metasploit_data_models-4.1.4.02 spec/factories/mdm/events.rb
metasploit_data_models-6.0.5 spec/factories/mdm/events.rb
metasploit_data_models-6.0.4 spec/factories/mdm/events.rb
metasploit_data_models-6.0.3 spec/factories/mdm/events.rb
metasploit_data_models-6.0.2 spec/factories/mdm/events.rb
metasploit_data_models-6.0.1 spec/factories/mdm/events.rb
metasploit_data_models-6.0.0 spec/factories/mdm/events.rb
metasploit_data_models-5.0.6 spec/factories/mdm/events.rb
metasploit_data_models-5.0.5 spec/factories/mdm/events.rb
metasploit_data_models-5.0.4 spec/factories/mdm/events.rb
metasploit_data_models-5.0.3 spec/factories/mdm/events.rb
metasploit_data_models-5.0.2 spec/factories/mdm/events.rb
metasploit_data_models-5.0.1 spec/factories/mdm/events.rb
metasploit_data_models-5.0.0 spec/factories/mdm/events.rb
metasploit_data_models-4.1.4 spec/factories/mdm/events.rb
metasploit_data_models-4.1.3 spec/factories/mdm/events.rb
metasploit_data_models-4.1.2 spec/factories/mdm/events.rb
metasploit_data_models-4.1.1 spec/factories/mdm/events.rb
metasploit_data_models-4.1.0 spec/factories/mdm/events.rb
metasploit_data_models-4.0.2 spec/factories/mdm/events.rb