-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add created_at to registration export csv (#9011)
* Add created_at to registration export csv * Change spec factory and test case for csv registration export * typo, ooops
- Loading branch information
1 parent
6dcb809
commit 62d8d7e
Showing
3 changed files
with
6 additions
and
3 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
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
:registration, | ||
competition: competition, | ||
accepted_at: Time.now, | ||
created_at: Time.utc(2014, 3, 14, 15, 16, 17), | ||
user: user, | ||
competition_events: [competition.competition_events.find_by!(event_id: "333")], | ||
guests: 1, | ||
|
@@ -29,7 +30,7 @@ | |
assign(:registrations, competition.registrations) | ||
render | ||
|
||
expect(rendered).to eq "Status,Name,Country,WCA ID,Birth Date,Gender,333,333oh,Email,Guests,IP\na,Bob,USA,,1990-01-01,m,1,0,[email protected],1,\"\"\n" | ||
expect(rendered).to eq "Status,Name,Country,WCA ID,Birth Date,Gender,333,333oh,Email,Guests,IP,Registration Date Time (UTC)\na,Bob,USA,,1990-01-01,m,1,0,[email protected],1,\"\",2014-03-14 15:16:17 UTC\n" | ||
end | ||
|
||
it "renders null (missing) gender as empty string" do | ||
|
@@ -39,6 +40,6 @@ | |
assign(:registrations, competition.registrations) | ||
render | ||
|
||
expect(rendered).to eq "Status,Name,Country,WCA ID,Birth Date,Gender,333,333oh,Email,Guests,IP\na,Bob,USA,,1990-01-01,,1,0,[email protected],1,\"\"\n" | ||
expect(rendered).to eq "Status,Name,Country,WCA ID,Birth Date,Gender,333,333oh,Email,Guests,IP,Registration Date Time (UTC)\na,Bob,USA,,1990-01-01,,1,0,[email protected],1,\"\",2014-03-14 15:16:17 UTC\n" | ||
end | ||
end |