Exception: Shoulda::Matchers::Independent::DelegateMethodMatcher::DelegateObjectNotSpecified
- Inherits:
-
StandardError
- Object
- StandardError
- Shoulda::Matchers::Independent::DelegateMethodMatcher::DelegateObjectNotSpecified
- Defined in:
- lib/shoulda/matchers/independent/delegate_method_matcher/target_not_defined_error.rb
Instance Method Summary collapse
Instance Method Details
#message ⇒ Object
7 8 9 10 |
# File 'lib/shoulda/matchers/independent/delegate_method_matcher/target_not_defined_error.rb', line 7 def 'Delegation needs a target. Use the #to method to define one, e.g. `post_office.should delegate(:deliver_mail).to(:mailman)`'.squish end |