mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Treat symbols and non-symbols the same
This commit is contained in:
parent
fd2c6d3d8c
commit
18b3879dce
1 changed files with 1 additions and 1 deletions
|
@ -43,6 +43,6 @@ module Spectator::DSL
|
||||||
|
|
||||||
macro receive(method_name, _source_file = __FILE__, _source_line = __LINE__)
|
macro receive(method_name, _source_file = __FILE__, _source_line = __LINE__)
|
||||||
%source = ::Spectator::Source.new({{_source_file}}, {{_source_line}})
|
%source = ::Spectator::Source.new({{_source_file}}, {{_source_line}})
|
||||||
::Spectator::Mocks::NilMethodStub.new({{method_name.symbolize}}, %source)
|
::Spectator::Mocks::NilMethodStub.new({{method_name.id.symbolize}}, %source)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue