Sha256: cbf322e853928ae5ffa3e5420fc6a805a13f76f9dc81787a176ed60f9ab7e9c2

Contents?: true

Size: 344 Bytes

Versions: 5

Compression:

Stored size: 344 Bytes

Contents

FactoryGirl.define do
  content_builder_image = RailsAdminContentBuilder::ContentBuilderImage
  factory :content_builder_image, class: content_builder_image do
    image do
      Rack::Test::UploadedFile.new(
        File.join('spec', 'fixtures', 'assets', 'example.jpg')
      )
    end
    content_builder factory: :content_builder
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_admin_content_builder-1.3.0 spec/factories/content_builder_images.rb
rails_admin_content_builder-1.2.0 spec/factories/content_builder_images.rb
rails_admin_content_builder-1.1.0 spec/factories/content_builder_images.rb
rails_admin_content_builder-1.0.6 spec/factories/content_builder_images.rb
rails_admin_content_builder-1.0.5 spec/factories/content_builder_images.rb