summaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-11-21 16:14:38 +0100
committerAzul <azul@riseup.net>2017-03-23 09:49:17 +0100
commit1e672227a23afbb9f319a0aefa0b0ca3495fa1c6 (patch)
treef16e3d9f830cef89d523ef2da66fd27bb2afd426 /test/functional
parent3efe125d6e3bd5f4eecd18952376ffc37e09b9c5 (diff)
bugfix: handle couch 404s
our special error handler for json requests would turn all exceptions into 500s - removed it. now the rescue_responses can do their thing again.
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/error_handling_test.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/test/functional/error_handling_test.rb b/test/functional/error_handling_test.rb
deleted file mode 100644
index 47e44ce..0000000
--- a/test/functional/error_handling_test.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-require 'test_helper'
-
-class ErrorHandlingTest < ActionController::TestCase
- tests HomeController
-
- def setup
- HomeController.any_instance.stubs(:index).raises
- end
-
- def test_json_error
- get :index, format: :json
- assert_equal 'application/json', @response.content_type
- assert json = JSON.parse(@response.body)
- assert_equal ['error'], json.keys
- end
-
- def test_html_error_reraises
- assert_raises RuntimeError do
- get :index
- end
- end
-end