@@ -125,22 +125,22 @@ def minimal_record
125125
126126 test 'extracts publisher from contributors' do
127127 normalized = NormalizeTimdexRecord . new ( full_record , 'test' ) . normalize
128- assert_equal 'MIT Libraries' , normalized [ ' publisher' ]
128+ assert_equal 'MIT Libraries' , normalized [ : publisher]
129129 end
130130
131131 test 'handles missing publisher' do
132132 normalized = NormalizeTimdexRecord . new ( minimal_record , 'test' ) . normalize
133- assert_nil normalized [ ' publisher' ]
133+ assert_nil normalized [ : publisher]
134134 end
135135
136136 test 'normalizes location' do
137137 normalized = NormalizeTimdexRecord . new ( full_record , 'test' ) . normalize
138- assert_equal 'Cambridge, MA' , normalized [ ' location' ]
138+ assert_equal 'Cambridge, MA' , normalized [ : location]
139139 end
140140
141141 test 'handles missing location' do
142142 normalized = NormalizeTimdexRecord . new ( minimal_record , 'test' ) . normalize
143- assert_nil normalized [ ' location' ]
143+ assert_nil normalized [ : location]
144144 end
145145
146146 test 'joins multiple locations with semicolon' do
@@ -151,7 +151,7 @@ def minimal_record
151151 { 'value' => 'New York, NY' }
152152 ]
153153 normalized = NormalizeTimdexRecord . new ( record_with_multiple_locations , 'test' ) . normalize
154- assert_equal 'Cambridge, MA; Boston, MA; New York, NY' , normalized [ ' location' ]
154+ assert_equal 'Cambridge, MA; Boston, MA; New York, NY' , normalized [ : location]
155155 end
156156
157157 test 'normalizes subjects' do
0 commit comments