Skip to content

Commit

Permalink
Account for Syck being default YAML in 1.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed Jul 17, 2014
1 parent eb0466d commit b4ef377
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/metric_fu/reporting/result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ def self.result
#
# It tracks the results generated by each metric used in this test run.
class Result
if RUBY_VERSION == '1.9.2'
# Psych is required for YAML.to_json to work
# In 1.9.2, the default is still Syck
YAML::ENGINE.yamler = "psych"
end

# Renders the result of the result_hash into a yaml serialization
# ready for writing out to a file.
Expand Down

0 comments on commit b4ef377

Please sign in to comment.