mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Update spec helpers to have source information
This commit is contained in:
parent
5913a4c18f
commit
36c98db0ae
5 changed files with 48 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -5,6 +5,16 @@ class FailingExample < Spectator::RunnableExample
|
|||
"FAIL"
|
||||
end
|
||||
|
||||
# Dummy source file.
|
||||
def source_file
|
||||
__FILE__
|
||||
end
|
||||
|
||||
# Dummy source line number.
|
||||
def source_line
|
||||
__LINE__
|
||||
end
|
||||
|
||||
# Dummy instance.
|
||||
def instance
|
||||
nil
|
||||
|
|
|
@ -5,6 +5,16 @@ class PassingExample < Spectator::RunnableExample
|
|||
"PASS"
|
||||
end
|
||||
|
||||
# Dummy source file.
|
||||
def source_file
|
||||
__FILE__
|
||||
end
|
||||
|
||||
# Dummy source line number.
|
||||
def source_line
|
||||
__LINE__
|
||||
end
|
||||
|
||||
# Dummy instance.
|
||||
def instance
|
||||
nil
|
||||
|
|
|
@ -6,6 +6,16 @@ class SpyExample < Spectator::RunnableExample
|
|||
"SPY"
|
||||
end
|
||||
|
||||
# Dummy source file.
|
||||
def source_file
|
||||
__FILE__
|
||||
end
|
||||
|
||||
# Dummy source line number.
|
||||
def source_line
|
||||
__LINE__
|
||||
end
|
||||
|
||||
# Dummy instance.
|
||||
def instance
|
||||
nil
|
||||
|
|
|
@ -5,6 +5,14 @@ class ConcretePendingExample < Spectator::PendingExample
|
|||
"PENDING_TEST_EXAMPLE"
|
||||
end
|
||||
|
||||
def source_file
|
||||
__FILE__
|
||||
end
|
||||
|
||||
def source_line
|
||||
__LINE__
|
||||
end
|
||||
|
||||
def instance
|
||||
nil
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue