-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
475fbff
commit 24bef5a
Showing
2 changed files
with
1 addition
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,36 +54,4 @@ class HackathonSubmissionTest < ApplicationSystemTestCase | |
assert_equal "Assemble", Hackathon.last.name | ||
assert_not Hackathon.last.requested_swag? | ||
end | ||
|
||
test "submitting a hackathon wanting swag" do | ||
visit new_hackathons_submission_path | ||
|
||
fill_in "Your name", with: "Gary" | ||
fill_in "Email address", with: "[email protected]" | ||
select "No", from: "Are you a high schooler?" | ||
|
||
fill_in "Name of the hackathon", with: "Assemble" | ||
fill_in "Start date", with: 1.month.from_now.beginning_of_minute | ||
fill_in "End date", with: (1.month.from_now + 2.days).beginning_of_minute | ||
fill_in "Website", with: "https://assemble.hackclub.com" | ||
|
||
attach_file "Logo", Rails.root.join("test/fixtures/files/assemble_logo.jpg") | ||
attach_file "Banner", Rails.root.join("test/fixtures/files/assemble.jpg") | ||
|
||
select "In Person", from: "Where is the hackathon taking place?" | ||
fill_in "Street", with: "760 Market St" | ||
fill_in "City", with: "San Francisco" | ||
fill_in "State/Province", with: "CA" | ||
fill_in "ZIP/Postal Code", with: "94102" | ||
select "United States", from: "Country" | ||
|
||
fill_in :hackathon_expected_attendees, with: 100 | ||
|
||
select "Yes", from: :hackathon_offers_financial_assistance | ||
|
||
assert_difference -> { Hackathon.count } do | ||
click_on "Submit for Review" | ||
assert_text(/submitted/i) | ||
end | ||
end | ||
end |