aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-03-16 00:54:39 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-03-16 09:01:48 -0300
commitc045eebd5d35259e65771de159966b7c20690d34 (patch)
tree7bac04c81569b7d6b462892e395bb7c105245750 /activesupport/test
parent2afe12f05ca870437c08dfce8d9e2afb02f8b347 (diff)
downloadrails-c045eebd5d35259e65771de159966b7c20690d34.tar.gz
rails-c045eebd5d35259e65771de159966b7c20690d34.tar.bz2
rails-c045eebd5d35259e65771de159966b7c20690d34.zip
Remove deprecation from AS::Deprecation behavior, some minor cleanups
* Refactor log subscriber, use select! to avoid a new object * Remove deprecation messages related to AS::Deprecation behavior This was added about 2 years ago for Rails 3: https://github.com/rails/rails/commit/d4c7d3fd94e5a885a6366eaeb3b908bb58ffd4db * Remove some not used requires * Refactor delegate to avoid string conversions and if statements inside each block
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 988dfd71eb..066db7c0f9 100644
--- a/activesupport/test/file_update_checker_test.rb
+++ b/activesupport/test/file_update_checker_test.rb
@@ -83,10 +83,10 @@ class FileUpdateCheckerWithEnumerableTest < ActiveSupport::TestCase
def test_should_not_block_if_a_strange_filename_used
FileUtils.mkdir_p("tmp_watcher/valid,yetstrange,path,")
- FileUtils.touch(FILES.map { |file_name| "tmp_watcher/valid,yetstrange,path,/#{file_name}" } )
+ FileUtils.touch(FILES.map { |file_name| "tmp_watcher/valid,yetstrange,path,/#{file_name}" })
test = Thread.new do
- ActiveSupport::FileUpdateChecker.new([],"tmp_watcher/valid,yetstrange,path," => :txt){ i += 1 }
+ ActiveSupport::FileUpdateChecker.new([],"tmp_watcher/valid,yetstrange,path," => :txt) { i += 1 }
Thread.exit
end
test.priority = -1