method
failure_message
RSpec latest stable (1.3.1)
-
0 notes -
Class: Spec::Matchers::MatchArray
- 1.1.4
- 1.1.12 (0)
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
failure_message()
public
Hide source
# File lib/spec/matchers/match_array.rb, line 17 def failure_message 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