diff options
author | Genadi Samokovarov <gsamokovarov@gmail.com> | 2019-04-19 13:49:56 +0900 |
---|---|---|
committer | Genadi Samokovarov <gsamokovarov@gmail.com> | 2019-04-19 14:15:41 +0900 |
commit | feaaa7576a0774471e36dc59730a886f623712e6 (patch) | |
tree | 9dde38f6dd6af3e5e8a0fc56c8685667de607707 /actionpack/test | |
parent | 769f73cc18c58021d49a3b93f1747568fe42ee5c (diff) | |
download | rails-feaaa7576a0774471e36dc59730a886f623712e6.tar.gz rails-feaaa7576a0774471e36dc59730a886f623712e6.tar.bz2 rails-feaaa7576a0774471e36dc59730a886f623712e6.zip |
Refactor after the most recent code review
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/actionable_exceptions_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/actionable_exceptions_test.rb b/actionpack/test/dispatch/actionable_exceptions_test.rb index ae382e201e..9215a91e9c 100644 --- a/actionpack/test/dispatch/actionable_exceptions_test.rb +++ b/actionpack/test/dispatch/actionable_exceptions_test.rb @@ -67,4 +67,14 @@ class ActionableExceptionsTest < ActionDispatch::IntegrationTest } end end + + test "cannot dispatch Inexistent errors" do + assert_raise ActiveSupport::ActionableError::NonActionable do + post ActionDispatch::ActionableExceptions.endpoint, params: { + error: "", + action: "Inexistent action", + location: "/", + } + end + end end |