mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Mark internal class as private
Minimal doubles should be done.
This commit is contained in:
parent
00c0553426
commit
47ca96801b
3 changed files with 3 additions and 3 deletions
|
@ -311,7 +311,7 @@ Items not marked as completed may have partial implementations.
|
|||
- [ ] Compound - `and`, `or`
|
||||
- [ ] Mocks and Doubles
|
||||
- [ ] Mocks (Stub real types) - `mock TYPE { }`
|
||||
- [ ] Doubles (Stand-ins for real types) - `double NAME { }`
|
||||
- [X] Doubles (Stand-ins for real types) - `double NAME { }`
|
||||
- [ ] Method stubs - `allow().to receive()`, `allow().to receive().and_return()`
|
||||
- [ ] Spies - `expect().to receive()`
|
||||
- [ ] Message expectations - `expect().to receive().at_least()`
|
||||
|
|
|
@ -5,7 +5,7 @@ module Spectator
|
|||
@internal.{{definition.name.id}}
|
||||
end
|
||||
|
||||
class Internal
|
||||
private class Internal
|
||||
def {{definition.name.id}}
|
||||
{{definition.block.body}}
|
||||
end
|
||||
|
|
|
@ -6,7 +6,7 @@ module Spectator::DSL
|
|||
Double{{name.id}}.new(@spectator_test_values)
|
||||
{% else %}
|
||||
class Double{{name.id}} < ::Spectator::Double
|
||||
class Internal < {{@type.id}}
|
||||
private class Internal < {{@type.id}}
|
||||
end
|
||||
|
||||
def initialize(test_values : ::Spectator::TestValues)
|
||||
|
|
Loading…
Reference in a new issue