Sha256: b634db459ccd546d7338257838c4bacf51a477b99c3487a818fac9e15f8359cb

Contents?: true

Size: 524 Bytes

Versions: 8

Compression:

Stored size: 524 Bytes

Contents

include ActionDispatch::TestProcess

FactoryGirl.define do
  factory :scap_content, :class => ::ForemanOpenscap::ScapContent do |f|
    f.title 'fedora'
    f.original_filename 'fedora ds'
    f.scap_file { File.new("#{ForemanOpenscap::Engine.root}/test/files/scap_contents/ssg-fedora-ds.xml", 'rb').read }
  end

  factory :scap_content_profile, :class => ::ForemanOpenscap::ScapContentProfile do |f|
    f.scap_content
    f.profile_id 'xccdf_org.test.common_test_profile'
    f.title 'test Profile for testing'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
foreman_openscap-0.6.3 test/factories/scap_content_related.rb
foreman_openscap-0.6.2 test/factories/scap_content_related.rb
foreman_openscap-0.6.1 test/factories/scap_content_related.rb
foreman_openscap-0.6.0 test/factories/scap_content_related.rb
foreman_openscap-0.5.4 test/factories/scap_content_related.rb
foreman_openscap-0.5.3 test/factories/scap_content_related.rb
foreman_openscap-0.5.2 test/factories/scap_content_related.rb
foreman_openscap-0.5.1 test/factories/scap_content_related.rb