marcoow (owner)

Revisions

gist: 227876 Download_button fork
public
Public Clone URL: git://gist.github.com/227876.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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