diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-08-30 02:44:58 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-30 02:44:58 +0900 |
commit | cc81cd359c82bfba27388237a455fc345dce3c9f (patch) | |
tree | 1f92775bb7ce06aab83f29dbc1077b131e6edd63 /railties | |
parent | 0d63712fdf8c1ccdd9e9e4300b36f0830d1259a0 (diff) | |
parent | 9b455fe6f0e5d21e8c428da5bdba7d0f3162aef7 (diff) | |
download | rails-cc81cd359c82bfba27388237a455fc345dce3c9f.tar.gz rails-cc81cd359c82bfba27388237a455fc345dce3c9f.tar.bz2 rails-cc81cd359c82bfba27388237a455fc345dce3c9f.zip |
Merge pull request #33744 from bogdanvlviv/fixes-27852
Prevent leaking of user's DB credentials on `rails db:create` failure
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/rake/dbs_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/application/rake/dbs_test.rb b/railties/test/application/rake/dbs_test.rb index 14976c2cf8..b1038ba5d6 100644 --- a/railties/test/application/rake/dbs_test.rb +++ b/railties/test/application/rake/dbs_test.rb @@ -97,7 +97,7 @@ module ApplicationTests test "db:create failure because bad permissions" do with_bad_permissions do output = rails("db:create", allow_failure: true) - assert_match(/Couldn't create database/, output) + assert_match("Couldn't create '#{database_url_db_name}' database. Please check your configuration.", output) assert_equal 1, $?.exitstatus end end |