# File lib/mspec/matchers/complain.rb, line 31 31: def failure_message 32: if @complaint.nil? 33: ["Expected a warning", "but received none"] 34: elsif @complaint.kind_of? Regexp 35: ["Expected warning to match:", @complaint.inspect] 36: else 37: ["Expected warning: #{@complaint.inspect}", "but got: #{@stderr.chomp.inspect}"] 38: end 39: end