method
failure_message_for_should
1.2.0 -
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 17 def failure_message_for_should message = "expected collection contained: #{@expected.sort.inspect}\n" message += "actual collection contained: #{@actual.sort.inspect}\n" message += "the missing elements were: #{@missing_items.sort.inspect}\n" unless @missing_items.empty? message += "the extra elements were: #{@extra_items.sort.inspect}\n" unless @extra_items.empty? message end