method
failure_message_for_should
1.3.1 -
Show latest stable
-
0 notes -
Class: Spec::Matchers::MatchArray
- 1.1.4
- 1.1.12
- 1.2.0 (0)
- 1.2.8 (0)
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
failure_message_for_should()
public
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