From 71fab4ea59c16a08bfb482b2e4da71d249c40bf2 Mon Sep 17 00:00:00 2001 From: Anselm Bradford Date: Tue, 1 Apr 2014 13:39:50 -0700 Subject: [PATCH] Adds test expectation for footer links --- spec/support/features/session_helpers.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/support/features/session_helpers.rb b/spec/support/features/session_helpers.rb index 05f61a7d0..39d740c1c 100644 --- a/spec/support/features/session_helpers.rb +++ b/spec/support/features/session_helpers.rb @@ -195,6 +195,14 @@ def looks_like_homepage page.should have_content "government assistance" page.should_not have_title "1 result" find("#language-box").should have_content("English") + + within("#app-footer") do + find_link('San Mateo County Human Services Agency')[:href].should == 'http://www.co.sanmateo.ca.us/portal/site/humanservices' + find_link('Code for America')[:href].should == 'http://codeforamerica.org' + find_link('Get this app')[:href].should == 'https://github.com/codeforamerica/ohana-web-search' + find_link('view project details')[:href].should == 'http://ohanapi.org' + end + end def go_to_next_page