Replace source file and line with source struct

This commit is contained in:
Michael Miller 2019-02-17 12:40:16 -07:00
parent ffca0316a4
commit ed01a95e67
9 changed files with 26 additions and 70 deletions

View file

@ -5,14 +5,9 @@ class FailingExample < Spectator::RunnableExample
"FAIL"
end
# Dummy source file.
def source_file
__FILE__
end
# Dummy source line number.
def source_line
__LINE__
# Dummy source.
def source
::Spectator::Source.new(__FILE__, __LINE__)
end
# Dummy instance.