aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-01-20 12:18:21 +0000
committerRobin Houston <robin.houston@gmail.com>2012-01-20 12:18:21 +0000
commit23e5ffe66cedbe0f4e7788c49ffd56dff94b1586 (patch)
tree7fa1dd7c34e583e441f66b11a1f4364c4ca693a3 /spec/views
parentc92892e3a4fdc3e339996fc4db737634b15894c8 (diff)
parenta37e9f21f00af03d271cb40de7d849cb8941bc02 (diff)
Merge branch 'wdtk' of github.com:sebbacon/alaveteli into wdtk
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/request/list.rhtml_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/views/request/list.rhtml_spec.rb b/spec/views/request/list.rhtml_spec.rb
index 1f86ec641..c7067294f 100644
--- a/spec/views/request/list.rhtml_spec.rb
+++ b/spec/views/request/list.rhtml_spec.rb
@@ -33,6 +33,7 @@ describe "when listing recent requests" do
it "should be successful" do
assigns[:list_results] = [ make_mock_event, make_mock_event ]
assigns[:matches_estimated] = 2
+ assigns[:show_no_more_than] = 100
render "request/list"
response.should have_tag("div.request_listing")
response.should_not have_tag("p", /No requests of this sort yet/m)
@@ -41,6 +42,7 @@ describe "when listing recent requests" do
it "should cope with no results" do
assigns[:list_results] = [ ]
assigns[:matches_estimated] = 0
+ assigns[:show_no_more_than] = 0
render "request/list"
response.should have_tag("p", /No requests of this sort yet/m)
response.should_not have_tag("div.request_listing")