diff options
author | Matthew Draper <matthew@trebex.net> | 2017-09-05 16:32:05 +0930 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-05 16:32:05 +0930 |
commit | c97346ecf257bf4c13c67953483705c09c9e0702 (patch) | |
tree | 6e089b8a6ccf52e4bd26ce810df3f3b15532cd5b /railties/test/application/rake/dev_test.rb | |
parent | 6b509dd18ca2a132342e9b850c00afc9b2a024b0 (diff) | |
parent | 802ce8a2392d3f749e665d4f9e54790cf613aaf9 (diff) | |
download | rails-c97346ecf257bf4c13c67953483705c09c9e0702.tar.gz rails-c97346ecf257bf4c13c67953483705c09c9e0702.tar.bz2 rails-c97346ecf257bf4c13c67953483705c09c9e0702.zip |
Merge pull request #30520 from rails/railties-rails-command
Run in-app rails commands via fork+load where possible
Diffstat (limited to 'railties/test/application/rake/dev_test.rb')
-rw-r--r-- | railties/test/application/rake/dev_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/test/application/rake/dev_test.rb b/railties/test/application/rake/dev_test.rb index b25593ee1c..66e1ac9d99 100644 --- a/railties/test/application/rake/dev_test.rb +++ b/railties/test/application/rake/dev_test.rb @@ -17,7 +17,7 @@ module ApplicationTests test "dev:cache creates file and outputs message" do Dir.chdir(app_path) do - output = `rails dev:cache` + output = rails("dev:cache") assert File.exist?("tmp/caching-dev.txt") assert_match(/Development mode is now being cached/, output) end @@ -25,8 +25,8 @@ module ApplicationTests test "dev:cache deletes file and outputs message" do Dir.chdir(app_path) do - `rails dev:cache` # Create caching file. - output = `rails dev:cache` # Delete caching file. + rails "dev:cache" # Create caching file. + output = rails("dev:cache") # Delete caching file. assert_not File.exist?("tmp/caching-dev.txt") assert_match(/Development mode is no longer being cached/, output) end @@ -34,12 +34,12 @@ module ApplicationTests test "dev:cache touches tmp/restart.txt" do Dir.chdir(app_path) do - `rails dev:cache` + rails "dev:cache" assert File.exist?("tmp/restart.txt") prev_mtime = File.mtime("tmp/restart.txt") sleep(1) - `rails dev:cache` + rails "dev:cache" curr_mtime = File.mtime("tmp/restart.txt") assert_not_equal prev_mtime, curr_mtime end |