Skip to content

Commit

Permalink
Merge pull request #1107 from rughh/test/verify_referenced_sponsor_im…
Browse files Browse the repository at this point in the history
…ages_are_available

test: verify referenced sponsor images are available
  • Loading branch information
salzig authored Jan 25, 2025
2 parents bd2675e + 2703b10 commit a90cd06
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions config/whitelabel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -569,3 +569,4 @@
sponsors:
- :name: RubyCentral
:url: https://rubycentral.org/
:banner: rubycentral.png
13 changes: 13 additions & 0 deletions spec/lib/sponsor_images_present_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require 'spec_helper'

describe 'Sponsors' do
Whitelabel.labels.each do |label|
describe "for '#{label.label_id}'" do
label.sponsors&.each do |sponsor|
specify sponsor[:banner] do
expect(Rails.root.join('app/assets/images/labels').join(label.label_id).join('sponsors').join(sponsor[:banner])).to be_exist
end
end
end
end
end

0 comments on commit a90cd06

Please sign in to comment.