Rearrange requires.
This commit is contained in:
parent
bd524833ff
commit
1c517d2795
|
@ -6,9 +6,11 @@ FileUtils.rm_rf(TESTAPP_ROOT) if File.exists?(TESTAPP_ROOT)
|
|||
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
|
||||
|
||||
|
@ -16,9 +18,6 @@ $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")
|
||||
|
|
Loading…
Reference in New Issue