Fix expected value snapshot

This commit is contained in:
Michael Miller 2019-08-08 21:39:30 -06:00
parent 955311bb95
commit 21e10c1ef2
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ module Spectator::Matchers
{% begin %}
{
{% for attribute in ExpectedType.keys %}
{{attribute}}: object.has_{{attribute}}?(*@expected[{{attribute.symbolize}}]),
{{attribute}}: object.has_{{attribute}}?(*@expected.value[{{attribute.symbolize}}]),
{% end %}
}
{% end %}

View file

@ -47,7 +47,7 @@ module Spectator::Matchers
{% begin %}
{
{% for attribute in ExpectedType.keys %}
{{attribute}}: object.{{attribute}}?(*@expected[{{attribute.symbolize}}]),
{{attribute}}: object.{{attribute}}?(*@expected.value[{{attribute.symbolize}}]),
{% end %}
}
{% end %}