aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-01-04 11:52:43 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-01-04 11:52:43 +1100
commitd9adfaab7bf42b87ead14fc289131078d0cd5b48 (patch)
treeea66a5565d93e8edceaf73445dfc8fb1bf28551a
parent44947335b285673591ef44c9c66efa584298e6ee (diff)
url in css selector should have been quoted. Using alternate syntax
-rw-r--r--spec/views/request/show.rhtml_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/views/request/show.rhtml_spec.rb b/spec/views/request/show.rhtml_spec.rb
index 6e36a7ab6..9141a802b 100644
--- a/spec/views/request/show.rhtml_spec.rb
+++ b/spec/views/request/show.rhtml_spec.rb
@@ -99,7 +99,7 @@ describe 'when viewing an information request' do
it 'should show a link to follow up the last response with clarification' do
request_page
expected_url = "http://test.host/request/#{@mock_request.id}/response/#{@mock_response.id}#followup"
- response.should have_selector("a[href=#{expected_url}]", :content => 'send a follow up message')
+ response.should have_selector("a", :href => expected_url, :content => 'send a follow up message')
end
end
@@ -119,7 +119,7 @@ describe 'when viewing an information request' do
it 'should show a link to follow up the request without reference to a specific response' do
request_page
expected_url = "http://test.host/request/#{@mock_request.id}/response#followup"
- response.should have_selector("a[href=#{expected_url}]", :content => 'send a follow up message')
+ response.should have_selector("a", :href => expected_url, :content => 'send a follow up message')
end
end
end