Sha256: 29a5348833a1b20c5cd5defd53e36f46fbaa6ce46dfc948602b2e3e36bfd3f08

Contents?: true

Size: 373 Bytes

Versions: 12

Compression:

Stored size: 373 Bytes

Contents

FactoryBot.define do
  factory :compliance_log, :class => :log do
    result "fail"
    association :report
    level_id 1
    association :source
    association :message
  end

  factory :compliance_message, :class => :message do
    sequence(:value) { |n| "message#{n}" }
    after(:build) do |msg|
      msg.digest = Digest::SHA1.hexdigest(msg.value)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
foreman_openscap-0.10.4 test/factories/compliance_log_factory.rb
foreman_openscap-0.10.3 test/factories/compliance_log_factory.rb
foreman_openscap-0.10.2 test/factories/compliance_log_factory.rb
foreman_openscap-0.10.1 test/factories/compliance_log_factory.rb
foreman_openscap-0.9.3 test/factories/compliance_log_factory.rb
foreman_openscap-0.10.0 test/factories/compliance_log_factory.rb
foreman_openscap-0.8.6 test/factories/compliance_log_factory.rb
foreman_openscap-0.9.2 test/factories/compliance_log_factory.rb
foreman_openscap-0.9.1 test/factories/compliance_log_factory.rb
foreman_openscap-0.8.5 test/factories/compliance_log_factory.rb
foreman_openscap-0.9.0 test/factories/compliance_log_factory.rb
foreman_openscap-0.8.4 test/factories/compliance_log_factory.rb