1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

test DATABASE_URL without database.yml around

This commit is contained in:
Terence Lee 2013-02-21 00:44:06 +11:00
parent 4bdaf95b82
commit 44298c39e4

View file

@ -21,6 +21,8 @@ module ApplicationTests
def set_database_url def set_database_url
ENV['DATABASE_URL'] = "sqlite3://:@localhost/#{database_url_db_name}" ENV['DATABASE_URL'] = "sqlite3://:@localhost/#{database_url_db_name}"
# ensure it's using the DATABASE_URL
FileUtils.rm_rf("#{app_path}/config/database.yml")
end end
def expected def expected