module Aruba::Matchers::Base::MessageIndenter
def indent_multiline_message(message)
def indent_multiline_message(message) message = message.sub(/\n+\z/, "") message.lines.map do |line| /\S/.match?(line) ? " #{line}" : line end.join end
def indent_multiline_message(message) message = message.sub(/\n+\z/, "") message.lines.map do |line| /\S/.match?(line) ? " #{line}" : line end.join end