-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[airtable staff directory] Add websiteUrl, bios, and expertise fields
- Loading branch information
1 parent
5e155bb
commit f3749bc
Showing
5 changed files
with
30 additions
and
7 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 |
---|---|---|
|
@@ -15,7 +15,8 @@ | |
"netid": "ab123", | ||
"University Phone": "(123) 123-1234", | ||
"pul:Preferred Name": "Phillip Librarian", | ||
"Email": "[email protected]" | ||
"Email": "[email protected]", | ||
"Bios": "Hello\nMy research interests\nare\n\nfantastic!" | ||
} | ||
} | ||
] | ||
|
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 |
---|---|---|
|
@@ -11,10 +11,17 @@ | |
) | ||
.to_return(status: 200, body: File.read(file_fixture('air_table/records_no_offset.json')), headers: {}) | ||
end | ||
it 'creates a CSV object with data from the HTTP API' do | ||
it 'creates a CSV string with data from the HTTP API' do | ||
# The following CSV contains new lines within a single cell. | ||
# Since the cell is in in double quotes, it will still be read | ||
# as a single cell within a single row" | ||
expected = <<~END_CSV | ||
puid,netid,phone,name,lastName,firstName,email,address,building,department,division,unit,team,title,areasOfStudy | ||
123,ab123,(123) 123-1234,Phillip Librarian,Librarian,Phillip,[email protected],123 Stokes,Stokes,Stokes,,,,Library Collections Specialist V,Virtual Reality | ||
puid,netid,phone,name,lastName,firstName,email,address,building,department,division,unit,team,title,areasOfStudy,websiteUrl,bios,expertise | ||
123,ab123,(123) 123-1234,Phillip Librarian,Librarian,Phillip,[email protected],123 Stokes,Stokes,Stokes,,,,Library Collections Specialist V,Virtual Reality,,"Hello | ||
My research interests | ||
are | ||
fantastic!", | ||
END_CSV | ||
directory = described_class.new | ||
expect(directory.to_csv).to eq(expected) | ||
|
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 |
---|---|---|
|
@@ -22,7 +22,8 @@ | |
let(:first_row) do | ||
[ | ||
'123', 'ab123', '(123) 123-1234', 'Phillip Librarian', 'Librarian', 'Phillip', '[email protected]', | ||
'123 Stokes', 'Stokes', 'Stokes', nil, nil, nil, 'Library Collections Specialist V', 'Virtual Reality' | ||
'123 Stokes', 'Stokes', 'Stokes', nil, nil, nil, 'Library Collections Specialist V', 'Virtual Reality', | ||
nil, "Hello\nMy research interests\nare\n\nfantastic!", nil | ||
] | ||
end | ||
|
||
|