Skip to content

Commit

Permalink
Refactor matcher_spec.
Browse files Browse the repository at this point in the history
- Use a helper method to create the matchers, rather than
  `Matcher.new` + `for_expected`. I plan to rewrite the
  implementation of `Matcher` in a way that will require it
  to be instantiated differently and I having this helper
  method gives us only one place to update.
- Prefer `let` to `before(:each)` ivars.
- Define the module inline as a local; this avoids the need
  for the awkward `m = mod`.
  • Loading branch information
myronmarston committed Oct 3, 2013
1 parent 8300bf8 commit 3d0e865
Showing 1 changed file with 81 additions and 81 deletions.

0 comments on commit 3d0e865

Please sign in to comment.