diff options
Diffstat (limited to 'spec/ruby/core/unboundmethod')
-rw-r--r-- | spec/ruby/core/unboundmethod/arity_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/core/unboundmethod/bind_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/core/unboundmethod/clone_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/core/unboundmethod/eql_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/core/unboundmethod/equal_value_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/core/unboundmethod/hash_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/core/unboundmethod/inspect_spec.rb | 6 | ||||
-rw-r--r-- | spec/ruby/core/unboundmethod/name_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/core/unboundmethod/owner_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/core/unboundmethod/parameters_spec.rb | 2 | ||||
-rw-r--r-- | spec/ruby/core/unboundmethod/shared/to_s.rb | 4 | ||||
-rw-r--r-- | spec/ruby/core/unboundmethod/source_location_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/core/unboundmethod/super_method_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/core/unboundmethod/to_s_spec.rb | 6 |
14 files changed, 27 insertions, 27 deletions
diff --git a/spec/ruby/core/unboundmethod/arity_spec.rb b/spec/ruby/core/unboundmethod/arity_spec.rb index a804235b70..cd700b9f9b 100644 --- a/spec/ruby/core/unboundmethod/arity_spec.rb +++ b/spec/ruby/core/unboundmethod/arity_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe "UnboundMethod#arity" do SpecEvaluate.desc = "for method definition" diff --git a/spec/ruby/core/unboundmethod/bind_spec.rb b/spec/ruby/core/unboundmethod/bind_spec.rb index 3f7a7bf3ac..328c356906 100644 --- a/spec/ruby/core/unboundmethod/bind_spec.rb +++ b/spec/ruby/core/unboundmethod/bind_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 "UnboundMethod#bind" do before :each do diff --git a/spec/ruby/core/unboundmethod/clone_spec.rb b/spec/ruby/core/unboundmethod/clone_spec.rb index 2f3fd834ad..098ee61476 100644 --- a/spec/ruby/core/unboundmethod/clone_spec.rb +++ b/spec/ruby/core/unboundmethod/clone_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 "UnboundMethod#clone" do it "returns a copy of the UnboundMethod" do diff --git a/spec/ruby/core/unboundmethod/eql_spec.rb b/spec/ruby/core/unboundmethod/eql_spec.rb index 8e91ef375e..cf2c6b5aae 100644 --- a/spec/ruby/core/unboundmethod/eql_spec.rb +++ b/spec/ruby/core/unboundmethod/eql_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe "UnboundMethod#eql?" do it "needs to be reviewed for spec completeness" diff --git a/spec/ruby/core/unboundmethod/equal_value_spec.rb b/spec/ruby/core/unboundmethod/equal_value_spec.rb index de141254c1..6242b04884 100644 --- a/spec/ruby/core/unboundmethod/equal_value_spec.rb +++ b/spec/ruby/core/unboundmethod/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' context "Creating UnboundMethods" do specify "there is no difference between Method#unbind and Module#instance_method" do diff --git a/spec/ruby/core/unboundmethod/hash_spec.rb b/spec/ruby/core/unboundmethod/hash_spec.rb index 6ba6c04834..2ea8c8d8a6 100644 --- a/spec/ruby/core/unboundmethod/hash_spec.rb +++ b/spec/ruby/core/unboundmethod/hash_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 "UnboundMethod#hash" do it "needs to be reviewed for spec completeness" diff --git a/spec/ruby/core/unboundmethod/inspect_spec.rb b/spec/ruby/core/unboundmethod/inspect_spec.rb index a393a1ead3..cecf542fcd 100644 --- a/spec/ruby/core/unboundmethod/inspect_spec.rb +++ b/spec/ruby/core/unboundmethod/inspect_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/to_s', __FILE__) +require_relative '../../spec_helper' +require_relative 'fixtures/classes' +require_relative 'shared/to_s' describe "UnboundMethod#inspect" do it_behaves_like :unboundmethod_to_s, :inspect diff --git a/spec/ruby/core/unboundmethod/name_spec.rb b/spec/ruby/core/unboundmethod/name_spec.rb index c4602d529a..4d0fb34fc8 100644 --- a/spec/ruby/core/unboundmethod/name_spec.rb +++ b/spec/ruby/core/unboundmethod/name_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 "UnboundMethod#name" do it "returns the name of the method" do diff --git a/spec/ruby/core/unboundmethod/owner_spec.rb b/spec/ruby/core/unboundmethod/owner_spec.rb index 165b175147..5f1f4646b3 100644 --- a/spec/ruby/core/unboundmethod/owner_spec.rb +++ b/spec/ruby/core/unboundmethod/owner_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 "UnboundMethod#owner" do it "returns the owner of the method" do diff --git a/spec/ruby/core/unboundmethod/parameters_spec.rb b/spec/ruby/core/unboundmethod/parameters_spec.rb index a48c967ea5..2a3cb18196 100644 --- a/spec/ruby/core/unboundmethod/parameters_spec.rb +++ b/spec/ruby/core/unboundmethod/parameters_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe "UnboundMethod#parameters" do it "needs to be reviewed for spec completeness" diff --git a/spec/ruby/core/unboundmethod/shared/to_s.rb b/spec/ruby/core/unboundmethod/shared/to_s.rb index 07ba0903e2..3987611d3f 100644 --- a/spec/ruby/core/unboundmethod/shared/to_s.rb +++ b/spec/ruby/core/unboundmethod/shared/to_s.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 :unboundmethod_to_s, shared: true do before :each do diff --git a/spec/ruby/core/unboundmethod/source_location_spec.rb b/spec/ruby/core/unboundmethod/source_location_spec.rb index 8b95f0776b..60047787db 100644 --- a/spec/ruby/core/unboundmethod/source_location_spec.rb +++ b/spec/ruby/core/unboundmethod/source_location_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 "UnboundMethod#source_location" do before :each do diff --git a/spec/ruby/core/unboundmethod/super_method_spec.rb b/spec/ruby/core/unboundmethod/super_method_spec.rb index 49d356fd2b..c9fa1ec533 100644 --- a/spec/ruby/core/unboundmethod/super_method_spec.rb +++ b/spec/ruby/core/unboundmethod/super_method_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 "UnboundMethod#super_method" do it "returns the method that would be called by super in the method" do diff --git a/spec/ruby/core/unboundmethod/to_s_spec.rb b/spec/ruby/core/unboundmethod/to_s_spec.rb index fbd9dc4ee8..a508229b49 100644 --- a/spec/ruby/core/unboundmethod/to_s_spec.rb +++ b/spec/ruby/core/unboundmethod/to_s_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/to_s', __FILE__) +require_relative '../../spec_helper' +require_relative 'fixtures/classes' +require_relative 'shared/to_s' describe "UnboundMethod#to_s" do it_behaves_like :unboundmethod_to_s, :to_s |