aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/loading_test.rb
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-10-10 07:13:16 +1030
committerGitHub <noreply@github.com>2017-10-10 07:13:16 +1030
commitac1ee519fa513f1c2188180e8830938c71edb48c (patch)
tree6ee41847b093222e8ba99f41574287dc27beec66 /railties/test/application/loading_test.rb
parent1b36e2cc244d34f4f232ef5abecdf12731f5ccfd (diff)
parent2329207bec7642bc4b95c82b2bff997d5242b6eb (diff)
downloadrails-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.rb4
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