mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Introduce non-expectation error ExampleFailed
Used by fail method. Still todo: Output from failed example is missing because there are no expectations.
This commit is contained in:
parent
ccedcdac42
commit
aa12cdf17c
5 changed files with 21 additions and 5 deletions
|
@ -6,7 +6,7 @@ macro it_fails(description = nil, &block)
|
|||
it {{description}} do
|
||||
expect do
|
||||
{{block.body}}
|
||||
end.to raise_error(Spectator::ExpectationFailed)
|
||||
end.to raise_error(Spectator::ExampleFailed)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue