From d1fa1fc35a2f11cb0349698ba47ca87c78b4002e Mon Sep 17 00:00:00 2001 From: Paul B Date: Tue, 6 May 2014 15:20:29 +0200 Subject: Return a non zero code when db has never been setup on status --- railties/test/application/rake/migrations_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties') 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 -- cgit v1.2.3