diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-01-04 10:36:24 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-01-04 10:41:12 +0900 |
commit | a7cb2f9638e9ad350d43792afad2d9599e277c12 (patch) | |
tree | 2c9840cec4d293a79e145abfd77fd41e2e09580d /actionview/test | |
parent | 5c40239d3104543e70508360d27584a3e4dc5baf (diff) | |
download | rails-a7cb2f9638e9ad350d43792afad2d9599e277c12.tar.gz rails-a7cb2f9638e9ad350d43792afad2d9599e277c12.tar.bz2 rails-a7cb2f9638e9ad350d43792afad2d9599e277c12.zip |
Fix typo s/permited/permitted/
```
% git grep -n permited
actionview/test/template/url_helper_test.rb:238: def test_button_to_with_permited_strong_params
actionview/test/template/url_helper_test.rb:245: def test_button_to_with_unpermited_strong_params
activerecord/test/cases/relations_test.rb:1620: def test_update_on_relation_passing_active_record_object_is_not_permited
```
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/template/url_helper_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/test/template/url_helper_test.rb b/actionview/test/template/url_helper_test.rb index 1e64385b52..137eaba5a6 100644 --- a/actionview/test/template/url_helper_test.rb +++ b/actionview/test/template/url_helper_test.rb @@ -235,14 +235,14 @@ class UrlHelperTest < ActiveSupport::TestCase end end - def test_button_to_with_permited_strong_params + def test_button_to_with_permitted_strong_params assert_dom_equal( %{<form action="http://www.example.com" class="button_to" method="post"><input type="submit" value="Hello" /><input type="hidden" name="baz" value="quux" /><input type="hidden" name="foo" value="bar" /></form>}, button_to("Hello", "http://www.example.com", params: FakeParams.new) ) end - def test_button_to_with_unpermited_strong_params + def test_button_to_with_unpermitted_strong_params assert_raises(ArgumentError) do button_to("Hello", "http://www.example.com", params: FakeParams.new(false)) end |