From 57d95c9ab3a8a15d348cfc55a20a05d50e773189 Mon Sep 17 00:00:00 2001 From: Wojciech Piekutowski Date: Sun, 20 Feb 2011 15:37:31 +0100 Subject: [PATCH] Don't require 'complex' and 'rational' libs in Ruby 1.9 - they're in core already --- test/bson/bson_test.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/bson/bson_test.rb b/test/bson/bson_test.rb index bf652d7..869f638 100644 --- a/test/bson/bson_test.rb +++ b/test/bson/bson_test.rb @@ -1,8 +1,11 @@ # encoding:utf-8 require './test/test_helper' -require 'complex' + +if RUBY_VERSION < '1.9' + require 'complex' + require 'rational' +end require 'bigdecimal' -require 'rational' begin require 'active_support/core_ext'