diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-07-24 13:00:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-24 13:00:05 +0200 |
commit | 0449d8b6bc02f4c0a416a7c40550e3b8b988d113 (patch) | |
tree | ad7db9872c41aef37ef8483777808c342ff913d6 /railties | |
parent | b5ba8d715a36f8184ee013a4f83fb260f2dd34fd (diff) | |
parent | 2b331e9098c489791031ee17f683ca8be92f7bba (diff) | |
download | rails-0449d8b6bc02f4c0a416a7c40550e3b8b988d113.tar.gz rails-0449d8b6bc02f4c0a416a7c40550e3b8b988d113.tar.bz2 rails-0449d8b6bc02f4c0a416a7c40550e3b8b988d113.zip |
Merge pull request #29894 from eugeneius/check_schema_file_dup_string
Avoid modifying frozen string in check_schema_file
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/rake/dbs_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/application/rake/dbs_test.rb b/railties/test/application/rake/dbs_test.rb index c63f23fa0a..9e612f1526 100644 --- a/railties/test/application/rake/dbs_test.rb +++ b/railties/test/application/rake/dbs_test.rb @@ -259,6 +259,13 @@ module ApplicationTests end end + test "db:schema:load fails if schema.rb doesn't exist yet" do + Dir.chdir(app_path) do + stderr_output = capture(:stderr) { `bin/rails db:schema:load` } + assert_match /Run `rails db:migrate` to create it/, stderr_output + end + end + def db_test_load_structure Dir.chdir(app_path) do `bin/rails generate model book title:string; |