mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Pass exception failure message to error
This commit is contained in:
parent
2407c43132
commit
a5ed5d0fb1
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ module Spectator
|
|||
# TODO: Move this out of harness, maybe to `Example`.
|
||||
Example.current.name = expectation.description unless Example.current.name?
|
||||
|
||||
raise ExpectationFailed.new(expectation) if expectation.failed?
|
||||
raise ExpectationFailed.new(expectation, expectation.failure_message) if expectation.failed?
|
||||
end
|
||||
|
||||
# Stores a block of code to be executed later.
|
||||
|
|
Loading…
Reference in a new issue