aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/actionable_error_test.rb
diff options
context:
space:
mode:
authorGenadi Samokovarov <gsamokovarov@gmail.com>2019-04-19 13:49:56 +0900
committerGenadi Samokovarov <gsamokovarov@gmail.com>2019-04-19 14:15:41 +0900
commitfeaaa7576a0774471e36dc59730a886f623712e6 (patch)
tree9dde38f6dd6af3e5e8a0fc56c8685667de607707 /activesupport/test/actionable_error_test.rb
parent769f73cc18c58021d49a3b93f1747568fe42ee5c (diff)
downloadrails-feaaa7576a0774471e36dc59730a886f623712e6.tar.gz
rails-feaaa7576a0774471e36dc59730a886f623712e6.tar.bz2
rails-feaaa7576a0774471e36dc59730a886f623712e6.zip
Refactor after the most recent code review
Diffstat (limited to 'activesupport/test/actionable_error_test.rb')
-rw-r--r--activesupport/test/actionable_error_test.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/activesupport/test/actionable_error_test.rb b/activesupport/test/actionable_error_test.rb
index fb2abf2bcf..63046b937c 100644
--- a/activesupport/test/actionable_error_test.rb
+++ b/activesupport/test/actionable_error_test.rb
@@ -37,12 +37,6 @@ class ActionableErrorTest < ActiveSupport::TestCase
end
end
- test "dispatches actions from error class as string and name" do
- assert_changes "DispatchableError.flip2", from: false, to: true do
- ActiveSupport::ActionableError.dispatch DispatchableError.name, "Flip 2"
- end
- end
-
test "cannot dispatch missing actions" do
err = assert_raises ActiveSupport::ActionableError::NonActionable do
ActiveSupport::ActionableError.dispatch NonActionableError, "action"