Add parenthesis where Ruby thinks they're a good idea

This commit is contained in:
Wojciech Piekutowski 2011-02-20 15:40:54 +01:00
parent 08d99c08bb
commit ea180939fd
1 changed files with 2 additions and 2 deletions

View File

@ -280,7 +280,7 @@ class BSONTest < Test::Unit::TestCase
ensure
if !invalid_date.is_a? Time
assert_equal InvalidDocument, e.class
assert_match /UTC Time/, e.message
assert_match(/UTC Time/, e.message)
end
end
end
@ -442,7 +442,7 @@ class BSONTest < Test::Unit::TestCase
rescue => e
ensure
assert_equal InvalidDocument, e.class
assert_match /Cannot serialize/, e.message
assert_match(/Cannot serialize/, e.message)
end
end
end