If you add Bogus, you lose RSpec's double, and the syntax for stub changes. Is there any way of incrementally adding Bogus to an existing codebase?
We're on RSpec 2.14 with no deprecation warnings, so all our test doubles are instantiated with double() (stub/mock are deprecated), but we do have a bunch of object.stub(method: result). This means that (for us) Bogus' stub(object).method { result } should not conflict as long as we can keep object.stub working as in rspec_mocks.
If you add Bogus, you lose RSpec's
double, and the syntax forstubchanges. Is there any way of incrementally adding Bogus to an existing codebase?We're on RSpec 2.14 with no deprecation warnings, so all our test doubles are instantiated with
double()(stub/mock are deprecated), but we do have a bunch ofobject.stub(method: result). This means that (for us) Bogus'stub(object).method { result }should not conflict as long as we can keepobject.stubworking as in rspec_mocks.