Generating the app is where the exception is now raised

This commit is contained in:
David Heinemeier Hansson 2017-08-03 10:02:08 -05:00
parent 624b6c210f
commit 6b40fed4e2

@ -1452,8 +1452,8 @@ def index
test "raises with proper error message if no database configuration found" do
FileUtils.rm("#{app_path}/config/database.yml")
app "development"
err = assert_raises RuntimeError do
app "development"
Rails.application.config.database_configuration
end
assert_match "config/database", err.message