Please sign in to comment.
Fix matcher chaining to prevent name collisions.
Previously, #chain used #define_method on the class to define an instance method on all instances. We want it to define the method on only this instance, so we need to delegate to the singleton class instead (which the recently added #define_method does for us!).
- Loading branch information...
Showing with 11 additions and 5 deletions.