method

failure_message_for_should

Importance_0
RSpec latest stable (1.3.1) - 0 notes - Class: Spec::Matchers::MatchArray
failure_message_for_should() public

No documentation

This method has no description. You can help the RSpec community by adding new notes.

Hide source
# File lib/spec/matchers/match_array.rb, line 18
      def failure_message_for_should
        message =  "expected collection contained:  #{safe_sort(@expected).inspect}\n"
        message += "actual collection contained:    #{safe_sort(@actual).inspect}\n"
        message += "the missing elements were:      #{safe_sort(@missing_items).inspect}\n" unless @missing_items.empty?
        message += "the extra elements were:        #{safe_sort(@extra_items).inspect}\n"   unless @extra_items.empty?
        message
      end
Register or log in to add new notes.