Sha256: 36d32654f8f37550cb85cb908bb2755261cdb69732e771c8724728e193632979
Contents?: true
Size: 419 Bytes
Versions: 3
Compression:
Stored size: 419 Bytes
Contents
include ActionDispatch::TestProcess FactoryGirl.define do # to_create do |instance| # raise "Save failed for #{instance.class} (#{instance.errors.full_messages.inspect})" if !instance.save # end factory :polygallery_photo, :class => Polygallery::Photo do caption { [nil, MFaker::BaconIpsum.paragraph].sample } photo { File.new get_random_photo } # photo_to_upload { get_random_photo } end end
Version data entries
3 entries across 3 versions & 1 rubygems