diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-08-21 07:45:36 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-08-21 07:45:36 +0100 |
commit | 7127ebcad5407eb616931c8ef24dbde105d03a29 (patch) | |
tree | 199b836118177926151d17c21608ca1c9e9eaad6 /spec/controllers/request_controller_spec.rb | |
parent | bf4b97e16e0c1a699ddd2fc186ea3f8e962ec7bf (diff) | |
parent | 396b272c7f77ffe94ec5efb112e88a3c384d2db0 (diff) |
Merge branch 'develop' of github.com:sebbacon/alaveteli into develop
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb index ba714216f..f91f87323 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -1736,6 +1736,10 @@ describe RequestController, "authority uploads a response from the web interface flash[:error].should match(/Please type a message/) end + it 'should 404 for non existent requests' do + lambda{ post :upload_response, :url_title => 'i_dont_exist'}.should raise_error(ActiveRecord::RecordNotFound) + end + # How do I test a file upload in rails? # http://stackoverflow.com/questions/1178587/how-do-i-test-a-file-upload-in-rails it "should let the authority upload a file" do |