We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2eace42 commit bf4057dCopy full SHA for bf4057d
actionview/test/template/form_helper/form_with_test.rb
@@ -339,20 +339,6 @@ def url_for(object)
339
super
340
end
341
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
347
- assert_equal "First argument in form cannot contain nil or be empty", error.message
348
-
349
350
- form_for([nil, nil], html: { id: "create-post" }) do
351
352
353
354
355
356
def test_form_with
357
form_with(model: @post, id: "create-post") do |f|
358
concat f.label(:title) { "The Title" }
0 commit comments