spec/mpfr/spec_helper.rb in ruby-mpfr-0.0.7 vs spec/mpfr/spec_helper.rb in ruby-mpfr-0.0.8
- old
+ new
@@ -1,13 +1,13 @@
begin
- require 'spec'
+ require 'rspec'
rescue LoadError
require 'rubygems' unless ENV['NO_RUBYGEMS']
gem 'rspec'
- require 'spec'
+ require 'rspec'
end
-$:.unshift(File.dirname(__FILE__) + '/../../lib')
-$:.unshift(File.dirname(__FILE__) + '/../../ext')
-$:.unshift(File.dirname(__FILE__))
-require 'mpfr'
+$:.unshift(File.expand_path(File.dirname(__FILE__)) + '/../../lib')
+$:.unshift(File.expand_path(File.dirname(__FILE__)) + '/../../ext')
+$:.unshift(File.expand_path(File.dirname(__FILE__)))
+require 'mpfr/mpfr'
require "generate_number_modulue"