aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-05-26 16:26:58 +0100
committerLouise Crow <louise.crow@gmail.com>2015-05-26 16:26:58 +0100
commit6db8ee1e2d952700cf12f9cf54573012a211f74a (patch)
tree5e2fd80c6ce4feaec88ce0dfd04e66a392b77ea1 /spec
parent524f04959054ce0414affef172a69663c47705c3 (diff)
parent39d91dcd47338fb784f2863ca70ab5d33d5ff789 (diff)
Merge remote-tracking branch 'openaustralia_github/286-public-body-show-visible-requests' into rails-3-develop
Diffstat (limited to 'spec')
-rw-r--r--spec/views/public_body/show.html.erb_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/views/public_body/show.html.erb_spec.rb b/spec/views/public_body/show.html.erb_spec.rb
index adf78d307..a4edcfc22 100644
--- a/spec/views/public_body/show.html.erb_spec.rb
+++ b/spec/views/public_body/show.html.erb_spec.rb
@@ -30,6 +30,7 @@ describe "public_body/show" do
assign(:xapian_requests, @xap)
assign(:page, 1)
assign(:per_page, 10)
+ assign(:number_of_visible_requests, 4)
end
it "should be successful" do
@@ -48,7 +49,7 @@ describe "public_body/show" do
end
it "should cope with no results" do
- @pb.stub!(:info_requests).and_return([])
+ assign(:number_of_visible_requests, 0)
render
response.should have_selector('p', :content => "Nobody has made any Freedom of Information requests")
end