Sha256: 6ca4ccd45c864dcf49f7f36d07461fdfec3918bb92bbda0d85461fa6b60dc415

Contents?: true

Size: 293 Bytes

Versions: 24

Compression:

Stored size: 293 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

24 entries across 24 versions & 1 rubygems

Version Path
foreman_openscap-1.0.1 test/factories/asset_factory.rb
foreman_openscap-1.0.0 test/factories/asset_factory.rb
foreman_openscap-0.12.3 test/factories/asset_factory.rb
foreman_openscap-0.11.5 test/factories/asset_factory.rb
foreman_openscap-0.12.2 test/factories/asset_factory.rb
foreman_openscap-0.12.1 test/factories/asset_factory.rb
foreman_openscap-0.12.0 test/factories/asset_factory.rb
foreman_openscap-0.11.4 test/factories/asset_factory.rb
foreman_openscap-0.11.3 test/factories/asset_factory.rb
foreman_openscap-0.11.2 test/factories/asset_factory.rb
foreman_openscap-0.11.1 test/factories/asset_factory.rb
foreman_openscap-0.11.0 test/factories/asset_factory.rb
foreman_openscap-0.10.4 test/factories/asset_factory.rb
foreman_openscap-0.10.3 test/factories/asset_factory.rb
foreman_openscap-0.10.2 test/factories/asset_factory.rb
foreman_openscap-0.10.1 test/factories/asset_factory.rb
foreman_openscap-0.9.3 test/factories/asset_factory.rb
foreman_openscap-0.10.0 test/factories/asset_factory.rb
foreman_openscap-0.8.6 test/factories/asset_factory.rb
foreman_openscap-0.9.2 test/factories/asset_factory.rb