diff options
author | Terence Lee <hone02@gmail.com> | 2013-02-21 00:44:06 +1100 |
---|---|---|
committer | Terence Lee <hone02@gmail.com> | 2013-02-21 01:25:05 +1100 |
commit | 44298c39e49d48546f3546a885c9da362bd48f28 (patch) | |
tree | 752cc20ca9836d59e8ff1d7fcf9a023ff324f3be /railties | |
parent | 4bdaf95b82a1358b11bbfb857a1ac2790136a4ef (diff) | |
download | rails-44298c39e49d48546f3546a885c9da362bd48f28.tar.gz rails-44298c39e49d48546f3546a885c9da362bd48f28.tar.bz2 rails-44298c39e49d48546f3546a885c9da362bd48f28.zip |
test DATABASE_URL without database.yml around
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/rake/dbs_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/test/application/rake/dbs_test.rb b/railties/test/application/rake/dbs_test.rb index ccb47663d4..813680738a 100644 --- a/railties/test/application/rake/dbs_test.rb +++ b/railties/test/application/rake/dbs_test.rb @@ -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 |