Update specs to handle new match data values

This commit is contained in:
Michael Miller 2019-03-22 11:41:39 -06:00
parent 3dd39f17f5
commit d705ef657c
24 changed files with 112 additions and 110 deletions

View file

@ -76,7 +76,7 @@ describe Spectator::Matchers::EqualityMatcher do
partial = new_partial(actual)
matcher = Spectator::Matchers::EqualityMatcher.new(expected)
match_data = matcher.match(partial)
match_data.values[:expected].value.should eq(expected)
match_data_value_sans_prefix(match_data, :expected)[:value].should eq(expected)
end
end
@ -86,7 +86,7 @@ describe Spectator::Matchers::EqualityMatcher do
partial = new_partial(actual)
matcher = Spectator::Matchers::EqualityMatcher.new(expected)
match_data = matcher.match(partial)
match_data.values[:actual].should eq(actual)
match_data_value_sans_prefix(match_data, :actual)[:value].should eq(actual)
end
end
end