aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlouise <louise>2009-04-14 08:37:54 +0000
committerlouise <louise>2009-04-14 08:37:54 +0000
commited60d3930b6a347be63c2ea354942cc046ea3295 (patch)
tree539ccf1257b7a2086623aeeeaa73943495659861
parent07ec9b1f0818831ef594b85a91e5590a73f71e1f (diff)
Moving view specs to more standard place - helps tools like autotest handle them. Tweak to charity number spec - when no charity number is present, the request sidebar should still be there, but the charity link should not
-rw-r--r--spec/views/body/show.rhtml_spec.rb (renamed from spec/views/body_view_spec.rb)6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/views/body_view_spec.rb b/spec/views/body/show.rhtml_spec.rb
index 8f8ec156c..ad7d50e31 100644
--- a/spec/views/body_view_spec.rb
+++ b/spec/views/body/show.rhtml_spec.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../spec_helper'
+require File.dirname(__FILE__) + '/../../spec_helper'
describe "when viewing a body" do
@@ -70,8 +70,8 @@ describe "when viewing a body" do
it "should not link to Charity Commission site if we don't have number" do
render "body/show"
- response.should_not have_tag("div#request_sidebar") do
- with_tag("a[href*=?]", /charity-commission.gov.uk/)
+ response.should have_tag("div#request_sidebar") do
+ without_tag("a[href*=?]", /charity-commission.gov.uk/)
end
end