docbrown/spec/factories/activesupport_events.rb
2019-10-23 10:30:45 -04:00

11 lines
344 B
Ruby

FactoryBot.define do
factory :activesupport_event, class: ActiveSupport::Notifications::Event do
name { "audit.log" }
time { Timecop.freeze(Time.zone.now) }
ending { time + 10.seconds }
transaction_id { Faker::Crypto.md5 }
payload { {} }
initialize_with { new(name, time, ending, transaction_id, payload) }
end
end