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:
Michael Miller 2021-07-10 03:32:55 -06:00
parent ccedcdac42
commit aa12cdf17c
No known key found for this signature in database
GPG key ID: F9A0C5C65B162436
5 changed files with 21 additions and 5 deletions

View file

@ -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