diff --git a/test/test_bson.rb b/test/test_bson.rb index d26b408..6ae9a6d 100644 --- a/test/test_bson.rb +++ b/test/test_bson.rb @@ -318,7 +318,7 @@ class BSONTest < Test::Unit::TestCase end def test_invalid_numeric_types - [BigDecimal.new("1.0"), Complex(0, 1), Rational.new!(2, 3)].each do |type| + [BigDecimal.new("1.0"), Complex(0, 1), Rational(2, 3)].each do |type| print type.class doc = {"x" => type} begin