aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/library/mathn
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-04 15:09:32 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-04 15:09:32 +0000
commit401b64c4e840bc8887219e9e445a64b3d5943656 (patch)
tree989b93914e9a8ee57ef3ce0bb3d2e2083470fc49 /spec/ruby/library/mathn
parent8a15857a7f283101a3923b76c71a1f05bfe58512 (diff)
downloadruby-401b64c4e840bc8887219e9e445a64b3d5943656.tar.gz
Update to ruby/spec@c1b568b
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/library/mathn')
-rw-r--r--spec/ruby/library/mathn/bignum/exponent_spec.rb2
-rw-r--r--spec/ruby/library/mathn/complex/Complex_spec.rb2
-rw-r--r--spec/ruby/library/mathn/fixnum/exponent_spec.rb2
-rw-r--r--spec/ruby/library/mathn/float/exponent_spec.rb2
-rw-r--r--spec/ruby/library/mathn/integer/from_prime_division_spec.rb2
-rw-r--r--spec/ruby/library/mathn/integer/prime_division_spec.rb2
-rw-r--r--spec/ruby/library/mathn/math/rsqrt_spec.rb4
-rw-r--r--spec/ruby/library/mathn/math/shared/rsqrt.rb2
-rw-r--r--spec/ruby/library/mathn/math/shared/sqrt.rb2
-rw-r--r--spec/ruby/library/mathn/math/sqrt_spec.rb4
-rw-r--r--spec/ruby/library/mathn/mathn_spec.rb2
-rw-r--r--spec/ruby/library/mathn/rational/Rational_spec.rb2
-rw-r--r--spec/ruby/library/mathn/rational/inspect_spec.rb2
13 files changed, 15 insertions, 15 deletions
diff --git a/spec/ruby/library/mathn/bignum/exponent_spec.rb b/spec/ruby/library/mathn/bignum/exponent_spec.rb
index 758c2f27fd..ddd19ffdb4 100644
--- a/spec/ruby/library/mathn/bignum/exponent_spec.rb
+++ b/spec/ruby/library/mathn/bignum/exponent_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
ruby_version_is ''...'2.5' do
require 'mathn'
diff --git a/spec/ruby/library/mathn/complex/Complex_spec.rb b/spec/ruby/library/mathn/complex/Complex_spec.rb
index 93bb3f0c60..105902ed5d 100644
--- a/spec/ruby/library/mathn/complex/Complex_spec.rb
+++ b/spec/ruby/library/mathn/complex/Complex_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
ruby_version_is ''...'2.5' do
require 'mathn'
diff --git a/spec/ruby/library/mathn/fixnum/exponent_spec.rb b/spec/ruby/library/mathn/fixnum/exponent_spec.rb
index d72bc5aa00..160bf7f115 100644
--- a/spec/ruby/library/mathn/fixnum/exponent_spec.rb
+++ b/spec/ruby/library/mathn/fixnum/exponent_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
ruby_version_is ''...'2.5' do
require 'mathn'
diff --git a/spec/ruby/library/mathn/float/exponent_spec.rb b/spec/ruby/library/mathn/float/exponent_spec.rb
index 55af43ce5b..312119db00 100644
--- a/spec/ruby/library/mathn/float/exponent_spec.rb
+++ b/spec/ruby/library/mathn/float/exponent_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
ruby_version_is ''...'2.5' do
require 'mathn'
diff --git a/spec/ruby/library/mathn/integer/from_prime_division_spec.rb b/spec/ruby/library/mathn/integer/from_prime_division_spec.rb
index 47aaf47797..df2db6d8c1 100644
--- a/spec/ruby/library/mathn/integer/from_prime_division_spec.rb
+++ b/spec/ruby/library/mathn/integer/from_prime_division_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
ruby_version_is ''...'2.5' do
require 'mathn'
diff --git a/spec/ruby/library/mathn/integer/prime_division_spec.rb b/spec/ruby/library/mathn/integer/prime_division_spec.rb
index 63a5c39733..e2141490f0 100644
--- a/spec/ruby/library/mathn/integer/prime_division_spec.rb
+++ b/spec/ruby/library/mathn/integer/prime_division_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
ruby_version_is ''...'2.5' do
require 'mathn'
diff --git a/spec/ruby/library/mathn/math/rsqrt_spec.rb b/spec/ruby/library/mathn/math/rsqrt_spec.rb
index a49efa6ff9..6cb7595afe 100644
--- a/spec/ruby/library/mathn/math/rsqrt_spec.rb
+++ b/spec/ruby/library/mathn/math/rsqrt_spec.rb
@@ -1,7 +1,7 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
ruby_version_is ''...'2.5' do
- require File.expand_path('../shared/rsqrt', __FILE__)
+ require_relative 'shared/rsqrt'
describe "Math#rsqrt" do
it_behaves_like :mathn_math_rsqrt, :_, IncludesMath.new
diff --git a/spec/ruby/library/mathn/math/shared/rsqrt.rb b/spec/ruby/library/mathn/math/shared/rsqrt.rb
index 68e2f7d02f..0f623a7d4f 100644
--- a/spec/ruby/library/mathn/math/shared/rsqrt.rb
+++ b/spec/ruby/library/mathn/math/shared/rsqrt.rb
@@ -1,5 +1,5 @@
require 'mathn'
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :mathn_math_rsqrt, shared: true do
it "returns the square root for Rational numbers" do
diff --git a/spec/ruby/library/mathn/math/shared/sqrt.rb b/spec/ruby/library/mathn/math/shared/sqrt.rb
index 6aab25fc5d..5e6dae1d4f 100644
--- a/spec/ruby/library/mathn/math/shared/sqrt.rb
+++ b/spec/ruby/library/mathn/math/shared/sqrt.rb
@@ -1,5 +1,5 @@
require 'mathn'
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :mathn_math_sqrt, shared: true do
it "returns the square root for Rational numbers" do
diff --git a/spec/ruby/library/mathn/math/sqrt_spec.rb b/spec/ruby/library/mathn/math/sqrt_spec.rb
index b723360891..49cfe3600e 100644
--- a/spec/ruby/library/mathn/math/sqrt_spec.rb
+++ b/spec/ruby/library/mathn/math/sqrt_spec.rb
@@ -1,7 +1,7 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
ruby_version_is ''...'2.5' do
- require File.expand_path('../shared/sqrt', __FILE__)
+ require_relative 'shared/sqrt'
describe "Math#rsqrt" do
it_behaves_like :mathn_math_sqrt, :_, IncludesMath.new
diff --git a/spec/ruby/library/mathn/mathn_spec.rb b/spec/ruby/library/mathn/mathn_spec.rb
index aedf88ea7b..c9e8c05a8d 100644
--- a/spec/ruby/library/mathn/mathn_spec.rb
+++ b/spec/ruby/library/mathn/mathn_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
describe "mathn" do
ruby_version_is "2.5" do
diff --git a/spec/ruby/library/mathn/rational/Rational_spec.rb b/spec/ruby/library/mathn/rational/Rational_spec.rb
index 71433529c5..9a34c99751 100644
--- a/spec/ruby/library/mathn/rational/Rational_spec.rb
+++ b/spec/ruby/library/mathn/rational/Rational_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
ruby_version_is ''...'2.5' do
require 'mathn'
diff --git a/spec/ruby/library/mathn/rational/inspect_spec.rb b/spec/ruby/library/mathn/rational/inspect_spec.rb
index ce1205faaa..cbf67ec0f3 100644
--- a/spec/ruby/library/mathn/rational/inspect_spec.rb
+++ b/spec/ruby/library/mathn/rational/inspect_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
ruby_version_is ''...'2.5' do
require 'mathn'