mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Remove or skip mock, double, and stub tests
This commit is contained in:
parent
0c7f72dc78
commit
b83c6b7b1e
10 changed files with 30 additions and 268 deletions
|
@ -7,12 +7,12 @@ Spectator.describe "GitHub Issue #29" do
|
|||
end
|
||||
end
|
||||
|
||||
mock SomeClass do
|
||||
stub exit(code)
|
||||
end
|
||||
# mock SomeClass do
|
||||
# inject_stub abstract def exit(code)
|
||||
# end
|
||||
|
||||
describe SomeClass do
|
||||
it "captures exit" do
|
||||
xit "captures exit", pending: "Mock redesign" do
|
||||
expect(subject).to receive(:exit).with(0)
|
||||
subject.goodbye
|
||||
end
|
||||
|
@ -25,13 +25,13 @@ Spectator.describe "GitHub Issue #29" do
|
|||
end
|
||||
end
|
||||
|
||||
mock Foo do
|
||||
stub self.exit(code)
|
||||
end
|
||||
# mock Foo do
|
||||
# inject_stub abstract def self.exit(code)
|
||||
# end
|
||||
|
||||
subject { Foo }
|
||||
|
||||
it "must capture exit" do
|
||||
xit "must capture exit", pending: "Mock redesign" do
|
||||
expect(subject).to receive(:exit).with(0)
|
||||
|
||||
subject.test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue