Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Don't use RSpec.configure to use the matcher DSL #1048

Closed
wants to merge 1 commit into from

Commits on Mar 2, 2018

  1. Don't use RSpec.configure to use the matcher DSL

    rspec-expectations shouldn't have knowledge of how to hook itself into
    rspec-core. rspec-core already includes the `RSpec::Matchers` module in
    example groups, so just including the module there (in addition to
    extending it) is enough to provide it to rspec-core, even if rspec-core
    hasn't been loaded yet and is loaded after rspec-expectations.
    
    Fixes https://github.com/rspec/rspec-expectations/issues/1045.
    alyssais committed Mar 2, 2018
    Configuration menu
    Copy the full SHA
    ce891f1 View commit details
    Browse the repository at this point in the history