summaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-11-11 13:01:06 -0800
committerelijah <elijah@riseup.net>2014-11-11 13:01:06 -0800
commitc8b9e7ac72d27997603dbede8001fca7d3f40e1a (patch)
treeeaf542a338e863182f1f884f635d6dad820c0111 /test/functional
parentfec5cf6955898b170683677b172ac99a6475d491 (diff)
parent546aaa9f39b40a3f11670c805bb71e4ace7d0cc7 (diff)
Merge branch 'feature/error-tweaks' of https://github.com/azul/leap_web into develop
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/errors_controller_test.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/errors_controller_test.rb b/test/functional/errors_controller_test.rb
new file mode 100644
index 0000000..e6d2367
--- /dev/null
+++ b/test/functional/errors_controller_test.rb
@@ -0,0 +1,14 @@
+class ErrorsControllerTest < ActionController::TestCase
+
+ def test_not_found_resonds_with_404
+ get 'not_found'
+ assert_response 404
+ assert_template 'errors/not_found'
+ end
+
+ def test_server_error_resonds_with_500
+ get 'server_error'
+ assert_response 500
+ assert_template 'errors/server_error'
+ end
+end