aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2012-12-11 16:34:57 +1100
committerHenare Degan <henare.degan@gmail.com>2012-12-11 16:34:57 +1100
commit54bb12c1c4933c8fd7954cbc6c87ec9fd4904346 (patch)
tree9e622812b2d952e6534cc22e6cc7d0a918111c35
parent7bc26134d591655ffe01cc79a21b88451d3ca71e (diff)
Why are we testing a controller in view tests?
-rw-r--r--spec/views/public_body/show.rhtml_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/views/public_body/show.rhtml_spec.rb b/spec/views/public_body/show.rhtml_spec.rb
index a6cac33fa..1a972a661 100644
--- a/spec/views/public_body/show.rhtml_spec.rb
+++ b/spec/views/public_body/show.rhtml_spec.rb
@@ -33,7 +33,7 @@ describe "public_body/show" do
it "should be successful" do
render
- response.should be_success
+ controller.response.should be_success
end
it "should be valid HTML" do