class MiniTest::Spec

def assert_match_in_file(pattern, file)

Asserts that a file matches the pattern
def assert_match_in_file(pattern, file)
  assert File.exist?(file), "File '#{file}' does not exist!"
  assert_match pattern, File.read(file)
end