just < 1.9 is fine and 1.9.1 is not supported

This commit is contained in:
Santiago Pastorino 2011-02-03 19:27:33 -02:00
parent c0b4db0c28
commit 092a4e296d
1 changed files with 3 additions and 3 deletions

View File

@ -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