From 401b64c4e840bc8887219e9e445a64b3d5943656 Mon Sep 17 00:00:00 2001 From: eregon Date: Sun, 4 Mar 2018 15:09:32 +0000 Subject: Update to ruby/spec@c1b568b git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/core/comparable/between_spec.rb | 4 ++-- spec/ruby/core/comparable/clamp_spec.rb | 4 ++-- spec/ruby/core/comparable/equal_value_spec.rb | 4 ++-- spec/ruby/core/comparable/gt_spec.rb | 4 ++-- spec/ruby/core/comparable/gte_spec.rb | 4 ++-- spec/ruby/core/comparable/lt_spec.rb | 4 ++-- spec/ruby/core/comparable/lte_spec.rb | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) (limited to 'spec/ruby/core/comparable') diff --git a/spec/ruby/core/comparable/between_spec.rb b/spec/ruby/core/comparable/between_spec.rb index ebeadb7569..fd79bb9b4c 100644 --- a/spec/ruby/core/comparable/between_spec.rb +++ b/spec/ruby/core/comparable/between_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../fixtures/classes', __FILE__) +require_relative '../../spec_helper' +require_relative 'fixtures/classes' describe "Comparable#between?" do it "returns true if self is greater than or equal to the first and less than or equal to the second argument" do diff --git a/spec/ruby/core/comparable/clamp_spec.rb b/spec/ruby/core/comparable/clamp_spec.rb index 75868258b5..eb6a0838b9 100644 --- a/spec/ruby/core/comparable/clamp_spec.rb +++ b/spec/ruby/core/comparable/clamp_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../fixtures/classes', __FILE__) +require_relative '../../spec_helper' +require_relative 'fixtures/classes' ruby_version_is '2.4' do describe 'Comparable#clamp' do diff --git a/spec/ruby/core/comparable/equal_value_spec.rb b/spec/ruby/core/comparable/equal_value_spec.rb index 2bc22771b4..24d9fec2fb 100644 --- a/spec/ruby/core/comparable/equal_value_spec.rb +++ b/spec/ruby/core/comparable/equal_value_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../fixtures/classes', __FILE__) +require_relative '../../spec_helper' +require_relative 'fixtures/classes' describe "Comparable#==" do a = b = nil diff --git a/spec/ruby/core/comparable/gt_spec.rb b/spec/ruby/core/comparable/gt_spec.rb index c4739bcf2a..6dd661bbfa 100644 --- a/spec/ruby/core/comparable/gt_spec.rb +++ b/spec/ruby/core/comparable/gt_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../fixtures/classes', __FILE__) +require_relative '../../spec_helper' +require_relative 'fixtures/classes' describe "Comparable#>" do it "calls #<=> on self with other and returns true if #<=> returns any Integer greater than 0" do diff --git a/spec/ruby/core/comparable/gte_spec.rb b/spec/ruby/core/comparable/gte_spec.rb index c9d8264ee6..cdaeb60843 100644 --- a/spec/ruby/core/comparable/gte_spec.rb +++ b/spec/ruby/core/comparable/gte_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../../../spec_helper', __FILE__) +require_relative 'fixtures/classes' +require_relative '../../spec_helper' describe "Comparable#>=" do it "calls #<=> on self with other and returns true if #<=> returns 0 or any Integer greater than 0" do diff --git a/spec/ruby/core/comparable/lt_spec.rb b/spec/ruby/core/comparable/lt_spec.rb index e9e76360b9..02f77dba50 100644 --- a/spec/ruby/core/comparable/lt_spec.rb +++ b/spec/ruby/core/comparable/lt_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../fixtures/classes', __FILE__) +require_relative '../../spec_helper' +require_relative 'fixtures/classes' describe "Comparable#<" do it "calls #<=> on self with other and returns true if #<=> returns any Integer less than 0" do diff --git a/spec/ruby/core/comparable/lte_spec.rb b/spec/ruby/core/comparable/lte_spec.rb index 96ed38ecd5..baf2c57229 100644 --- a/spec/ruby/core/comparable/lte_spec.rb +++ b/spec/ruby/core/comparable/lte_spec.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../fixtures/classes', __FILE__) +require_relative '../../spec_helper' +require_relative 'fixtures/classes' describe "Comparable#<=" do it "calls #<=> on self with other and returns true if #<=> returns 0 or any Integer less than 0" do -- cgit v1.2.3