From feaaa7576a0774471e36dc59730a886f623712e6 Mon Sep 17 00:00:00 2001 From: Genadi Samokovarov Date: Fri, 19 Apr 2019 13:49:56 +0900 Subject: Refactor after the most recent code review --- actionpack/test/dispatch/actionable_exceptions_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'actionpack/test') 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 -- cgit v1.2.3