mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Support label for aggregate_failures block
This commit is contained in:
parent
4c125d98d4
commit
f53ffabf6b
3 changed files with 17 additions and 6 deletions
|
@ -28,5 +28,14 @@ Spectator.describe Spectator do
|
|||
end
|
||||
end.to_not raise_error(Spectator::ExpectationFailed)
|
||||
end
|
||||
|
||||
it "supports naming the block" do
|
||||
expect do
|
||||
aggregate_failures "contradiction" do
|
||||
expect(true).to be_false
|
||||
expect(false).to be_true
|
||||
end
|
||||
end.to raise_error(Spectator::MultipleExpectationsFailed, /contradiction/)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue