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-10.1.0 test/factories/asset_factory.rb
foreman_openscap-10.0.3 test/factories/asset_factory.rb
foreman_openscap-10.0.2 test/factories/asset_factory.rb
foreman_openscap-10.0.1 test/factories/asset_factory.rb
foreman_openscap-10.0.0 test/factories/asset_factory.rb
foreman_openscap-9.0.4 test/factories/asset_factory.rb
foreman_openscap-9.0.3 test/factories/asset_factory.rb
foreman_openscap-9.0.2 test/factories/asset_factory.rb
foreman_openscap-9.0.1 test/factories/asset_factory.rb
foreman_openscap-9.0.0 test/factories/asset_factory.rb
foreman_openscap-8.0.0 test/factories/asset_factory.rb
foreman_openscap-7.1.1 test/factories/asset_factory.rb
foreman_openscap-7.1.0 test/factories/asset_factory.rb
foreman_openscap-7.0.0 test/factories/asset_factory.rb
foreman_openscap-6.0.0 test/factories/asset_factory.rb
foreman_openscap-5.2.3 test/factories/asset_factory.rb
foreman_openscap-5.2.2 test/factories/asset_factory.rb
foreman_openscap-5.1.1 test/factories/asset_factory.rb
foreman_openscap-5.2.1 test/factories/asset_factory.rb
foreman_openscap-5.2.0 test/factories/asset_factory.rb