Also cleaned up the related cukes. There was some duplication between the operator and "be" matcher cukes, and the latter had some examples that I prefer to discourage.
- Closes #36.
…t occur in the proc.
…indeed defined - Closes #30.
…rs cannot be supported on ruby 1.8. - Closes #33.
…d can work outside of it.
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!). - Closes #38.
This allows you to define helper methods in a matcher using #define_method to gain access to the parameters. - Closes #29.
- Object.new.should_not respond_to(:object_id, :some_undefined_method) should fail (but passed before). - Refactored and DRYed up the matcher a bit. - Added argument arity info to failure_message_for_should_not. - Added test coverage for more should_not cases. - Closes #26.