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/core/array/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/core/array/shared')
-rw-r--r-- | spec/ruby/core/array/shared/collect.rb | 2 | ||||
-rw-r--r-- | spec/ruby/core/array/shared/inspect.rb | 2 | ||||
-rw-r--r-- | spec/ruby/core/array/shared/join.rb | 4 | ||||
-rw-r--r-- | spec/ruby/core/array/shared/keep_if.rb | 2 | ||||
-rw-r--r-- | spec/ruby/core/array/shared/select.rb | 10 |
5 files changed, 10 insertions, 10 deletions
diff --git a/spec/ruby/core/array/shared/collect.rb b/spec/ruby/core/array/shared/collect.rb index 5da73a88b4..8ad6e61855 100644 --- a/spec/ruby/core/array/shared/collect.rb +++ b/spec/ruby/core/array/shared/collect.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../enumerable/shared/enumeratorized', __FILE__) +require_relative '../../enumerable/shared/enumeratorized' describe :array_collect, shared: true do it "returns a copy of array with each element replaced by the value returned by block" do diff --git a/spec/ruby/core/array/shared/inspect.rb b/spec/ruby/core/array/shared/inspect.rb index 6a60781b45..0cf5035b37 100644 --- a/spec/ruby/core/array/shared/inspect.rb +++ b/spec/ruby/core/array/shared/inspect.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../fixtures/encoded_strings', __FILE__) +require_relative '../fixtures/encoded_strings' describe :array_inspect, shared: true do it "returns a string" do diff --git a/spec/ruby/core/array/shared/join.rb b/spec/ruby/core/array/shared/join.rb index fa66588b47..0fd2e0ff9b 100644 --- a/spec/ruby/core/array/shared/join.rb +++ b/spec/ruby/core/array/shared/join.rb @@ -1,5 +1,5 @@ -require File.expand_path('../../fixtures/classes', __FILE__) -require File.expand_path('../../fixtures/encoded_strings', __FILE__) +require_relative '../fixtures/classes' +require_relative '../fixtures/encoded_strings' describe :array_join_with_default_separator, shared: true do before :each do diff --git a/spec/ruby/core/array/shared/keep_if.rb b/spec/ruby/core/array/shared/keep_if.rb index 0f65d060d8..906ad9b9e2 100644 --- a/spec/ruby/core/array/shared/keep_if.rb +++ b/spec/ruby/core/array/shared/keep_if.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../enumerable/shared/enumeratorized', __FILE__) +require_relative '../../enumerable/shared/enumeratorized' describe :keep_if, shared: true do it "deletes elements for which the block returns a false value" do diff --git a/spec/ruby/core/array/shared/select.rb b/spec/ruby/core/array/shared/select.rb index e09231415d..09101e8ab5 100644 --- a/spec/ruby/core/array/shared/select.rb +++ b/spec/ruby/core/array/shared/select.rb @@ -1,8 +1,8 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../../fixtures/classes', __FILE__) -require File.expand_path('../../shared/enumeratorize', __FILE__) -require File.expand_path('../../shared/keep_if', __FILE__) -require File.expand_path('../../../enumerable/shared/enumeratorized', __FILE__) +require_relative '../../../spec_helper' +require_relative '../fixtures/classes' +require_relative '../shared/enumeratorize' +require_relative '../shared/keep_if' +require_relative '../../enumerable/shared/enumeratorized' describe :array_select, shared: true do it_should_behave_like :enumeratorize |