VRFS-1705 - fix test-www by a slight decouple
This commit is contained in:
parent
f496ba6349
commit
ac8a9a5af6
|
|
@ -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"])
|
||||
|
|
|
|||
Loading…
Reference in New Issue