Sha256: 97720b3e6f00a712aac70cd30bc32835c216d96daa012113dd73972e8f13e5a6

Contents?: true

Size: 265 Bytes

Versions: 19

Compression:

Stored size: 265 Bytes

Contents

FactoryGirl.define do

  sequence(:image_name) { |n| "image name #{n}" }

  factory :image, class: Redditor::Image do
    description { generate(:image_name) }
    src { Rack::Test::UploadedFile.new(File.join(Rails.root, 'spec', 'fixtures', 'test.jpg')) }
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
redditor-0.1.22 spec/factories/redditor/images_factory.rb
redditor-0.1.20 spec/factories/redditor/images_factory.rb
redditor-0.1.17 spec/factories/redditor/images_factory.rb
redditor-0.1.16 spec/factories/redditor/images_factory.rb
redditor-0.1.15 spec/factories/redditor/images_factory.rb
redditor-0.1.14 spec/factories/redditor/images_factory.rb
redditor-0.1.12 spec/factories/redditor/images_factory.rb
redditor-0.1.11 spec/factories/redditor/images_factory.rb
redditor-0.1.10 spec/factories/redditor/images_factory.rb
redditor-0.1.9 spec/factories/redditor/images_factory.rb
redditor-0.1.8 spec/factories/redditor/images_factory.rb
redditor-0.1.7 spec/factories/redditor/images_factory.rb
redditor-0.1.6 spec/factories/redditor/images_factory.rb
redditor-0.1.5 spec/factories/redditor/images_factory.rb
redditor-0.1.4 spec/factories/redditor/images_factory.rb
redditor-0.1.3 spec/factories/redditor/images_factory.rb
redditor-0.1.2 spec/factories/redditor/images_factory.rb
redditor-0.1.1 spec/factories/redditor/images_factory.rb
redditor-0.1.0 spec/factories/redditor/images_factory.rb