Sha256: def0a15260828dee7b6124ac176f0fdd848b6cdc8ad3058b8a3b1a317013293d

Contents?: true

Size: 298 Bytes

Versions: 6

Compression:

Stored size: 298 Bytes

Contents

include ActionDispatch::TestProcess

FactoryGirl.define do
  factory :picture do |f|
    picture { fixture_file_upload(Rails.root.join('..', 'nimbleshop_core', 'test', 'fixtures', 'files', 'avatar.png'), 'image/png') }
    product
    file_name nil
    content_type nil
    file_size nil
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nimbleshop_core-0.0.1.rc6 test/factories/picture_factory.rb
nimbleshop_core-0.0.1.rc5 test/factories/picture_factory.rb
nimbleshop_core-0.0.1.rc4 test/factories/picture_factory.rb
nimbleshop_core-0.0.1.rc3 test/factories/picture_factory.rb
nimbleshop_core-0.0.1.rc2 test/factories/picture_factory.rb
nimbleshop_core-0.0.1.rc1 test/factories/picture_factory.rb