Remove or skip mock, double, and stub tests

This commit is contained in:
Michael Miller 2022-03-19 17:20:15 -06:00
parent 0c7f72dc78
commit b83c6b7b1e
No known key found for this signature in database
GPG key ID: 32B47AE8F388A1FF
10 changed files with 30 additions and 268 deletions

View file

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