Skip to content

Commit bf4057d

Browse files
committed
remove duplicate test whos name doesn't match the tested method
1 parent 2eace42 commit bf4057d

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

actionview/test/template/form_helper/form_with_test.rb

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -339,20 +339,6 @@ def url_for(object)
339339
super
340340
end
341341

342-
def test_form_with_requires_arguments
343-
error = assert_raises(ArgumentError) do
344-
form_for(nil, html: { id: "create-post" }) do
345-
end
346-
end
347-
assert_equal "First argument in form cannot contain nil or be empty", error.message
348-
349-
error = assert_raises(ArgumentError) do
350-
form_for([nil, nil], html: { id: "create-post" }) do
351-
end
352-
end
353-
assert_equal "First argument in form cannot contain nil or be empty", error.message
354-
end
355-
356342
def test_form_with
357343
form_with(model: @post, id: "create-post") do |f|
358344
concat f.label(:title) { "The Title" }

0 commit comments

Comments
 (0)