ENV['RAILS_ENV'] = 'test' ENV['RAILS_ROOT'] ||= File.dirname(__FILE__) + '/../../../..' # Load the testing framework require File.expand_path(File.join(ENV['RAILS_ROOT'], 'config/environment.rb')) require 'test_help'