Sha256: 26e4fbf9b9f7cfb4be6275582a04153e7d22f832b8f39b6e74d4b7cf615f6790

Contents?: true

Size: 331 Bytes

Versions: 6

Compression:

Stored size: 331 Bytes

Contents

# Read about factories at https://github.com/thoughtbot/factory_girl

FactoryGirl.define do
  factory :test_image, class: TestImage do
    name { Faker::Lorem.sentence }
    logo { File.open('spec/fixtures/images/logo.png') }

    trait :second_image do
      logo { File.open('spec/fixtures/images/logo2.png') }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nocms-blocks-1.2.0 spec/factories/test_image.rb
nocms-blocks-1.1.3 spec/factories/test_image.rb
nocms-blocks-1.1.2 spec/factories/test_image.rb
nocms-blocks-1.1.1 spec/factories/test_image.rb
nocms-blocks-1.1.0 spec/factories/test_image.rb
nocms-blocks-1.0.0 spec/factories/test_image.rb