Skip to content

Commit

Permalink
Add placeholder images to generic homepage factory
Browse files Browse the repository at this point in the history
  • Loading branch information
camillevilla committed Sep 6, 2024
1 parent ac64b1e commit cee158a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/factories/homepages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
factory :homepage_feature do
sequence(:title) { |n| "Featured #{n}" }
description { 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. In eget mauris eget nibh consectetur efficitur in quis libero. Nulla ultrices.'}
featured_image_file_name { 'neutral-placeholder.png' }
sequence(:image_alt_text) { |n| "#{n} placeholder gray square" }
featured_image { File.new(Rails.root.join('spec', 'assets', 'neutral-placeholder.png')) }
url { '/about' }
cta_text { 'View feature' }

Expand Down

0 comments on commit cee158a

Please sign in to comment.