Silence deprecation warnings from BSON tests

This commit is contained in:
Bernerd Schaefer 2011-07-08 13:54:01 +02:00
parent d0ba797fd9
commit 7f906b44b4
2 changed files with 13 additions and 9 deletions

View File

@ -436,8 +436,10 @@ class BSONTest < Test::Unit::TestCase
0x00, 0x00, 0x14, 0x00,
0x00, 0x00, 0x00])
assert_equal 4, result["test"][0]
assert_equal 20, result["test"][1]
silently do
assert_equal 4, result["test"][0]
assert_equal 20, result["test"][1]
end
end
end

View File

@ -10,15 +10,17 @@ class TiumestampTest < Test::Unit::TestCase
end
def test_implements_array_for_backward_compatibility
ts = Timestamp.new(5000, 200)
assert_equal 200, ts[0]
assert_equal 5000, ts[1]
silently do
ts = Timestamp.new(5000, 200)
assert_equal 200, ts[0]
assert_equal 5000, ts[1]
array = ts.map {|t| t }
assert_equal 2, array.length
array = ts.map {|t| t }
assert_equal 2, array.length
assert_equal 200, array[0]
assert_equal 5000, array[1]
assert_equal 200, array[0]
assert_equal 5000, array[1]
end
end
end