diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-03-04 15:57:59 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-03-04 15:57:59 +1100 |
commit | 65deec2c6a9388d87a66e40a7b3a38adf16af6a4 (patch) | |
tree | 52082f2e7a777005d3177306c09f1aa2b7ee7601 | |
parent | f60ada47d4e7aabe0dce152109cb0d91865929da (diff) |
Record who changes the state
-rw-r--r-- | app/controllers/request_controller.rb | 2 | ||||
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index fb78eaac0..f36381c51 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -499,7 +499,7 @@ class RequestController < ApplicationController return end - @info_request.set_described_state("requires_admin", nil, params[:message]) + @info_request.set_described_state("requires_admin", authenticated_user, params[:message]) end # Used for links from polymorphic URLs e.g. in Atom feeds - just redirect to diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb index 567add473..899ce9572 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -1268,7 +1268,7 @@ describe RequestController, "describe_state_requires_admin" do end it "should set the state when classified as requires_admin" do - info_request.should_receive(:set_described_state).with("requires_admin", nil, "Something weird happened") + info_request.should_receive(:set_described_state).with("requires_admin", user, "Something weird happened") post :describe_state_requires_admin, :message => "Something weird happened", :url_title => "info_request" end |