diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2018-09-13 16:19:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-13 16:19:45 -0400 |
commit | 19cb7a9887aa74304e01e5d3b0cb4ecfe6bd554b (patch) | |
tree | e36b390ab7402e675169185f53d1280f7ac9db94 /actionpack/test | |
parent | b20762e56c0412aee02bd244a3128c933c484e52 (diff) | |
parent | 34326af1d44be1c17fb8208578b25d7162a118fe (diff) | |
download | rails-19cb7a9887aa74304e01e5d3b0cb4ecfe6bd554b.tar.gz rails-19cb7a9887aa74304e01e5d3b0cb4ecfe6bd554b.tar.bz2 rails-19cb7a9887aa74304e01e5d3b0cb4ecfe6bd554b.zip |
Merge pull request #33569 from eric-hemasystems/conditional-flash-helper
Conditionally use `helper_method` in Flash concern
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/flash_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/test/controller/flash_test.rb b/actionpack/test/controller/flash_test.rb index 34bc2c0caa..a4330897cf 100644 --- a/actionpack/test/controller/flash_test.rb +++ b/actionpack/test/controller/flash_test.rb @@ -342,6 +342,14 @@ class FlashIntegrationTest < ActionDispatch::IntegrationTest end end + def test_flash_usable_in_metal_without_helper + assert_nothing_raised do + Class.new ActionController::Metal do + include ActionController::Flash + end + end + end + private # Overwrite get to send SessionSecret in env hash |