Update spec helpers to have source information

This commit is contained in:
Michael Miller 2019-02-14 15:41:59 -07:00
parent 5913a4c18f
commit 36c98db0ae
5 changed files with 48 additions and 0 deletions

View file

@ -5,6 +5,16 @@ class ErroredExample < Spectator::RunnableExample
"ERROR"
end
# Dummy source file.
def source_file
__FILE__
end
# Dummy source line number.
def source_line
__LINE__
end
# Dummy instance.
def instance
nil