Skip to content

Instantly share code, notes, and snippets.

@marcoow
Created November 6, 2009 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcoow/227876 to your computer and use it in GitHub Desktop.
Save marcoow/227876 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'spork'
ENV['RAILS_ENV'] = 'test'
Spork.prefork do
require File.dirname(__FILE__) + "/../config/environment"
require 'spec/autorun'
require 'spec/rails'
end
Spork.each_run do
Dir["#{File.dirname(__FILE__)}/factories/**/*.rb"].each { |f| require f }
Dir["#{File.dirname(__FILE__)}/shared/**/*.rb"].each { |f| require f }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment