From 21e10c1ef22d610e45bb5ea8c2f521c4bf3fbbdc Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Thu, 8 Aug 2019 21:39:30 -0600 Subject: [PATCH] Fix expected value snapshot --- src/spectator/matchers/have_predicate_matcher.cr | 2 +- src/spectator/matchers/predicate_matcher.cr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spectator/matchers/have_predicate_matcher.cr b/src/spectator/matchers/have_predicate_matcher.cr index ccd4451..96145d5 100644 --- a/src/spectator/matchers/have_predicate_matcher.cr +++ b/src/spectator/matchers/have_predicate_matcher.cr @@ -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 %} diff --git a/src/spectator/matchers/predicate_matcher.cr b/src/spectator/matchers/predicate_matcher.cr index 6cbbb88..93ce33b 100644 --- a/src/spectator/matchers/predicate_matcher.cr +++ b/src/spectator/matchers/predicate_matcher.cr @@ -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 %}