aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/commands
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-12-07 20:36:22 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2015-12-07 20:36:22 +0100
commit2af9c080799c25a0bb4f6f6b8d2685b6c0e47299 (patch)
tree9a913aeedfeb7b49bc3d4c7b09706f9b71fb32e8 /railties/test/commands
parent39794037817703575c35a75f1961b01b83791191 (diff)
downloadrails-2af9c080799c25a0bb4f6f6b8d2685b6c0e47299.tar.gz
rails-2af9c080799c25a0bb4f6f6b8d2685b6c0e47299.tar.bz2
rails-2af9c080799c25a0bb4f6f6b8d2685b6c0e47299.zip
Clarify the need to run command twice.
We had 2 pull requests erronously trying to remove the first command. Add some comments for clarity.
Diffstat (limited to 'railties/test/commands')
-rw-r--r--railties/test/commands/dev_cache_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/commands/dev_cache_test.rb b/railties/test/commands/dev_cache_test.rb
index f3612070c6..1b7a72e7fc 100644
--- a/railties/test/commands/dev_cache_test.rb
+++ b/railties/test/commands/dev_cache_test.rb
@@ -22,8 +22,8 @@ module CommandsTests
test 'dev:cache deletes file and outputs message' do
Dir.chdir(app_path) do
- output = `rails dev:cache`
- output = `rails dev:cache`
+ `rails dev:cache` # Create caching file.
+ output = `rails dev:cache` # Delete caching file.
assert_not File.exist?('tmp/caching-dev.txt')
assert_match(%r{Development mode is no longer being cached}, output)
end