class Spork::TestFramework

def bootstrap

Bootstraps the current test helper file by prepending a Spork.prefork and Spork.each_run block at the beginning.
def bootstrap
  if bootstrapped?
    stderr.puts "Already bootstrapped!"
    return
  end
  stderr.puts "Bootstrapping #{helper_file}."
  contents = File.read(helper_file)
  bootstrap_code = File.read(BOOTSTRAP_FILE)
  File.open(helper_file, "wb") do |f|
    f.puts bootstrap_code
    f.puts contents
  end
  stderr.puts "Done. Edit #{helper_file} now with your favorite text editor and follow the instructions."
  true
end