require "rspec" RSpec::Matchers.define :have_content do |expected| match do |actual| actual.content.include? expected end failure_message_for_should do |actual| "expected \"#{actual.content.join("\n")}\" to include \"#{expected}\"" end end