diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-02-03 19:27:33 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-02-03 19:27:43 -0200 |
commit | 092a4e296de5b69f06edac2fe0993e2a30e33555 (patch) | |
tree | e9fbe9800f02856ac5626f475550888918eb9e01 /activesupport/test | |
parent | c0b4db0c28465866b656c894c16ce35f4d313a12 (diff) | |
download | rails-092a4e296de5b69f06edac2fe0993e2a30e33555.tar.gz rails-092a4e296de5b69f06edac2fe0993e2a30e33555.tar.bz2 rails-092a4e296de5b69f06edac2fe0993e2a30e33555.zip |
just < 1.9 is fine and 1.9.1 is not supported
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/ordered_hash_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/test/ordered_hash_test.rb b/activesupport/test/ordered_hash_test.rb index 0a7dadf7a8..50168fa78f 100644 --- a/activesupport/test/ordered_hash_test.rb +++ b/activesupport/test/ordered_hash_test.rb @@ -80,7 +80,7 @@ class OrderedHashTest < Test::Unit::TestCase keys = [] assert_equal @ordered_hash, @ordered_hash.each_key { |k| keys << k } assert_equal @keys, keys - expected_class = RUBY_VERSION < '1.9.1' ? Enumerable::Enumerator : Enumerator + expected_class = RUBY_VERSION < '1.9' ? Enumerable::Enumerator : Enumerator assert_kind_of expected_class, @ordered_hash.each_key end @@ -88,7 +88,7 @@ class OrderedHashTest < Test::Unit::TestCase values = [] assert_equal @ordered_hash, @ordered_hash.each_value { |v| values << v } assert_equal @values, values - expected_class = RUBY_VERSION < '1.9.1' ? Enumerable::Enumerator : Enumerator + expected_class = RUBY_VERSION < '1.9' ? Enumerable::Enumerator : Enumerator assert_kind_of expected_class, @ordered_hash.each_value end @@ -96,7 +96,7 @@ class OrderedHashTest < Test::Unit::TestCase values = [] assert_equal @ordered_hash, @ordered_hash.each {|key, value| values << value} assert_equal @values, values - expected_class = RUBY_VERSION < '1.9.1' ? Enumerable::Enumerator : Enumerator + expected_class = RUBY_VERSION < '1.9' ? Enumerable::Enumerator : Enumerator assert_kind_of expected_class, @ordered_hash.each end |