diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-03-02 16:27:55 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-03-02 16:27:55 +0000 |
commit | bb54b64796772c1bc8266f01d2e93d3f07bda39d (patch) | |
tree | c369f3e82348b4bc255fb392491710382dddf5d5 /spec | |
parent | 6096ba531e76fe0edb1e03527514f47170a50ea6 (diff) | |
parent | 56e7fe278e84200324e2ec2a1be72c3bd998c5ff (diff) |
Merge branch 'issues/1526-redesign-make-request-process' into rails-3-develop
Diffstat (limited to 'spec')
-rw-r--r-- | spec/views/public_body/show.html.erb_spec.rb | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/spec/views/public_body/show.html.erb_spec.rb b/spec/views/public_body/show.html.erb_spec.rb index 917c0c793..e4217ca4d 100644 --- a/spec/views/public_body/show.html.erb_spec.rb +++ b/spec/views/public_body/show.html.erb_spec.rb @@ -44,7 +44,7 @@ describe "public_body/show" do it "should tell total number of requests" do render - response.should match "4 Freedom of Information requests" + response.should match "4 requests" end it "should cope with no results" do @@ -59,38 +59,6 @@ describe "public_body/show" do response.should match "The search index is currently offline" end - it "should link to Charity Commission site if we have numbers to do so" do - @pb.stub!(:has_tag?).and_return(true) - @pb.stub!(:get_tag_values).and_return(['98765', '12345']) - - render - response.should have_selector("div#header_right") do - have_selector "a", :href => /charity-commission.gov.uk.*RegisteredCharityNumber=98765$/ - end - response.should have_selector("div#header_right") do - have_selector "a", :href => /www.charity-commission.gov.uk.*RegisteredCharityNumber=12345$/ - end - end - - it "should link to Scottish Charity Regulator site if we have an SC number" do - @pb.stub!(:has_tag?).and_return(true) - @pb.stub!(:get_tag_values).and_return(['SC1234']) - - render - response.should have_selector("div#header_right") do - have_selector "a", :href => /www.oscr.org.uk.*id=SC1234$/ - end - end - - - it "should not link to Charity Commission site if we don't have number" do - render - response.should have_selector("div#header_right") do - have_selector "a", :href => /charity-commission.gov.uk/ - end - end - - end def mock_event |