d834b81003
git-subtree-dir: map-mash git-subtree-mainline:eacc351b17
git-subtree-split:7f16409d12
19 lines
569 B
Ruby
19 lines
569 B
Ruby
ENV["RAILS_ENV"] ||= 'test'
|
|
require File.expand_path(File.join(File.dirname(__FILE__),'..','config','environment'))
|
|
require 'spec/autorun'
|
|
require 'spec/rails'
|
|
|
|
SPEC_ROOT = File.expand_path(File.dirname(__FILE__)) unless defined?(SPEC_ROOT)
|
|
ENV['SPEC_ROOT'] ||= SPEC_ROOT
|
|
|
|
require File.join(SPEC_ROOT, 'blueprints')
|
|
|
|
Dir[File.join(SPEC_ROOT,'support','**','*.rb')].each {|f| require f}
|
|
|
|
|
|
Spec::Runner.configure do |config|
|
|
config.use_transactional_fixtures = true
|
|
config.use_instantiated_fixtures = false
|
|
config.fixture_path = RAILS_ROOT + '/spec/fixtures/'
|
|
end
|