aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/public_body_controller_spec.rb
diff options
context:
space:
mode:
authorMark Longair <mhl@pobox.com>2013-08-20 10:04:54 +0100
committerMark Longair <mhl@pobox.com>2013-08-20 12:11:45 +0100
commitb75d79b08227192b75e4f3b24ce4e762f4286ef9 (patch)
tree6a9645f51e17da0048f92b9eb54f8465cd498a13 /spec/controllers/public_body_controller_spec.rb
parent493c1a270b02bf1cd6030e56babefcca89a81595 (diff)
Add a config option to enable the public body statistics page
Diffstat (limited to 'spec/controllers/public_body_controller_spec.rb')
-rw-r--r--spec/controllers/public_body_controller_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/controllers/public_body_controller_spec.rb b/spec/controllers/public_body_controller_spec.rb
index 87544b96a..92130f3d0 100644
--- a/spec/controllers/public_body_controller_spec.rb
+++ b/spec/controllers/public_body_controller_spec.rb
@@ -213,6 +213,7 @@ describe PublicBodyController, "when showing public body statistics" do
it "should render the right template with the right data" do
config = MySociety::Config.load_default()
config['MINIMUM_REQUESTS_FOR_STATISTICS'] = 1
+ config['PUBLIC_BODY_STATISTICS_PAGE'] = true
get :statistics
response.should render_template('public_body/statistics')
# There are 5 different graphs we're creating at the moment.