diff options
author | Justin Coyne <jcoyne@justincoyne.com> | 2015-12-29 09:37:07 -0600 |
---|---|---|
committer | Justin Coyne <jcoyne@justincoyne.com> | 2015-12-29 14:40:17 -0600 |
commit | d8e98897b5703ac49bf0764da71a06d64ecda9b0 (patch) | |
tree | bce59f460d660e2c9fb22942d66a23b9b1f2993d /actionview/test/template | |
parent | 929c61573e289e432a4e571ae157248745ae2eae (diff) | |
download | rails-d8e98897b5703ac49bf0764da71a06d64ecda9b0.tar.gz rails-d8e98897b5703ac49bf0764da71a06d64ecda9b0.tar.bz2 rails-d8e98897b5703ac49bf0764da71a06d64ecda9b0.zip |
TestController#parameters returns AC::Parameters
Fixes #22827
ActionView::TestCase::TestController#parameters should return an
instance of ActionController::Parameters rather than a hash. This
enables helper methods to use the correct interface.
Diffstat (limited to 'actionview/test/template')
-rw-r--r-- | actionview/test/template/test_case_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionview/test/template/test_case_test.rb b/actionview/test/template/test_case_test.rb index b057d43ee0..d69d5819b6 100644 --- a/actionview/test/template/test_case_test.rb +++ b/actionview/test/template/test_case_test.rb @@ -42,6 +42,10 @@ module ActionView assert_same view, view end + test "exposes params" do + assert params.is_a? ActionController::Parameters + end + test "exposes view as _view for backwards compatibility" do assert_same _view, view end |