Fix parsing passing spec

This commit is contained in:
Michael Miller 2021-01-30 20:14:25 -07:00
parent 228696c8b0
commit 2c33e96dd4
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -57,10 +57,10 @@ module Spectator::SpecHelpers
# Converts a result string, such as "fail" to an enum value.
private def self.parse_outcome_string(string)
case string
when /success/i then Outcome::Success
when /fail/i then Outcome::Failure
when /error/i then Outcome::Error
else Outcome::Unknown
when /pass/i then Outcome::Success
when /fail/i then Outcome::Failure
when /error/i then Outcome::Error
else Outcome::Unknown
end
end
end