minor: test fix

This commit is contained in:
Kyle Banker 2010-03-19 16:00:17 -04:00
parent f2bc05f51c
commit 372f578389
1 changed files with 4 additions and 2 deletions

View File

@ -204,8 +204,10 @@ class BSONTest < Test::Unit::TestCase
bson = Mongo::BSON_CODER.serialize(doc)
rescue => e
ensure
assert_equal InvalidDocument, e.class
assert_match /UTC Time/, e.message
if !invalid_date.is_a? Time
assert_equal InvalidDocument, e.class
assert_match /UTC Time/, e.message
end
end
end
end