Merge remote-tracking branch 'GrantBirki/master'

PR: https://github.com/icy-arctic-fox/spectator/pull/57
This commit is contained in:
Michael Miller 2024-08-13 18:18:06 -06:00
commit 12f3f35958
No known key found for this signature in database
GPG key ID: AC78B32D30CE34A2

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.