diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-04-19 16:57:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-19 16:57:23 -0400 |
commit | 3d1154f7eac660f4f43554d7fa88e5c9c7e4887d (patch) | |
tree | ca3bd1d06e90ea7dcde276f56262ae9a1cc15413 /actionview/test | |
parent | 54fa07f2c87a7aad9a17539e409497e46d2607cd (diff) | |
parent | 93034ad7fea7e00562103a7cd0acfab19bbfadf9 (diff) | |
download | rails-3d1154f7eac660f4f43554d7fa88e5c9c7e4887d.tar.gz rails-3d1154f7eac660f4f43554d7fa88e5c9c7e4887d.tar.bz2 rails-3d1154f7eac660f4f43554d7fa88e5c9c7e4887d.zip |
Merge pull request #28734 from rafaelfranca/strong-parameters
Improve the upgrade path of Strong Parameters
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/template/url_helper_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/actionview/test/template/url_helper_test.rb b/actionview/test/template/url_helper_test.rb index 09454b32cc..a6444a1686 100644 --- a/actionview/test/template/url_helper_test.rb +++ b/actionview/test/template/url_helper_test.rb @@ -231,7 +231,11 @@ class UrlHelperTest < ActiveSupport::TestCase end def to_h - { foo: :bar, baz: "quux" } + if permitted? + { foo: :bar, baz: "quux" } + else + raise ArgumentError + end end end |