class GeneratorSpec::Matcher::File

def check_contents(file)

def check_contents(file)
  contents = ::File.read(file)
  @contents.each do |string|
    unless contents.include?(string)
      throw :failure, [file, string, contents]
    end
  end
  @negative_contents.each do |string|
    if contents.include?(string)
      throw :failure, [:not, file, string, contents]
    end
  end
end