Sub-type value modifier from MatchDataValue

This includes renaming the types.
This commit is contained in:
Michael Miller 2019-03-22 10:55:57 -06:00
parent 4f6309a032
commit 33841e8888
27 changed files with 43 additions and 35 deletions

View file

@ -4,7 +4,7 @@ def match_data_value(match_data, key)
end
# Retrieves the string representation and base value
# from a `Spectator::Matchers::PrefixedValue`
# from a `Spectator::Matchers::PrefixedMatchDataValue`
# in a `NamedTuple` returned by `Spectator::Matchers::MatchData#values`.
def match_data_prefix(match_data, key)
prefix = match_data.values.fetch(key) { raise "#{key} is missing" }