fix: Error: expecting token 'CONST', not '::'

This commit is contained in:
Grant Birkinbine 2024-08-11 15:28:19 -07:00 committed by GitHub
parent 287758e6af
commit 73e1686219
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -431,7 +431,7 @@ module Spectator::DSL
# This isn't required, but new_mock() should still find this type.
::Spectator::DSL::Mocks::TYPES << {type.id.symbolize, @type.name(generic_args: false).symbolize, resolved.name.symbolize} %}
::Spectator::Mock.inject({{base}}, ::{{resolved.name}}, {{**value_methods}}) {{block}}
::Spectator::Mock.inject({{base}}, {{resolved.name}}, {{**value_methods}}) {{block}}
end
# Targets a stubbable object (such as a mock or double) for operations.