From 01fc91e85457f590d914e2b8c4b33a77fec81591 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Mon, 14 Mar 2022 21:53:09 -0600 Subject: [PATCH] Add stubs for primitive methods --- src/spectator/mocks/stubbable.cr | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/spectator/mocks/stubbable.cr b/src/spectator/mocks/stubbable.cr index bedd703..2e14c5d 100644 --- a/src/spectator/mocks/stubbable.cr +++ b/src/spectator/mocks/stubbable.cr @@ -160,8 +160,7 @@ module Spectator {% end %} {% for method in type.methods.reject do |meth| - meth.annotation(Primitive) || - meth.name.starts_with?("_spectator") || + meth.name.starts_with?("_spectator") || DSL::RESERVED_KEYWORDS.includes?(meth.name.symbolize) end %} {{style.id}} {{method}}