Skip to content

Commit

Permalink
be sure to stringify keys in reported objects
Browse files Browse the repository at this point in the history
  • Loading branch information
ahoward committed Mar 28, 2009
1 parent 8a62a4e commit 2398677
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/testy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def run(port = '')
begin
block.call(result)
raise BadResult, name unless result.ok?
{'success' => result.actual}
{'success' => result.actual.with_string_keys}
rescue Object => e
failures += 1
failure = OrderedHash.new
Expand All @@ -75,8 +75,8 @@ def run(port = '')
error['backtrace'] = e.backtrace||[]
failure['error'] = error
end
failure['expect'] = result.expect
failure['actual'] = result.actual
failure['expect'] = result.expect.with_string_keys
failure['actual'] = result.actual.with_string_keys
{'failure' => failure}
end
end
Expand Down

0 comments on commit 2398677

Please sign in to comment.