aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortony <tony>2009-03-22 10:18:47 +0000
committertony <tony>2009-03-22 10:18:47 +0000
commitdaea88979fea5a1c72d0af5f9cc411efbfc044fd (patch)
treef96ec26474b4a470ea23104e890e9545f0556895
parent58ef1da482fb879fe75a262a635e1c03acb1bd4b (diff)
Tweak test
-rw-r--r--spec/views/body_view_spec.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/views/body_view_spec.rb b/spec/views/body_view_spec.rb
index a4a958988..9020912c0 100644
--- a/spec/views/body_view_spec.rb
+++ b/spec/views/body_view_spec.rb
@@ -20,7 +20,8 @@ describe "when viewing a body" do
])
assigns[:public_body] = @pb
- assigns[:track_thing] = mock_model(TrackThing, :track_type => 'public_body_updates', :public_body => @pb )
+ assigns[:track_thing] = mock_model(TrackThing,
+ :track_type => 'public_body_updates', :public_body => @pb, :params => {})
assigns[:xapian_requests] = @xap
assigns[:page] = 1
assigns[:per_page] = 10
@@ -28,6 +29,11 @@ describe "when viewing a body" do
it "should be successful" do
render "body/show"
+ response.should be_success
+ end
+
+ it "should show the body's name" do
+ render "body/show"
response.should have_tag("h1", "Test Quango")
end