Treat symbols and non-symbols the same

This commit is contained in:
Michael Miller 2019-11-11 20:59:33 -07:00
parent fd2c6d3d8c
commit 18b3879dce

View file

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