Avoid false positive error assertion.

This commit is contained in:
Yudai Tanaka 2021-05-10 05:28:02 +09:00
parent f977a93041
commit 70f590fd03

View File

@ -207,11 +207,11 @@ describe GildedRose do
end
context "when process nil" do
it { expect { update_items(nil) }.to raise_error }
it { expect { update_items(nil) }.to raise_error(NoMethodError) }
end
context "when process an array which contains nil" do
it { expect { update_items([nil]) }.to raise_error }
it { expect { update_items([nil]) }.to raise_error(NoMethodError) }
end
end
end