Add parenthesis where Ruby thinks they're a good idea
This commit is contained in:
parent
08d99c08bb
commit
ea180939fd
|
@ -280,7 +280,7 @@ class BSONTest < Test::Unit::TestCase
|
||||||
ensure
|
ensure
|
||||||
if !invalid_date.is_a? Time
|
if !invalid_date.is_a? Time
|
||||||
assert_equal InvalidDocument, e.class
|
assert_equal InvalidDocument, e.class
|
||||||
assert_match /UTC Time/, e.message
|
assert_match(/UTC Time/, e.message)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -442,7 +442,7 @@ class BSONTest < Test::Unit::TestCase
|
||||||
rescue => e
|
rescue => e
|
||||||
ensure
|
ensure
|
||||||
assert_equal InvalidDocument, e.class
|
assert_equal InvalidDocument, e.class
|
||||||
assert_match /Cannot serialize/, e.message
|
assert_match(/Cannot serialize/, e.message)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue