diff options
-rw-r--r-- | config/general.yml-example | 2 | ||||
-rw-r--r-- | doc/CHANGES.md | 2 | ||||
-rw-r--r-- | spec/controllers/admin_public_body_controller_spec.rb | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/config/general.yml-example b/config/general.yml-example index 345d3b1d6..98f04d0bf 100644 --- a/config/general.yml-example +++ b/config/general.yml-example @@ -138,4 +138,4 @@ EXCEPTION_NOTIFICATIONS_TO: - seb@example.org # This rate limiting can be turned off per-user via the admin interface -MAX_REQUESTS_PER_USER_PER_DAY: 6
\ No newline at end of file +MAX_REQUESTS_PER_USER_PER_DAY: 6 diff --git a/doc/CHANGES.md b/doc/CHANGES.md index 641dc30a5..d80acec3c 100644 --- a/doc/CHANGES.md +++ b/doc/CHANGES.md @@ -20,7 +20,7 @@ * Ensure you have values for new config variables (see `config/general.yml-example`): * EXCEPTION_NOTIFICATIONS_FROM * EXCEPTION_NOTIFICATIONS_TO - * MAX_REQUESTS_PER_USER_PER_DAY +* The new optional config variable MAX_REQUESTS_PER_USER_PER_DAY can be set to limit the number of requests each user can make per day. * The recommended Varnish config has changed, so that we ignore more cookies. You should review your Varnish config with respect to the example at `config/varnish-alaveteli.vcl`. * Consider setting elinks global config as described in the "Troubleshooting" section of INSTALL.md diff --git a/spec/controllers/admin_public_body_controller_spec.rb b/spec/controllers/admin_public_body_controller_spec.rb index 9a7c46476..7af637c1c 100644 --- a/spec/controllers/admin_public_body_controller_spec.rb +++ b/spec/controllers/admin_public_body_controller_spec.rb @@ -76,7 +76,7 @@ describe AdminPublicBodyController, "when administering public bodies and paying it "disallows non-authenticated users to do anything" do @request.env["HTTP_AUTHORIZATION"] = "" - n = PublicBody.count.should + n = PublicBody.count post :destroy, { :id => 3 } response.code.should == "401" PublicBody.count.should == n @@ -111,7 +111,7 @@ describe AdminPublicBodyController, "when administering public bodies and paying config['ADMIN_USERNAME'] = 'biz' config['ADMIN_PASSWORD'] = 'fuz' @request.env["HTTP_AUTHORIZATION"] = "" - n = PublicBody.count.should + n = PublicBody.count basic_auth_login(@request, "baduser", "badpassword") post :destroy, { :id => public_bodies(:forlorn_public_body).id } response.code.should == "401" |