aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-04-03 16:17:45 -0700
committerXavier Noria <fxn@hashref.com>2012-04-03 16:18:56 -0700
commite25eeed5b873f05f9614ecf6720c0eb636d52b63 (patch)
treeb6624df278ddc4fb5bccb6fe1c4e4497eb7b852b /activesupport/test
parenta49944844fad2edf10ba833937c05f9d9c61d132 (diff)
downloadrails-e25eeed5b873f05f9614ecf6720c0eb636d52b63.tar.gz
rails-e25eeed5b873f05f9614ecf6720c0eb636d52b63.tar.bz2
rails-e25eeed5b873f05f9614ecf6720c0eb636d52b63.zip
the file update checker now also detects removed files
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/file_update_checker_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/file_update_checker_test.rb b/activesupport/test/file_update_checker_test.rb
index 066db7c0f9..8adff5de8d 100644
--- a/activesupport/test/file_update_checker_test.rb
+++ b/activesupport/test/file_update_checker_test.rb
@@ -44,8 +44,8 @@ class FileUpdateCheckerWithEnumerableTest < ActiveSupport::TestCase
i = 0
checker = ActiveSupport::FileUpdateChecker.new(FILES){ i += 1 }
FileUtils.rm(FILES)
- assert !checker.execute_if_updated
- assert_equal 0, i
+ assert checker.execute_if_updated
+ assert_equal 1, i
end
def test_should_cache_updated_result_until_execute