Skip to content

Commit f517f5f

Browse files
committed
TIMDEX subjects to sym
1 parent 9732cac commit f517f5f

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
@@ -19,7 +19,7 @@ def normalize
1919
summary:,
2020
publisher:,
2121
location:,
22-
'subjects' => subjects,
22+
subjects:,
2323
# TIMDEX-specific fields
2424
'content_type' => content_type,
2525
'dates' => dates,

test/models/normalize_timdex_record_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ def minimal_record
156156

157157
test 'normalizes subjects' do
158158
normalized = NormalizeTimdexRecord.new(full_record, 'test').normalize
159-
assert_equal ['Geographic Information Systems', 'Remote Sensing'], normalized['subjects']
159+
assert_equal ['Geographic Information Systems', 'Remote Sensing'], normalized[:subjects]
160160
end
161161

162162
test 'handles missing subjects' do
163163
normalized = NormalizeTimdexRecord.new(minimal_record, 'test').normalize
164-
assert_empty normalized['subjects']
164+
assert_empty normalized[:subjects]
165165
end
166166

167167
# Test TIMDEX-specific fields

0 commit comments

Comments
 (0)