RSpec / RSpec Mocks / Docs
Working with legacy code
RSpec provides a few features that, while not generally recommended, can be useful when you are getting legacy code under test (or in similar situations). Usage of these features should be considered a code smell.
In this section
Source: features/working_with_legacy_code/README.md at v3.9.1, RSpec Mocks (MIT license).