mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Specify skip reason
This commit is contained in:
parent
a061bd2044
commit
dcdc64e134
8 changed files with 50 additions and 61 deletions
|
@ -34,16 +34,16 @@ Spectator.describe "Explicit Subject" do
|
|||
|
||||
subject { @@element_list.pop }
|
||||
|
||||
# TODO: RSpec calls the "actual" block after the "change block".
|
||||
xit "is memoized across calls (i.e. the block is invoked once)" do
|
||||
skip "is memoized across calls (i.e. the block is invoked once)",
|
||||
reason: "RSpec calls the \"actual\" block after the \"change block\"." do
|
||||
expect do
|
||||
3.times { subject }
|
||||
end.to change { @@element_list }.from([1, 2, 3]).to([1, 2])
|
||||
expect(subject).to eq(3)
|
||||
end
|
||||
|
||||
# TODO: RSpec calls the "actual" block after the "change block".
|
||||
xit "is not memoized across examples" do
|
||||
skip "is not memoized across examples",
|
||||
reason: "RSpec calls the \"actual\" block after the \"change block\"." do
|
||||
expect { subject }.to change { @@element_list }.from([1, 2]).to([1])
|
||||
expect(subject).to eq(2)
|
||||
end
|
||||
|
|
|
@ -11,7 +11,7 @@ Spectator.describe "Let and let!" do
|
|||
describe "let" do
|
||||
let(:count) { @@count += 1 }
|
||||
|
||||
it "memoizes thte value" do
|
||||
it "memoizes the value" do
|
||||
expect(count).to eq(1)
|
||||
expect(count).to eq(1)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue