Sha256: 97b2b8679041f32e4279eb46983bba6649a2ece68836623e9e379ce6f4ed4074

Contents?: true

Size: 305 Bytes

Versions: 52

Compression:

Stored size: 305 Bytes

Contents

FactoryBot.define do
  factory :asset, :class => ::ForemanOpenscap::Asset do |f|
    f.assetable_id { FactoryBot.create(:host).id }
    f.assetable_type { 'Host::Base' }
  end

  factory :asset_policy, :class => ForemanOpenscap::AssetPolicy do |f|
    f.asset_id { nil }
    f.policy_id { nil }
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
foreman_openscap-2.0.2 test/factories/asset_factory.rb
foreman_openscap-1.0.10 test/factories/asset_factory.rb
foreman_openscap-2.0.1 test/factories/asset_factory.rb
foreman_openscap-1.0.9 test/factories/asset_factory.rb
foreman_openscap-2.0.0 test/factories/asset_factory.rb
foreman_openscap-1.0.8 test/factories/asset_factory.rb
foreman_openscap-1.0.7 test/factories/asset_factory.rb
foreman_openscap-1.0.6 test/factories/asset_factory.rb
foreman_openscap-1.0.5 test/factories/asset_factory.rb
foreman_openscap-1.0.4 test/factories/asset_factory.rb
foreman_openscap-1.0.3 test/factories/asset_factory.rb
foreman_openscap-1.0.2 test/factories/asset_factory.rb