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:
parent
4bdaf95b82
commit
44298c39e4
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ module ApplicationTests
|
|||
|
||||
def set_database_url
|
||||
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
|
||||
|
||||
def expected
|
||||
|
|
Loading…
Reference in a new issue