From ea180939fd751cf82d44ac4d6027307ad5c4978a Mon Sep 17 00:00:00 2001 From: Wojciech Piekutowski Date: Sun, 20 Feb 2011 15:40:54 +0100 Subject: [PATCH] Add parenthesis where Ruby thinks they're a good idea --- test/bson/bson_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/bson/bson_test.rb b/test/bson/bson_test.rb index e04871c..0359f0f 100644 --- a/test/bson/bson_test.rb +++ b/test/bson/bson_test.rb @@ -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