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