aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@gmail.com>2015-11-24 15:00:21 -0500
committerEileen M. Uchitelle <eileencodes@gmail.com>2015-11-24 15:00:21 -0500
commita7379ce9efb01fb3cd6d9cf6b09b698995377d5a (patch)
tree1d8172baeb3e3ce8762d14cc0d17495819168b7d /activesupport/test
parent58cea7f2dc7426c3f7445adfb8925880ec1b3644 (diff)
parent95d059720b4438ed650aac09e12bce2f7780ec9a (diff)
downloadrails-a7379ce9efb01fb3cd6d9cf6b09b698995377d5a.tar.gz
rails-a7379ce9efb01fb3cd6d9cf6b09b698995377d5a.tar.bz2
rails-a7379ce9efb01fb3cd6d9cf6b09b698995377d5a.zip
Merge pull request #22399 from wjessop/remove_unused_code
Remove unused code
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/multibyte_conformance_test.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/activesupport/test/multibyte_conformance_test.rb b/activesupport/test/multibyte_conformance_test.rb
index 2a885e32bf..d493a48fe4 100644
--- a/activesupport/test/multibyte_conformance_test.rb
+++ b/activesupport/test/multibyte_conformance_test.rb
@@ -104,11 +104,8 @@ class MultibyteConformanceTest < ActiveSupport::TestCase
protected
def each_line_of_norm_tests(&block)
- lines = 0
- max_test_lines = 0 # Don't limit below 38, because that's the header of the testfile
File.open(File.join(CACHE_DIR, UNIDATA_FILE), 'r') do | f |
- until f.eof? || (max_test_lines > 38 and lines > max_test_lines)
- lines += 1
+ until f.eof?
line = f.gets.chomp!
next if (line.empty? || line =~ /^\#/)