mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Some fixes
This commit is contained in:
parent
a100191875
commit
64166d1c36
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
require "./example_component"
|
||||
require "./test_wrapper"
|
||||
|
||||
module Spectator
|
||||
# Base class for all types of examples.
|
||||
|
@ -11,7 +12,7 @@ module Spectator
|
|||
getter group : ExampleGroup
|
||||
|
||||
# Retrieves the internal wrapped instance.
|
||||
private getter @test_wrapper : TestWrapper
|
||||
private getter test_wrapper : TestWrapper
|
||||
|
||||
# Source where the example originated from.
|
||||
def source
|
||||
|
@ -22,6 +23,11 @@ module Spectator
|
|||
@test_wrapper.description
|
||||
end
|
||||
|
||||
def symbolic?
|
||||
description = @test_wrapper.description
|
||||
description.start_with?('#') || description.start_with?('.')
|
||||
end
|
||||
|
||||
# Runs the example code.
|
||||
# A result is returned, which represents the outcome of the test.
|
||||
# An example can be run only once.
|
||||
|
|
Loading…
Reference in a new issue