Skip to content

Commit

Permalink
Add test to check the link on a country page points at the Democratic…
Browse files Browse the repository at this point in the history
… Commons page on mySociety website
  • Loading branch information
wrightmartin committed Apr 4, 2018
1 parent 69ce281 commit 7717114
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions t/web/country.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@
end
end

describe 'when displaying democratic commons footer' do
let(:link) { subject.css('.demo-commons-promo') }
before { get '/iran/' }

it 'should link to mySociety Democratic Commons page' do
link.css('a').last[:href].must_equal 'https://www.mysociety.org/democracy/democratic-commons/'
end
end

describe 'HTML validation' do
it 'has no errors in the country page' do
get '/estonia/'
Expand Down

0 comments on commit 7717114

Please sign in to comment.