From d8e98897b5703ac49bf0764da71a06d64ecda9b0 Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Tue, 29 Dec 2015 09:37:07 -0600 Subject: 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. --- actionview/test/template/test_case_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionview/test/template') 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 -- cgit v1.2.3