summaryrefslogtreecommitdiff
path: root/spec/ruby/library/complex/math/shared
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/complex/math/shared')
-rw-r--r--spec/ruby/library/complex/math/shared/acos.rb2
-rw-r--r--spec/ruby/library/complex/math/shared/acosh.rb2
-rw-r--r--spec/ruby/library/complex/math/shared/asin.rb2
-rw-r--r--spec/ruby/library/complex/math/shared/asinh.rb2
-rw-r--r--spec/ruby/library/complex/math/shared/atan.rb2
-rw-r--r--spec/ruby/library/complex/math/shared/atan2.rb2
-rw-r--r--spec/ruby/library/complex/math/shared/atanh.rb2
-rw-r--r--spec/ruby/library/complex/math/shared/cos.rb2
-rw-r--r--spec/ruby/library/complex/math/shared/cosh.rb2
-rw-r--r--spec/ruby/library/complex/math/shared/exp.rb2
-rw-r--r--spec/ruby/library/complex/math/shared/log.rb2
-rw-r--r--spec/ruby/library/complex/math/shared/log10.rb2
-rw-r--r--spec/ruby/library/complex/math/shared/sin.rb2
-rw-r--r--spec/ruby/library/complex/math/shared/sinh.rb2
-rw-r--r--spec/ruby/library/complex/math/shared/sqrt.rb2
-rw-r--r--spec/ruby/library/complex/math/shared/tan.rb2
-rw-r--r--spec/ruby/library/complex/math/shared/tanh.rb2
17 files changed, 17 insertions, 17 deletions
diff --git a/spec/ruby/library/complex/math/shared/acos.rb b/spec/ruby/library/complex/math/shared/acos.rb
index 7a9e0fe1b2..61be31571f 100644
--- a/spec/ruby/library/complex/math/shared/acos.rb
+++ b/spec/ruby/library/complex/math/shared/acos.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :complex_math_acos, shared: true do
it "returns the arccosine of the passed argument" do
diff --git a/spec/ruby/library/complex/math/shared/acosh.rb b/spec/ruby/library/complex/math/shared/acosh.rb
index b8be750f13..a2cd887f95 100644
--- a/spec/ruby/library/complex/math/shared/acosh.rb
+++ b/spec/ruby/library/complex/math/shared/acosh.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :complex_math_acosh, shared: true do
it "returns the principle value of the inverse hyperbolic cosine of the argument" do
diff --git a/spec/ruby/library/complex/math/shared/asin.rb b/spec/ruby/library/complex/math/shared/asin.rb
index 3b446cbe24..1705745210 100644
--- a/spec/ruby/library/complex/math/shared/asin.rb
+++ b/spec/ruby/library/complex/math/shared/asin.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :complex_math_asin, shared: true do
it "returns the arcsine of the argument" do
diff --git a/spec/ruby/library/complex/math/shared/asinh.rb b/spec/ruby/library/complex/math/shared/asinh.rb
index 4c2f6c8b5d..b4256e7475 100644
--- a/spec/ruby/library/complex/math/shared/asinh.rb
+++ b/spec/ruby/library/complex/math/shared/asinh.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :complex_math_asinh, shared: true do
it "returns the inverse hyperbolic sin of the argument" do
diff --git a/spec/ruby/library/complex/math/shared/atan.rb b/spec/ruby/library/complex/math/shared/atan.rb
index 44fa65e1e9..46c1897407 100644
--- a/spec/ruby/library/complex/math/shared/atan.rb
+++ b/spec/ruby/library/complex/math/shared/atan.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :complex_math_atan, shared: true do
it "returns the arctangent of the argument" do
diff --git a/spec/ruby/library/complex/math/shared/atan2.rb b/spec/ruby/library/complex/math/shared/atan2.rb
index add1dcd6fa..3305d695c5 100644
--- a/spec/ruby/library/complex/math/shared/atan2.rb
+++ b/spec/ruby/library/complex/math/shared/atan2.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :complex_math_atan2, shared: true do
it "returns the arc tangent of the passed arguments" do
diff --git a/spec/ruby/library/complex/math/shared/atanh.rb b/spec/ruby/library/complex/math/shared/atanh.rb
index 4051af081f..ebd4d7c223 100644
--- a/spec/ruby/library/complex/math/shared/atanh.rb
+++ b/spec/ruby/library/complex/math/shared/atanh.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :complex_math_atanh_complex, shared: true do
it "returns the inverse hyperbolic tangent as a Complex number for arguments greater than 1.0" do
diff --git a/spec/ruby/library/complex/math/shared/cos.rb b/spec/ruby/library/complex/math/shared/cos.rb
index ab198e1a3b..ddd8512231 100644
--- a/spec/ruby/library/complex/math/shared/cos.rb
+++ b/spec/ruby/library/complex/math/shared/cos.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :complex_math_cos, shared: true do
it "returns the cosine of the argument expressed in radians" do
diff --git a/spec/ruby/library/complex/math/shared/cosh.rb b/spec/ruby/library/complex/math/shared/cosh.rb
index a5f98e4e83..a56a655cd5 100644
--- a/spec/ruby/library/complex/math/shared/cosh.rb
+++ b/spec/ruby/library/complex/math/shared/cosh.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :complex_math_cosh, shared: true do
it "returns the hyperbolic cosine of the passed argument" do
diff --git a/spec/ruby/library/complex/math/shared/exp.rb b/spec/ruby/library/complex/math/shared/exp.rb
index f4e73dfb4d..91ab5739be 100644
--- a/spec/ruby/library/complex/math/shared/exp.rb
+++ b/spec/ruby/library/complex/math/shared/exp.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :complex_math_exp, shared: true do
it "returns the base-e exponential of the passed argument" do
diff --git a/spec/ruby/library/complex/math/shared/log.rb b/spec/ruby/library/complex/math/shared/log.rb
index 4e5385748a..f3aad0d66a 100644
--- a/spec/ruby/library/complex/math/shared/log.rb
+++ b/spec/ruby/library/complex/math/shared/log.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :complex_math_log, shared: true do
it "returns the natural logarithm of the passed argument" do
diff --git a/spec/ruby/library/complex/math/shared/log10.rb b/spec/ruby/library/complex/math/shared/log10.rb
index 13518f243e..a2cf5344bf 100644
--- a/spec/ruby/library/complex/math/shared/log10.rb
+++ b/spec/ruby/library/complex/math/shared/log10.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :complex_math_log10, shared: true do
it "returns the base-10 logarithm of the passed argument" do
diff --git a/spec/ruby/library/complex/math/shared/sin.rb b/spec/ruby/library/complex/math/shared/sin.rb
index e5b207b456..418ba5d810 100644
--- a/spec/ruby/library/complex/math/shared/sin.rb
+++ b/spec/ruby/library/complex/math/shared/sin.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :complex_math_sin, shared: true do
it "returns the sine of the passed argument expressed in radians" do
diff --git a/spec/ruby/library/complex/math/shared/sinh.rb b/spec/ruby/library/complex/math/shared/sinh.rb
index abbe2c6da0..bd85bd0799 100644
--- a/spec/ruby/library/complex/math/shared/sinh.rb
+++ b/spec/ruby/library/complex/math/shared/sinh.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :complex_math_sinh, shared: true do
it "returns the hyperbolic sin of the argument" do
diff --git a/spec/ruby/library/complex/math/shared/sqrt.rb b/spec/ruby/library/complex/math/shared/sqrt.rb
index 5125710119..b6a289c3f9 100644
--- a/spec/ruby/library/complex/math/shared/sqrt.rb
+++ b/spec/ruby/library/complex/math/shared/sqrt.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :complex_math_sqrt, shared: true do
it "returns the square root for positive numbers" do
diff --git a/spec/ruby/library/complex/math/shared/tan.rb b/spec/ruby/library/complex/math/shared/tan.rb
index 02a1880d27..df7a6ff19b 100644
--- a/spec/ruby/library/complex/math/shared/tan.rb
+++ b/spec/ruby/library/complex/math/shared/tan.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :complex_math_tan, shared: true do
it "returns the tangent of the argument" do
diff --git a/spec/ruby/library/complex/math/shared/tanh.rb b/spec/ruby/library/complex/math/shared/tanh.rb
index a26b1349f6..7bf07f9a3f 100644
--- a/spec/ruby/library/complex/math/shared/tanh.rb
+++ b/spec/ruby/library/complex/math/shared/tanh.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../fixtures/classes', __FILE__)
+require_relative '../fixtures/classes'
describe :complex_math_tanh, shared: true do
it "returns the hyperbolic tangent of the argument" do