Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Rearrange requires.
  • Loading branch information
Gabe Berke-Williams committed Mar 24, 2012
1 parent bd52483 commit 1c517d2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/spec_helper.rb
Expand Up @@ -6,19 +6,18 @@
ENV['RAILS_ENV'] = 'test'
ENV['BUNDLE_GEMFILE'] ||= TESTAPP_ROOT + '/Gemfile'

require "#{TESTAPP_ROOT}/config/environment"
require 'rspec'
require 'bourne'
require 'shoulda-matchers'
require 'rspec/rails'
require "#{TESTAPP_ROOT}/config/environment"

PROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')).freeze

$LOAD_PATH << File.join(PROJECT_ROOT, 'lib')

Dir[File.join(PROJECT_ROOT, 'spec', 'support', '**', '*.rb')].each { |file| require(file) }

require 'shoulda-matchers'
require 'rspec/rails'

# Run the migrations
ActiveRecord::Migration.verbose = false
ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
Expand Down

0 comments on commit 1c517d2

Please sign in to comment.