Sha256: 7a25af59edc5243551e9c02292c1724b868ca3fed6abdaad49e8fe6a0af38941
Contents?: true
Size: 379 Bytes
Versions: 91
Compression:
Stored size: 379 Bytes
Contents
FactoryBot.define do factory :message, class: 'Inferno::Entities::Message' do result result_id { result.id } sequence(:message) { |n| "MESSAGE #{n}" } type { Inferno::Entities::Message::TYPES.sample } initialize_with { new(**attributes) } to_create do |instance| Inferno::Repositories::Messages.new.create(instance.to_hash) end end end
Version data entries
91 entries across 91 versions & 1 rubygems