mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Update runtime JSON parsing to use new structure
This commit is contained in:
parent
15c5b0991d
commit
103597a7be
1 changed files with 2 additions and 2 deletions
|
@ -44,8 +44,8 @@ module Spectator::SpecHelpers
|
|||
|
||||
# Extracts the result information from a `JSON::Any` object.
|
||||
def self.from_json_any(object : JSON::Any)
|
||||
name = object["name"].as_s
|
||||
outcome = parse_outcome_string(object["result"].as_s)
|
||||
name = object["description"].as_s
|
||||
outcome = parse_outcome_string(object["status"].as_s)
|
||||
expectations = if (list = object["expectations"].as_a?)
|
||||
list.map { |e| Expectation.from_json_any(e) }
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue