mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Set nameless example to matcher description
This commit is contained in:
parent
82e13f5434
commit
e44505d4c1
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@ module Spectator
|
||||||
def report(expectation : Expectation) : Nil
|
def report(expectation : Expectation) : Nil
|
||||||
Log.debug { "Reporting expectation #{expectation}" }
|
Log.debug { "Reporting expectation #{expectation}" }
|
||||||
@expectations << expectation
|
@expectations << expectation
|
||||||
|
Example.current.name = expectation.description unless Example.current.name?
|
||||||
raise ExpectationFailed.new(expectation) if expectation.failed?
|
raise ExpectationFailed.new(expectation) if expectation.failed?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue