diff options
author | Matthew Draper <matthew@trebex.net> | 2017-10-10 07:13:16 +1030 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-10 07:13:16 +1030 |
commit | ac1ee519fa513f1c2188180e8830938c71edb48c (patch) | |
tree | 6ee41847b093222e8ba99f41574287dc27beec66 /railties/test/application/loading_test.rb | |
parent | 1b36e2cc244d34f4f232ef5abecdf12731f5ccfd (diff) | |
parent | 2329207bec7642bc4b95c82b2bff997d5242b6eb (diff) | |
download | rails-ac1ee519fa513f1c2188180e8830938c71edb48c.tar.gz rails-ac1ee519fa513f1c2188180e8830938c71edb48c.tar.bz2 rails-ac1ee519fa513f1c2188180e8830938c71edb48c.zip |
Merge pull request #30595 from bogdanvlviv/use-railties-rails-command
Improve railties' tests
Diffstat (limited to 'railties/test/application/loading_test.rb')
-rw-r--r-- | railties/test/application/loading_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/loading_test.rb b/railties/test/application/loading_test.rb index 11c886e991..de1e240fd3 100644 --- a/railties/test/application/loading_test.rb +++ b/railties/test/application/loading_test.rb @@ -300,7 +300,7 @@ class LoadingTest < ActiveSupport::TestCase end MIGRATION - Dir.chdir(app_path) { `rake db:migrate` } + rails("db:migrate") require "#{rails_root}/config/environment" get "/title" @@ -314,7 +314,7 @@ class LoadingTest < ActiveSupport::TestCase end MIGRATION - Dir.chdir(app_path) { `rake db:migrate` } + rails("db:migrate") get "/body" assert_equal "BODY", last_response.body |