You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failure/Error: it { should delegate_method(:name).to(:user) }
Expected UserPresenter#name to delegate to UserPresenter#user
Calls on UserPresenter#user: (none)
Moving attr_reader :user out of the private section fixes the issue.
shoulda-matchers (2.6.1)
The text was updated successfully, but these errors were encountered:
Issue #526
Previously if a class delegated to a private method the `matches?` method would
return `false`. This was because`respond_to?` always returns `false` for private methods, this commit fixes this by making `respond_to?` evaluate private methods.
Issue #526
Previously if a class delegated to a private method the `matches?` method would
return `false`. This was because`respond_to?` always returns `false` for private methods, this commit fixes this by making `respond_to?` evaluate private methods.
Class which delegates to private method:
Spec
Error:
Moving
attr_reader :user
out of theprivate
section fixes the issue.shoulda-matchers (2.6.1)
The text was updated successfully, but these errors were encountered: