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 %}