mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Address Ameba issues
This commit is contained in:
parent
1adcf74c3f
commit
ac03bd439b
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ Spectator.describe Spectator::ReferenceMockRegistry do
|
||||||
obj1 = "foo"
|
obj1 = "foo"
|
||||||
obj2 = "bar"
|
obj2 = "bar"
|
||||||
registry[obj2] << Spectator::ValueStub.new(:obj2, 42)
|
registry[obj2] << Spectator::ValueStub.new(:obj2, 42)
|
||||||
expect { registry.fetch(obj2) { no_stubs } }.to_not change { registry[obj2] }
|
expect { registry.fetch(obj1) { no_stubs } }.to_not change { registry[obj2] }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -195,7 +195,7 @@ module Spectator
|
||||||
|
|
||||||
{% original = "previous_def#{" { |*_spectator_yargs| yield *_spectator_yargs }".id if method.accepts_block?}".id %}
|
{% original = "previous_def#{" { |*_spectator_yargs| yield *_spectator_yargs }".id if method.accepts_block?}".id %}
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
{% # Reconstruct the method signature.
|
{% # Reconstruct the method signature.
|
||||||
# I wish there was a better way of doing this, but there isn't (at least not that I'm aware of).
|
# I wish there was a better way of doing this, but there isn't (at least not that I'm aware of).
|
||||||
# This chunk of code must reconstruct the method signature exactly as it was originally.
|
# This chunk of code must reconstruct the method signature exactly as it was originally.
|
||||||
|
|
Loading…
Reference in a new issue