docbrown/spec/factories/activesupport_events.rb
rhymes 213e7bebab Routine rubocop fixes (#4924)
Ran rubocop -a and rubocop --auto-gen-config
2019-11-25 14:13:22 -05:00

11 lines
346 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