VRFS-1705 - fix test-www by a slight decouple

This commit is contained in:
Anthony Davis 2014-05-08 18:00:49 -05:00
parent f496ba6349
commit ac8a9a5af6
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ db_config = YAML::load(File.open('config/database.yml'))["test"]
bputs "before recreate db"
SpecDb::recreate_database(db_config)
SpecDb::recreate_database(db_config) unless ENV["TEST_WWW"] == "1"
bputs "before connect db"
ActiveRecord::Base.establish_connection(YAML::load(File.open('config/database.yml'))["test"])