Keeps backwards compatibility since we had released an rspec-mocks that only supported stubbing. Later, we released the hide_const feature and decided that the term "mutator" was a better term to wrap up the concept of both stubbing and hiding.
# File lib/rspec/mocks.rb, line 26 def configuration @configuration ||= Configuration.new end
# File lib/rspec/mocks.rb, line 10 def setup(host) add_extensions unless extensions_added? (class << host; self; end).class_eval do include RSpec::Mocks::ExampleMethods end self.space ||= RSpec::Mocks::Space.new end
# File lib/rspec/mocks.rb, line 22 def teardown space.reset_all end
# File lib/rspec/mocks.rb, line 18 def verify space.verify_all end