Skip to content

Commit a90cd06

Browse files
authored
Merge pull request #1107 from rughh/test/verify_referenced_sponsor_images_are_available
test: verify referenced sponsor images are available
2 parents bd2675e + 2703b10 commit a90cd06

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed
Loading

config/whitelabel.yml

+1
Original file line numberDiff line numberDiff line change
@@ -569,3 +569,4 @@
569569
sponsors:
570570
- :name: RubyCentral
571571
:url: https://rubycentral.org/
572+
:banner: rubycentral.png
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
require 'spec_helper'
2+
3+
describe 'Sponsors' do
4+
Whitelabel.labels.each do |label|
5+
describe "for '#{label.label_id}'" do
6+
label.sponsors&.each do |sponsor|
7+
specify sponsor[:banner] do
8+
expect(Rails.root.join('app/assets/images/labels').join(label.label_id).join('sponsors').join(sponsor[:banner])).to be_exist
9+
end
10+
end
11+
end
12+
end
13+
end

0 commit comments

Comments
 (0)