test/test_rtnlzr.rb in nio-0.2.4 vs test/test_rtnlzr.rb in nio-0.2.5

- old
+ new

@@ -1,8 +1,8 @@ -require File.dirname(__FILE__) + '/helper.rb' +require File.expand_path(File.join(File.dirname(__FILE__),'helper.rb')) include Nio require 'yaml' require 'flt' require 'flt/float' require 'flt/math' @@ -10,11 +10,15 @@ require 'bigdecimal/math' require 'bigdecimal/math' -module BgMth - extend BigMath +if RUBY_VERSION>="1.9.2" + BgMth = BigMath +else + module BgMth + extend BigMath + end end class TestRtnlzr < Test::Unit::TestCase