Skip to content

Commit f4ebcce

Browse files
committed
TIMDEX citation to sym
1 parent 4911362 commit f4ebcce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/models/normalize_timdex_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def normalize
1414
year:,
1515
format:,
1616
links:,
17-
'citation' => citation,
17+
citation:,
1818
'identifier' => identifier,
1919
'summary' => summary,
2020
'publisher' => publisher,

test/models/normalize_timdex_record_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ def minimal_record
9999
test 'normalizes citation' do
100100
normalized = NormalizeTimdexRecord.new(full_record, 'test').normalize
101101
assert_equal 'Smith, J. & Doe, J. (2023). Sample TIMDEX Record for Testing. Test Repository.',
102-
normalized['citation']
102+
normalized[:citation]
103103
end
104104

105105
test 'handles missing citation' do
106106
normalized = NormalizeTimdexRecord.new(minimal_record, 'test').normalize
107-
assert_nil normalized['citation']
107+
assert_nil normalized[:citation]
108108
end
109109

110110
test 'normalizes identifier' do

0 commit comments

Comments
 (0)