Commit Graph

1 Commits

Author SHA1 Message Date
Damian Galarza and Harry Schwartz 516fa75f6e Restore delegate_method matcher
Matcher was removed in commit 77dc477c due to issues described in
https://github.com/thoughtbot/shoulda-matchers/issues/252

We've moved away from using Bourne and Mocha's `HaveReceived` matcher and
implemented a `StubbedTarget` class for spying on methods to be delegated.
We also removed the stub call to be handled via `define_method` for
framework-independent support.

Other changes include:

* Use 1.9 hash syntax in `delegate_method`
* Don't explicity test failure messages
2014-03-21 14:54:16 -04:00