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,10 +436,12 @@ class BSONTest < Test::Unit::TestCase
0x00, 0x00, 0x14, 0x00,
0x00, 0x00, 0x00])
silently do
assert_equal 4, result["test"][0]
assert_equal 20, result["test"][1]
end
end
end
def test_timestamp_type
ts = Timestamp.new(5000, 100)

View File

@ -10,6 +10,7 @@ class TiumestampTest < Test::Unit::TestCase
end
def test_implements_array_for_backward_compatibility
silently do
ts = Timestamp.new(5000, 200)
assert_equal 200, ts[0]
assert_equal 5000, ts[1]
@ -20,5 +21,6 @@ class TiumestampTest < Test::Unit::TestCase
assert_equal 200, array[0]
assert_equal 5000, array[1]
end
end
end