diff options
author | Francis Irving <francis@mysociety.org> | 2009-12-22 10:37:19 +0000 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2009-12-22 10:37:19 +0000 |
commit | 3222dc3827b3bcc6669efb633a970b11b0ed3fa3 (patch) | |
tree | bf554b816ae51c553a37ee985e11e247bc0ee091 /spec/controllers/request_controller_spec.rb | |
parent | 94c474b6056441009ac11cd5b444f11e8bd05380 (diff) |
Fix bug that stopped re-editing requests working
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb index 6a8f3538a..9474b1d77 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -285,6 +285,15 @@ describe RequestController, "when creating a new request" do response.should render_template('preview') end + it "should allow re-editing of a request" do + post :new, :info_request => { :public_body_id => @body.id, + :title => "Why is your quango called Geraldine?"}, + :outgoing_message => { :body => "This is a silly letter. It is too short to be interesting." }, + :submitted_new_request => 1, :preview => 0, + :reedit => "Re-edit this request" + response.should render_template('new') + end + it "should redirect to sign in page when input is good and nobody is logged in" do params = { :info_request => { :public_body_id => @body.id, :title => "Why is your quango called Geraldine?"}, |