* checking in fix for need for RAILS_ENV=test
This commit is contained in:
parent
51c7eac5b1
commit
c910fe5860
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
ENV["RAILS_ENV"] ||= 'test'
|
||||
|
||||
|
||||
# provision database
|
||||
require 'active_record'
|
||||
require 'jam_db'
|
||||
|
|
@ -8,11 +11,12 @@ db_config = YAML::load(File.open('config/database.yml'))["test"]
|
|||
SpecDb::recreate_database(db_config)
|
||||
ActiveRecord::Base.establish_connection(YAML::load(File.open('config/database.yml'))["test"])
|
||||
|
||||
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
||||
|
||||
require 'jam_ruby'
|
||||
|
||||
|
||||
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
||||
ENV["RAILS_ENV"] ||= 'test'
|
||||
|
||||
require File.expand_path("../../config/environment", __FILE__)
|
||||
require 'rspec/rails'
|
||||
require 'rspec/autorun'
|
||||
|
|
|
|||
Loading…
Reference in New Issue