Sha256: b90f304899b71c21fe0753715d35cbcee5a55dc62c13ff730a548b158d4d282c

Contents?: true

Size: 253 Bytes

Versions: 33

Compression:

Stored size: 253 Bytes

Contents

FactoryGirl.define do
  factory :attachment, class: 'MessageTrain::Attachment' do
    message { MessageTrain::Message.order('RANDOM()').first }
    attachment { File.open(Dir['spec/dummy/app/assets/files/message_train/attachments/*'].sample) }
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
message_train-0.5.2 spec/factories/attachment.rb
message_train-0.5.1 spec/factories/attachment.rb
message_train-0.5.0 spec/factories/attachment.rb
message_train-0.4.6 spec/factories/attachment.rb
message_train-0.4.5 spec/factories/attachment.rb
message_train-0.4.4 spec/factories/attachment.rb
message_train-0.4.3 spec/factories/attachment.rb
message_train-0.4.2 spec/factories/attachment.rb
message_train-0.4.1 spec/factories/attachment.rb
message_train-0.4.0 spec/factories/attachment.rb
message_train-0.3.1 spec/factories/attachment.rb
message_train-0.3.0 spec/factories/attachment.rb
message_train-0.2.12 spec/factories/attachment.rb
message_train-0.2.11 spec/factories/attachment.rb
message_train-0.2.10 spec/factories/attachment.rb
message_train-0.2.9 spec/factories/attachment.rb
message_train-0.2.8 spec/factories/attachment.rb
message_train-0.2.7 spec/factories/attachment.rb
message_train-0.2.6 spec/factories/attachment.rb
message_train-0.2.5 spec/factories/attachment.rb