Sha256: 3c18ee2861f1eb68c940d356aee4a781d387a43e38ef0c04bc74553e17427097

Contents?: true

Size: 374 Bytes

Versions: 16

Compression:

Stored size: 374 Bytes

Contents

FactoryGirl.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

16 entries across 16 versions & 1 rubygems

Version Path
foreman_openscap-0.7.13 test/factories/compliance_log_factory.rb
foreman_openscap-0.7.12 test/factories/compliance_log_factory.rb
foreman_openscap-0.7.11 test/factories/compliance_log_factory.rb
foreman_openscap-0.7.10 test/factories/compliance_log_factory.rb
foreman_openscap-0.8.3 test/factories/compliance_log_factory.rb
foreman_openscap-0.7.9 test/factories/compliance_log_factory.rb
foreman_openscap-0.7.8 test/factories/compliance_log_factory.rb
foreman_openscap-0.7.7 test/factories/compliance_log_factory.rb
foreman_openscap-0.8.2 test/factories/compliance_log_factory.rb
foreman_openscap-0.7.6 test/factories/compliance_log_factory.rb
foreman_openscap-0.8.1 test/factories/compliance_log_factory.rb
foreman_openscap-0.7.5 test/factories/compliance_log_factory.rb
foreman_openscap-0.8.0 test/factories/compliance_log_factory.rb
foreman_openscap-0.7.4 test/factories/compliance_log_factory.rb
foreman_openscap-0.7.3 test/factories/compliance_log_factory.rb
foreman_openscap-0.7.2 test/factories/compliance_log_factory.rb