aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorPaul B <paul@bonaud.fr>2014-05-06 15:20:29 +0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-07 18:33:18 -0300
commitd1fa1fc35a2f11cb0349698ba47ca87c78b4002e (patch)
tree4cf6d2f6a8d84978c7ef0286c6d5081cbf69cf26 /railties
parent6b2f37741cf4f55c6237f0d8cde45c9caea4cf12 (diff)
downloadrails-d1fa1fc35a2f11cb0349698ba47ca87c78b4002e.tar.gz
rails-d1fa1fc35a2f11cb0349698ba47ca87c78b4002e.tar.bz2
rails-d1fa1fc35a2f11cb0349698ba47ca87c78b4002e.zip
Return a non zero code when db has never been setup on status
Diffstat (limited to 'railties')
-rw-r--r--railties/test/application/rake/migrations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/application/rake/migrations_test.rb b/railties/test/application/rake/migrations_test.rb
index b7fd5d02c5..a6900a57c4 100644
--- a/railties/test/application/rake/migrations_test.rb
+++ b/railties/test/application/rake/migrations_test.rb
@@ -58,7 +58,7 @@ module ApplicationTests
end
test 'migration status when schema migrations table is not present' do
- output = Dir.chdir(app_path){ `rake db:migrate:status` }
+ output = Dir.chdir(app_path){ `rake db:migrate:status 2>&1` }
assert_equal "Schema migrations table does not exist yet.\n", output
end