diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-04 15:09:32 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-04 15:09:32 +0000 |
commit | 401b64c4e840bc8887219e9e445a64b3d5943656 (patch) | |
tree | 989b93914e9a8ee57ef3ce0bb3d2e2083470fc49 /spec/ruby/shared | |
parent | 8a15857a7f283101a3923b76c71a1f05bfe58512 (diff) | |
download | ruby-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/shared')
63 files changed, 68 insertions, 68 deletions
diff --git a/spec/ruby/shared/basicobject/method_missing.rb b/spec/ruby/shared/basicobject/method_missing.rb index 97ece14c03..e331d7262f 100644 --- a/spec/ruby/shared/basicobject/method_missing.rb +++ b/spec/ruby/shared/basicobject/method_missing.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../../../fixtures/basicobject/method_missing', __FILE__) +require_relative '../../spec_helper' +require_relative '../../fixtures/basicobject/method_missing' describe :method_missing_defined_module, shared: true do describe "for a Module with #method_missing defined" do diff --git a/spec/ruby/shared/complex/Complex.rb b/spec/ruby/shared/complex/Complex.rb index 0bed5c1a36..201e09e6ce 100644 --- a/spec/ruby/shared/complex/Complex.rb +++ b/spec/ruby/shared/complex/Complex.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :kernel_Complex, shared: true do describe "when passed [Complex, Complex]" do diff --git a/spec/ruby/shared/complex/abs.rb b/spec/ruby/shared/complex/abs.rb index 1f8d861f65..2b51c416c2 100644 --- a/spec/ruby/shared/complex/abs.rb +++ b/spec/ruby/shared/complex/abs.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :complex_abs, shared: true do it "returns the modulus: |a + bi| = sqrt((a ^ 2) + (b ^ 2))" do diff --git a/spec/ruby/shared/complex/abs2.rb b/spec/ruby/shared/complex/abs2.rb index f899a41a3e..a39530d4e2 100644 --- a/spec/ruby/shared/complex/abs2.rb +++ b/spec/ruby/shared/complex/abs2.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :complex_abs2, shared: true do it "returns the sum of the squares of the real and imaginary parts" do diff --git a/spec/ruby/shared/complex/coerce.rb b/spec/ruby/shared/complex/coerce.rb index b8a230dfb5..2bb08cf5a2 100644 --- a/spec/ruby/shared/complex/coerce.rb +++ b/spec/ruby/shared/complex/coerce.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :complex_coerce, shared: true do before :each do diff --git a/spec/ruby/shared/complex/constants.rb b/spec/ruby/shared/complex/constants.rb index e8bb5fc907..a181fd9e30 100644 --- a/spec/ruby/shared/complex/constants.rb +++ b/spec/ruby/shared/complex/constants.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :complex_I, shared: true do it "is Complex(0, 1)" do diff --git a/spec/ruby/shared/complex/denominator.rb b/spec/ruby/shared/complex/denominator.rb index 6084cbf672..aee309cb11 100644 --- a/spec/ruby/shared/complex/denominator.rb +++ b/spec/ruby/shared/complex/denominator.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :complex_denominator, shared: true do it "returns the least common multiple denominator of the real and imaginary parts" do diff --git a/spec/ruby/shared/complex/divide.rb b/spec/ruby/shared/complex/divide.rb index 0bd88f197e..90143c6ef0 100644 --- a/spec/ruby/shared/complex/divide.rb +++ b/spec/ruby/shared/complex/divide.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :complex_divide, shared: true do describe "with Complex" do diff --git a/spec/ruby/shared/complex/equal_value.rb b/spec/ruby/shared/complex/equal_value.rb index d944698878..9f341d956f 100644 --- a/spec/ruby/shared/complex/equal_value.rb +++ b/spec/ruby/shared/complex/equal_value.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :complex_equal_value, shared: true do describe "with Complex" do diff --git a/spec/ruby/shared/complex/exponent.rb b/spec/ruby/shared/complex/exponent.rb index 8261db872a..650bb6d0f9 100644 --- a/spec/ruby/shared/complex/exponent.rb +++ b/spec/ruby/shared/complex/exponent.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :complex_exponent, shared: true do describe "with Fixnum 0" do diff --git a/spec/ruby/shared/complex/float/arg.rb b/spec/ruby/shared/complex/float/arg.rb index ca29796610..a18d3b3e02 100644 --- a/spec/ruby/shared/complex/float/arg.rb +++ b/spec/ruby/shared/complex/float/arg.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' describe :float_arg, shared: true do it "returns NaN if NaN" do diff --git a/spec/ruby/shared/complex/image.rb b/spec/ruby/shared/complex/image.rb index 5d45210b45..f214b102f9 100644 --- a/spec/ruby/shared/complex/image.rb +++ b/spec/ruby/shared/complex/image.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :complex_image, shared: true do it "returns the imaginary part of self" do diff --git a/spec/ruby/shared/complex/minus.rb b/spec/ruby/shared/complex/minus.rb index c28d08ad2e..af6c368581 100644 --- a/spec/ruby/shared/complex/minus.rb +++ b/spec/ruby/shared/complex/minus.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :complex_minus, shared: true do describe "with Complex" do diff --git a/spec/ruby/shared/complex/multiply.rb b/spec/ruby/shared/complex/multiply.rb index 4d94ef2ce3..0b711c2c80 100644 --- a/spec/ruby/shared/complex/multiply.rb +++ b/spec/ruby/shared/complex/multiply.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :complex_multiply, shared: true do describe "with Complex" do diff --git a/spec/ruby/shared/complex/numerator.rb b/spec/ruby/shared/complex/numerator.rb index b8384e4a93..5113d2ac8b 100644 --- a/spec/ruby/shared/complex/numerator.rb +++ b/spec/ruby/shared/complex/numerator.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :complex_numerator, shared: true do it "returns self's numerator" do diff --git a/spec/ruby/shared/complex/numeric/arg.rb b/spec/ruby/shared/complex/numeric/arg.rb index b7eb1f2e2d..c8e7ad8333 100644 --- a/spec/ruby/shared/complex/numeric/arg.rb +++ b/spec/ruby/shared/complex/numeric/arg.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' describe :numeric_arg, shared: true do before :each do diff --git a/spec/ruby/shared/complex/numeric/conj.rb b/spec/ruby/shared/complex/numeric/conj.rb index 50cb060442..6d5197ecab 100644 --- a/spec/ruby/shared/complex/numeric/conj.rb +++ b/spec/ruby/shared/complex/numeric/conj.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' describe :numeric_conj, shared: true do before :each do diff --git a/spec/ruby/shared/complex/numeric/imag.rb b/spec/ruby/shared/complex/numeric/imag.rb index caf54e2cf9..11daf0af55 100644 --- a/spec/ruby/shared/complex/numeric/imag.rb +++ b/spec/ruby/shared/complex/numeric/imag.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' describe :numeric_imag, shared: true do before :each do diff --git a/spec/ruby/shared/complex/numeric/polar.rb b/spec/ruby/shared/complex/numeric/polar.rb index 952b65c1b6..74586c52ad 100644 --- a/spec/ruby/shared/complex/numeric/polar.rb +++ b/spec/ruby/shared/complex/numeric/polar.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' describe :numeric_polar, shared: true do before :each do diff --git a/spec/ruby/shared/complex/numeric/real.rb b/spec/ruby/shared/complex/numeric/real.rb index 0dcf2e8381..d00e3b41cf 100644 --- a/spec/ruby/shared/complex/numeric/real.rb +++ b/spec/ruby/shared/complex/numeric/real.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' describe :numeric_real, shared: true do before :each do diff --git a/spec/ruby/shared/complex/plus.rb b/spec/ruby/shared/complex/plus.rb index 47e362d886..d258720e61 100644 --- a/spec/ruby/shared/complex/plus.rb +++ b/spec/ruby/shared/complex/plus.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :complex_plus, shared: true do describe "with Complex" do diff --git a/spec/ruby/shared/complex/polar.rb b/spec/ruby/shared/complex/polar.rb index acc063d89f..9703cd3ce7 100644 --- a/spec/ruby/shared/complex/polar.rb +++ b/spec/ruby/shared/complex/polar.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :complex_polar_class, shared: true do it "returns a complex number in terms of radius and angle" do diff --git a/spec/ruby/shared/complex/rect.rb b/spec/ruby/shared/complex/rect.rb index 8a59d873eb..cb4bd75b4a 100644 --- a/spec/ruby/shared/complex/rect.rb +++ b/spec/ruby/shared/complex/rect.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :complex_rect, shared: true do before :each do diff --git a/spec/ruby/shared/complex/to_s.rb b/spec/ruby/shared/complex/to_s.rb index 03f4f98b84..6cc20bdafe 100644 --- a/spec/ruby/shared/complex/to_s.rb +++ b/spec/ruby/shared/complex/to_s.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :complex_to_s, shared: true do describe "when self's real component is 0" do diff --git a/spec/ruby/shared/enumerator/enum_cons.rb b/spec/ruby/shared/enumerator/enum_cons.rb index 59eed949d8..fec0f4766e 100644 --- a/spec/ruby/shared/enumerator/enum_cons.rb +++ b/spec/ruby/shared/enumerator/enum_cons.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../../../fixtures/enumerator/classes', __FILE__) +require_relative '../../spec_helper' +require_relative '../../fixtures/enumerator/classes' describe :enum_cons, shared: true do it "returns an enumerator of the receiver with iteration of each_cons for each array of n concecutive elements" do diff --git a/spec/ruby/shared/enumerator/new.rb b/spec/ruby/shared/enumerator/new.rb index 23ace99816..2eb39e0abd 100644 --- a/spec/ruby/shared/enumerator/new.rb +++ b/spec/ruby/shared/enumerator/new.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :enum_new, shared: true do it "creates a new custom enumerator with the given object, iterator and arguments" do diff --git a/spec/ruby/shared/enumerator/next.rb b/spec/ruby/shared/enumerator/next.rb index d8ae6d9673..dd9a2a0f81 100644 --- a/spec/ruby/shared/enumerator/next.rb +++ b/spec/ruby/shared/enumerator/next.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :enum_next, shared: true do diff --git a/spec/ruby/shared/enumerator/rewind.rb b/spec/ruby/shared/enumerator/rewind.rb index 4d4139204c..a3c14ec496 100644 --- a/spec/ruby/shared/enumerator/rewind.rb +++ b/spec/ruby/shared/enumerator/rewind.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :enum_rewind, shared: true do diff --git a/spec/ruby/shared/enumerator/with_index.rb b/spec/ruby/shared/enumerator/with_index.rb index 37048a7b52..4f459bd9a8 100644 --- a/spec/ruby/shared/enumerator/with_index.rb +++ b/spec/ruby/shared/enumerator/with_index.rb @@ -1,8 +1,8 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :enum_with_index, shared: true do - require File.expand_path('../../../fixtures/enumerator/classes', __FILE__) + require_relative '../../fixtures/enumerator/classes' before :each do @enum = [1, 2, 3, 4].to_enum diff --git a/spec/ruby/shared/enumerator/with_object.rb b/spec/ruby/shared/enumerator/with_object.rb index 1830736713..c2e3a79366 100644 --- a/spec/ruby/shared/enumerator/with_object.rb +++ b/spec/ruby/shared/enumerator/with_object.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :enum_with_object, shared: true do before :each do diff --git a/spec/ruby/shared/file/world_readable.rb b/spec/ruby/shared/file/world_readable.rb index 0fddf98b73..0fd5a28397 100644 --- a/spec/ruby/shared/file/world_readable.rb +++ b/spec/ruby/shared/file/world_readable.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :file_world_readable, shared: true do diff --git a/spec/ruby/shared/file/world_writable.rb b/spec/ruby/shared/file/world_writable.rb index 43ac23a997..da8af0bc2a 100644 --- a/spec/ruby/shared/file/world_writable.rb +++ b/spec/ruby/shared/file/world_writable.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :file_world_writable, shared: true do diff --git a/spec/ruby/shared/rational/Rational.rb b/spec/ruby/shared/rational/Rational.rb index 0165fa769a..68f0150186 100644 --- a/spec/ruby/shared/rational/Rational.rb +++ b/spec/ruby/shared/rational/Rational.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../../../fixtures/rational', __FILE__) +require_relative '../../spec_helper' +require_relative '../../fixtures/rational' describe :kernel_Rational, shared: true do describe "passed Integer" do diff --git a/spec/ruby/shared/rational/abs.rb b/spec/ruby/shared/rational/abs.rb index aa1bdc4363..8beb20da7e 100644 --- a/spec/ruby/shared/rational/abs.rb +++ b/spec/ruby/shared/rational/abs.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_abs, shared: true do it "returns self's absolute value" do diff --git a/spec/ruby/shared/rational/arithmetic_exception_in_coerce.rb b/spec/ruby/shared/rational/arithmetic_exception_in_coerce.rb index 0b09ec5265..9377814732 100644 --- a/spec/ruby/shared/rational/arithmetic_exception_in_coerce.rb +++ b/spec/ruby/shared/rational/arithmetic_exception_in_coerce.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../fixtures/rational', __FILE__) +require_relative '../../fixtures/rational' describe :rational_arithmetic_exception_in_coerce, shared: true do ruby_version_is ""..."2.5" do diff --git a/spec/ruby/shared/rational/ceil.rb b/spec/ruby/shared/rational/ceil.rb index cbb4ed0d08..f1cf60d2be 100644 --- a/spec/ruby/shared/rational/ceil.rb +++ b/spec/ruby/shared/rational/ceil.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_ceil, shared: true do before do diff --git a/spec/ruby/shared/rational/coerce.rb b/spec/ruby/shared/rational/coerce.rb index 8bdd19aa2a..0d6c440993 100644 --- a/spec/ruby/shared/rational/coerce.rb +++ b/spec/ruby/shared/rational/coerce.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_coerce, shared: true do it "returns the passed argument, self as Float, when given a Float" do diff --git a/spec/ruby/shared/rational/comparison.rb b/spec/ruby/shared/rational/comparison.rb index ba2d0e9f20..0c8b3d0ac1 100644 --- a/spec/ruby/shared/rational/comparison.rb +++ b/spec/ruby/shared/rational/comparison.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../../../fixtures/rational', __FILE__) +require_relative '../../spec_helper' +require_relative '../../fixtures/rational' describe :rational_cmp_rat, shared: true do it "returns 1 when self is greater than the passed argument" do diff --git a/spec/ruby/shared/rational/denominator.rb b/spec/ruby/shared/rational/denominator.rb index 74e464465d..10d46aacb3 100644 --- a/spec/ruby/shared/rational/denominator.rb +++ b/spec/ruby/shared/rational/denominator.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_denominator, shared: true do it "returns the denominator" do diff --git a/spec/ruby/shared/rational/div.rb b/spec/ruby/shared/rational/div.rb index 23c11f5d12..2bf9b80eb5 100644 --- a/spec/ruby/shared/rational/div.rb +++ b/spec/ruby/shared/rational/div.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_div_rat, shared: true do it "performs integer division and returns the result" do diff --git a/spec/ruby/shared/rational/divide.rb b/spec/ruby/shared/rational/divide.rb index 8c5bf666e6..86d30c39d8 100644 --- a/spec/ruby/shared/rational/divide.rb +++ b/spec/ruby/shared/rational/divide.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_divide_rat, shared: true do it "returns self divided by other as a Rational" do diff --git a/spec/ruby/shared/rational/divmod.rb b/spec/ruby/shared/rational/divmod.rb index 607ae9d693..9433674007 100644 --- a/spec/ruby/shared/rational/divmod.rb +++ b/spec/ruby/shared/rational/divmod.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_divmod_rat, shared: true do it "returns the quotient as Integer and the remainder as Rational" do diff --git a/spec/ruby/shared/rational/equal_value.rb b/spec/ruby/shared/rational/equal_value.rb index be4d5af598..b2e7e09415 100644 --- a/spec/ruby/shared/rational/equal_value.rb +++ b/spec/ruby/shared/rational/equal_value.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_equal_value_rat, shared: true do it "returns true if self has the same numerator and denominator as the passed argument" do diff --git a/spec/ruby/shared/rational/exponent.rb b/spec/ruby/shared/rational/exponent.rb index 7e7c5be7c1..d361f345d5 100644 --- a/spec/ruby/shared/rational/exponent.rb +++ b/spec/ruby/shared/rational/exponent.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_exponent, shared: true do describe "when passed Rational" do diff --git a/spec/ruby/shared/rational/fdiv.rb b/spec/ruby/shared/rational/fdiv.rb index 22ca4b4ddc..6911ade8ac 100644 --- a/spec/ruby/shared/rational/fdiv.rb +++ b/spec/ruby/shared/rational/fdiv.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_fdiv, shared: true do it "needs to be reviewed for spec completeness" diff --git a/spec/ruby/shared/rational/floor.rb b/spec/ruby/shared/rational/floor.rb index 5106e0b4d9..ddf7fdbd17 100644 --- a/spec/ruby/shared/rational/floor.rb +++ b/spec/ruby/shared/rational/floor.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_floor, shared: true do before do diff --git a/spec/ruby/shared/rational/hash.rb b/spec/ruby/shared/rational/hash.rb index a83ce49afb..50f21cec20 100644 --- a/spec/ruby/shared/rational/hash.rb +++ b/spec/ruby/shared/rational/hash.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_hash, shared: true do # BUG: Rational(2, 3).hash == Rational(3, 2).hash diff --git a/spec/ruby/shared/rational/inspect.rb b/spec/ruby/shared/rational/inspect.rb index a641db8eb8..a7fd42ccac 100644 --- a/spec/ruby/shared/rational/inspect.rb +++ b/spec/ruby/shared/rational/inspect.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_inspect, shared: true do conflicts_with :Prime do diff --git a/spec/ruby/shared/rational/marshal_dump.rb b/spec/ruby/shared/rational/marshal_dump.rb index 673c6c8327..09782b45a5 100644 --- a/spec/ruby/shared/rational/marshal_dump.rb +++ b/spec/ruby/shared/rational/marshal_dump.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_marshal_dump, shared: true do it "needs to be reviewed for spec completeness" diff --git a/spec/ruby/shared/rational/marshal_load.rb b/spec/ruby/shared/rational/marshal_load.rb index 7cf32ad1db..20bdd6fdf4 100644 --- a/spec/ruby/shared/rational/marshal_load.rb +++ b/spec/ruby/shared/rational/marshal_load.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_marshal_load, shared: true do it "needs to be reviewed for spec completeness" diff --git a/spec/ruby/shared/rational/minus.rb b/spec/ruby/shared/rational/minus.rb index e23430111e..0a0946fdb9 100644 --- a/spec/ruby/shared/rational/minus.rb +++ b/spec/ruby/shared/rational/minus.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_minus_rat, shared: true do it "returns the result of subtracting other from self as a Rational" do diff --git a/spec/ruby/shared/rational/modulo.rb b/spec/ruby/shared/rational/modulo.rb index ca69650f20..39abaed5fe 100644 --- a/spec/ruby/shared/rational/modulo.rb +++ b/spec/ruby/shared/rational/modulo.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_modulo, shared: true do it "returns the remainder when this value is divided by other" do diff --git a/spec/ruby/shared/rational/multiply.rb b/spec/ruby/shared/rational/multiply.rb index 05a9cfc5c8..9c861cf79d 100644 --- a/spec/ruby/shared/rational/multiply.rb +++ b/spec/ruby/shared/rational/multiply.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_multiply_rat, shared: true do it "returns self divided by other as a Rational" do diff --git a/spec/ruby/shared/rational/numerator.rb b/spec/ruby/shared/rational/numerator.rb index e4868ef43c..50d768168c 100644 --- a/spec/ruby/shared/rational/numerator.rb +++ b/spec/ruby/shared/rational/numerator.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_numerator, shared: true do it "returns the numerator" do diff --git a/spec/ruby/shared/rational/plus.rb b/spec/ruby/shared/rational/plus.rb index e37c757c13..b126360ee4 100644 --- a/spec/ruby/shared/rational/plus.rb +++ b/spec/ruby/shared/rational/plus.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_plus_rat, shared: true do it "returns the result of subtracting other from self as a Rational" do diff --git a/spec/ruby/shared/rational/quo.rb b/spec/ruby/shared/rational/quo.rb index 61bd3fad9d..53b32fed2f 100644 --- a/spec/ruby/shared/rational/quo.rb +++ b/spec/ruby/shared/rational/quo.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_quo, shared: true do it "needs to be reviewed for spec completeness" diff --git a/spec/ruby/shared/rational/remainder.rb b/spec/ruby/shared/rational/remainder.rb index 64aeb55e6c..dd907608db 100644 --- a/spec/ruby/shared/rational/remainder.rb +++ b/spec/ruby/shared/rational/remainder.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_remainder, shared: true do it "needs to be reviewed for spec completeness" diff --git a/spec/ruby/shared/rational/round.rb b/spec/ruby/shared/rational/round.rb index c7a4cc6d07..a3f92413e7 100644 --- a/spec/ruby/shared/rational/round.rb +++ b/spec/ruby/shared/rational/round.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_round, shared: true do before do diff --git a/spec/ruby/shared/rational/to_f.rb b/spec/ruby/shared/rational/to_f.rb index 2c9afdddda..56e0b61d68 100644 --- a/spec/ruby/shared/rational/to_f.rb +++ b/spec/ruby/shared/rational/to_f.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_to_f, shared: true do it "returns self converted to a Float" do diff --git a/spec/ruby/shared/rational/to_i.rb b/spec/ruby/shared/rational/to_i.rb index b0db78b3a8..9be1183aa4 100644 --- a/spec/ruby/shared/rational/to_i.rb +++ b/spec/ruby/shared/rational/to_i.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_to_i, shared: true do it "converts self to an Integer by truncation" do diff --git a/spec/ruby/shared/rational/to_r.rb b/spec/ruby/shared/rational/to_r.rb index 646167614a..9ae7571ffe 100644 --- a/spec/ruby/shared/rational/to_r.rb +++ b/spec/ruby/shared/rational/to_r.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_to_r, shared: true do conflicts_with :Prime do diff --git a/spec/ruby/shared/rational/to_s.rb b/spec/ruby/shared/rational/to_s.rb index 429a021908..b16594f10c 100644 --- a/spec/ruby/shared/rational/to_s.rb +++ b/spec/ruby/shared/rational/to_s.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_to_s, shared: true do it "returns a string representation of self" do diff --git a/spec/ruby/shared/rational/truncate.rb b/spec/ruby/shared/rational/truncate.rb index 993c654c45..761dd3113a 100644 --- a/spec/ruby/shared/rational/truncate.rb +++ b/spec/ruby/shared/rational/truncate.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe :rational_truncate, shared: true do before do |