Skip to content

Commit 6df1801

Browse files
committed
Fix bad rebase and use form uniqueness constraint.
1 parent 1d5e89a commit 6df1801

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/forms/conference_form_test.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,10 @@ def setup
327327
end
328328

329329
test "accepts file" do
330-
@form.submit(photo: fixture_file_upload('demo.txt', 'text/plain')
330+
@form.submit(merge_params(
331+
photo: fixture_file_upload('demo.txt', 'text/plain'),
332+
speaker_attributes: { name: 'Unique Name' }
333+
))
331334

332335
assert @form.valid?
333336
assert_equal @form.photo, 'demo.txt'
@@ -352,5 +355,4 @@ def default_params
352355
}
353356
}
354357
end
355-
end
356358
end

0 commit comments

Comments
 (0)