Autoload RSpec::Mocks and RSpec::Expectations. (master)
Created by: JonRowe
We already autoload RSpec::Matchers to support folks using
RSpec::Matchers.define
before the normal time that rspec-core loads rspec-expectation (e.g. right before eval'ing the first example group block). This extends it to RSpec::Mocks and RSpec::Expectations for parity and to improve things for folks who we accidentally broke via this rspec gem change:https://github.com/rspec/rspec/commit/f10bedd498dff2961d4be9cce793fa152c4a0bbe
That was put in place to address rspec/rspec-mocks#359, which has more info.
Based off 2-99