mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Add it_fails
to handle expected failures
This commit is contained in:
parent
e3a4dedfc6
commit
15f211c4b6
16 changed files with 130 additions and 150 deletions
|
@ -10,9 +10,8 @@ Spectator.describe "`match` matcher" do
|
|||
it { is_expected.not_to match(/foo/) }
|
||||
|
||||
# deliberate failures
|
||||
# TODO: Add support for expected failures.
|
||||
xit { is_expected.not_to match(/str/) }
|
||||
xit { is_expected.to match(/foo/) }
|
||||
it_fails { is_expected.not_to match(/str/) }
|
||||
it_fails { is_expected.to match(/foo/) }
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -22,9 +21,8 @@ Spectator.describe "`match` matcher" do
|
|||
it { is_expected.not_to match("drinks") }
|
||||
|
||||
# deliberate failures
|
||||
# TODO: Add support for expected failures.
|
||||
xit { is_expected.not_to match("food") }
|
||||
xit { is_expected.to match("drinks") }
|
||||
it_fails { is_expected.not_to match("food") }
|
||||
it_fails { is_expected.to match("drinks") }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue