mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Replace source file and line with source struct
This commit is contained in:
parent
ffca0316a4
commit
ed01a95e67
9 changed files with 26 additions and 70 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue