module RSpec::Matchers::Pretty
def _pretty_print(array)
def _pretty_print(array) RSpec.deprecate("`RSpec::Matchers::Pretty#_pretty_print`", :replacement => "`RSpec::Matchers::Pretty#to_sentence`") result = "" array.each_with_index do |item, index| if index < (array.length - 2) result << "#{item.inspect}, " elsif index < (array.length - 1) result << "#{item.inspect} and " else result << "#{item.inspect}" end end result end