Sha256: a868a55672165904806ed9f32da3118c39efa6eae2d2c13b38bf9b5a375dac66
Contents?: true
Size: 438 Bytes
Versions: 32
Compression:
Stored size: 438 Bytes
Contents
FactoryBot.define do factory :mdm_vuln, :class => Mdm::Vuln do name { generate :mdm_vuln_name } trait :host do association :host, :factory => :mdm_host end trait :service do association :service, :factory => :mdm_service end factory :mdm_host_vuln, :traits => [:host] factory :mdm_service_vuln, :traits => [:service] end sequence :mdm_vuln_name do |n| "Mdm::Vuln#name #{n}" end end
Version data entries
32 entries across 32 versions & 2 rubygems