Address Ameba issues

This commit is contained in:
Michael Miller 2022-05-15 11:06:00 -06:00
parent 1adcf74c3f
commit ac03bd439b
No known key found for this signature in database
GPG key ID: 32B47AE8F388A1FF
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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.