Generating the app is where the exception is now raised
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user