Sha256: d92ceaf2680bf91d7a42ee09133df473c864b27ea27841254b391e397b7404a6

Contents?: true

Size: 724 Bytes

Versions: 3

Compression:

Stored size: 724 Bytes

Contents

FactoryBot.modify do
  fixtures = Pageflow::LinkmapPage::Engine.root.join('spec', 'support', 'fixtures')

  factory :image_file do
    trait :red_fixture do
      processed_attachment { File.open(fixtures.join('red.png')) }
    end

    trait :color_map_fixture do
      processed_attachment { File.open(fixtures.join('color_map.png')) }
    end

    trait :transparent_fixture do
      processed_attachment { File.open(fixtures.join('transparent.png')) }
    end

    trait :dots_and_lines_fixture do
      processed_attachment { File.open(fixtures.join('dots_and_lines.png')) }
    end

    trait :green_and_black_fixture do
      processed_attachment { File.open(fixtures.join('green_and_black.png')) }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pageflow-linkmap-page-2.2.0 spec/factories/image_file.rb
pageflow-linkmap-page-2.1.0 spec/factories/image_file.rb
pageflow-linkmap-page-2.0.0 spec/factories/image_file.rb