minor: test fix
This commit is contained in:
parent
f2bc05f51c
commit
372f578389
@ -204,8 +204,10 @@ class BSONTest < Test::Unit::TestCase
|
|||||||
bson = Mongo::BSON_CODER.serialize(doc)
|
bson = Mongo::BSON_CODER.serialize(doc)
|
||||||
rescue => e
|
rescue => e
|
||||||
ensure
|
ensure
|
||||||
assert_equal InvalidDocument, e.class
|
if !invalid_date.is_a? Time
|
||||||
assert_match /UTC Time/, e.message
|
assert_equal InvalidDocument, e.class
|
||||||
|
assert_match /UTC Time/, e.message
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user