rspec/rspec-expectations — Issue #105: Matcher classes in 2.8 pollute the example namespace
Author: dchelimsky
Created: 2012-01-09 02:42:54+00:00
State: open

Problem exposed in http://stackoverflow.com/questions/8783097/rspec-2-8-1-broke-my-specs.

All of the new matcher classes in 2.8 are defined in RSpec::Matchers, which is included in every example. This means classes like `Match` and `Change`, which are generic enough names that they're likely to appear in applications, will be hidden by RSpec::Matchers::Match/Change/etc.

Move all of them into a separate module that is not included in each example, and reference them with qualified names.