Specify skip reason

This commit is contained in:
Michael Miller 2021-06-11 19:30:23 -06:00
parent a061bd2044
commit dcdc64e134
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD
8 changed files with 50 additions and 61 deletions

View file

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

View file

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