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
|
@ -21,12 +21,12 @@ Spectator.describe "GitHub Issue #32" do
|
|||
let(test_instance) { test_class.new }
|
||||
|
||||
describe "something else" do
|
||||
mock TestFoo::TestClass do
|
||||
stub self.new
|
||||
stub test
|
||||
end
|
||||
# mock TestFoo::TestClass do
|
||||
# stub self.new
|
||||
# stub test
|
||||
# end
|
||||
|
||||
it "must test when new is called" do
|
||||
xit "must test when new is called", pending: "Mock redesign" do
|
||||
expect(test_class).to receive(:new).with(no_args).and_return(test_instance)
|
||||
expect(test_instance).to receive(:test)
|
||||
expect(test_class.new).to be(test_instance)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue