diff --git a/web/spec/spec_helper.rb b/web/spec/spec_helper.rb index 3ff0f6e46..5af0fbc83 100644 --- a/web/spec/spec_helper.rb +++ b/web/spec/spec_helper.rb @@ -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"])