From 7ffa63718ba3e64b751351227a7b16de6e717922 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Thu, 8 Dec 2022 16:55:27 -0700 Subject: [PATCH] Use original type in redefinition comment --- src/spectator/mocks/stubbable.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spectator/mocks/stubbable.cr b/src/spectator/mocks/stubbable.cr index ffb52f3..4b03117 100644 --- a/src/spectator/mocks/stubbable.cr +++ b/src/spectator/mocks/stubbable.cr @@ -387,7 +387,7 @@ module Spectator method = definition[:method] scope = definition[:scope] receiver = definition[:receiver] %} - # Redefinition of {{type}}{{(receiver ? "." : "#").id}}{{method.name}} + # Redefinition of {{original_type}}{{(receiver ? "." : "#").id}}{{method.name}} {{(method.abstract? ? "abstract_stub abstract" : "default_stub").id}} {{method.visibility.id if method.visibility != :public}} def {{"#{receiver}.".id if receiver}}{{method.name}}( {% for arg, i in method.args %}{% if i == method.splat_index %}*{% end %}{{arg}}, {% end %} {% if method.double_splat %}**{{method.double_splat}}, {% end %}