class RSpec::Matchers::Have
:nodoc:
:nodoc:
:nodoc:
def description_with_errors_on_extensions
def description_with_errors_on_extensions return "have #{relativities[@relativity]}#{@expected} errors on :#{@args[0]}" if @collection_name == :errors_on return "have #{relativities[@relativity]}#{@expected} error on :#{@args[0]}" if @collection_name == :error_on return description_without_errors_on_extensions end
def failure_message_for_should_with_errors_on_extensions
:nodoc:
:nodoc:
def failure_message_for_should_with_errors_on_extensions return "expected #{relativities[@relativity]}#{@expected} errors on :#{@args[0]}, got #{@actual}" if @collection_name == :errors_on return "expected #{relativities[@relativity]}#{@expected} error on :#{@args[0]}, got #{@actual}" if @collection_name == :error_on return failure_message_for_should_without_errors_on_extensions end