Skip to content

Commit 4696e88

Browse files
committed
fix tests on 1.9
1 parent fb4ed4a commit 4696e88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-base/readers.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ def read
236236
check_event(:start_element, 'variable', event)
237237
ensure_end_element('variable')
238238
variables << Variable.new(*Variable.members.map { |m|
239-
value = event[1][m]
240-
m == 'hasChildren' ? value == "true" : value
239+
value = event[1][m.to_s]
240+
m.to_s == 'hasChildren' ? value == "true" : value
241241
})
242242
when :end_element
243243
check_event(:end_element, 'variables', event)

0 commit comments

Comments
 (0)