aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorclaudiob <claudiob@inventati.org>2016-09-15 15:00:35 -0700
committerclaudiob <claudiob@inventati.org>2016-09-15 15:03:19 -0700
commitb73271d2637d10f054d9e113d51efbea08af69b6 (patch)
tree75c0fa9f89f6500386e9ef7f86119a8f59cee1fe /actionview
parent084211a7dacca66c2b50a4a094a81de631eb3de4 (diff)
downloadrails-b73271d2637d10f054d9e113d51efbea08af69b6.tar.gz
rails-b73271d2637d10f054d9e113d51efbea08af69b6.tar.bz2
rails-b73271d2637d10f054d9e113d51efbea08af69b6.zip
Rename test to match what it does
Commit d270da569 changed the `form_for` API from `:object_name` to `:as`. It also change the related test body, but not its title, which is changed here. See https://github.com/rails/rails/commit/d270da569efeabd7cd563028816452236713aa9f#diff-52455f1e82acf12551bc5e7e26b82008 I realize this is a small commit but I was having trouble understanding what the test was about since there is no "object_name" in the code. I imagine the same may happen to other developers, therefore this commit.
Diffstat (limited to 'actionview')
-rw-r--r--actionview/test/template/form_helper_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/test/template/form_helper_test.rb b/actionview/test/template/form_helper_test.rb
index e82905175a..e27586342d 100644
--- a/actionview/test/template/form_helper_test.rb
+++ b/actionview/test/template/form_helper_test.rb
@@ -1808,7 +1808,7 @@ class FormHelperTest < ActionView::TestCase
assert_dom_equal expected, output_buffer
end
- def test_form_for_with_symbol_object_name
+ def test_form_for_with_symbol_as
form_for(@post, as: "other_name", html: { id: "create-post" }) do |f|
concat f.label(:title, class: "post_title")
concat f.text_field(:title)