diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-12-19 03:33:48 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-12-19 03:37:20 +0900 |
commit | 96dee049c479c4ddd40d8a22ed0ec72fdda07d5b (patch) | |
tree | cc3235a32c04e8e1acc6a62bb18ae01967425383 /actionpack/test | |
parent | e9f6ce617be2f67b098e6fb689592f70c0009eb2 (diff) | |
download | rails-96dee049c479c4ddd40d8a22ed0ec72fdda07d5b.tar.gz rails-96dee049c479c4ddd40d8a22ed0ec72fdda07d5b.tar.bz2 rails-96dee049c479c4ddd40d8a22ed0ec72fdda07d5b.zip |
More exercise `test_running_prepended_before_and_after_action`
Just testing that `after_action` is invoked before
`prepend_after_action`.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/filters_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/test/controller/filters_test.rb b/actionpack/test/controller/filters_test.rb index 425a6e25cc..8e117528e2 100644 --- a/actionpack/test/controller/filters_test.rb +++ b/actionpack/test/controller/filters_test.rb @@ -457,6 +457,7 @@ class FilterTest < ActionController::TestCase prepend_before_action :before_all prepend_after_action :after_all before_action :between_before_all_and_after_all + after_action :between_before_all_and_after_all def before_all @ran_filter ||= [] @@ -472,6 +473,7 @@ class FilterTest < ActionController::TestCase @ran_filter ||= [] @ran_filter << "between_before_all_and_after_all" end + def show render plain: "hello" end @@ -765,7 +767,7 @@ class FilterTest < ActionController::TestCase def test_running_prepended_before_and_after_action test_process(PrependingBeforeAndAfterController) - assert_equal %w( before_all between_before_all_and_after_all after_all ), @controller.instance_variable_get(:@ran_filter) + assert_equal %w( before_all between_before_all_and_after_all between_before_all_and_after_all after_all ), @controller.instance_variable_get(:@ran_filter) end def test_skipping_and_limiting_controller |