aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-01-04 10:36:24 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-01-04 10:41:12 +0900
commita7cb2f9638e9ad350d43792afad2d9599e277c12 (patch)
tree2c9840cec4d293a79e145abfd77fd41e2e09580d /activerecord
parent5c40239d3104543e70508360d27584a3e4dc5baf (diff)
downloadrails-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 'activerecord')
-rw-r--r--activerecord/test/cases/relations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb
index 3b34caef8e..dc6311e8bc 100644
--- a/activerecord/test/cases/relations_test.rb
+++ b/activerecord/test/cases/relations_test.rb
@@ -1617,7 +1617,7 @@ class RelationTest < ActiveRecord::TestCase
assert_equal "David", topic2.reload.author_name
end
- def test_update_on_relation_passing_active_record_object_is_not_permited
+ def test_update_on_relation_passing_active_record_object_is_not_permitted
topic = Topic.create!(title: "Foo", author_name: nil)
assert_raises(ArgumentError) do
Topic.where(id: topic.id).update(topic, title: "Bar")