diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-10-15 13:25:27 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-10-15 14:12:02 +0900 |
commit | ab6c4f8be3dd0fb116ba2722a2fcdc53ad4ea0b7 (patch) | |
tree | 05165659632b47771323a56f7f10d1f04d56f189 /test/rubygems/test_gem_stub_specification.rb | |
parent | f0c7a05b4c7657f1cff1698e5560f49248a08bfd (diff) |
Merge rubygems-3.2.0.rc.2
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3660
Diffstat (limited to 'test/rubygems/test_gem_stub_specification.rb')
-rw-r--r-- | test/rubygems/test_gem_stub_specification.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rubygems/test_gem_stub_specification.rb b/test/rubygems/test_gem_stub_specification.rb index 5a47fa520a..2ee94dcf8d 100644 --- a/test/rubygems/test_gem_stub_specification.rb +++ b/test/rubygems/test_gem_stub_specification.rb @@ -3,14 +3,14 @@ require "rubygems/test_case" require "rubygems/stub_specification" class TestStubSpecification < Gem::TestCase - FOO = File.join SPECIFICATIONS, "foo-0.0.1-x86-mswin32.gemspec" - BAR = File.join SPECIFICATIONS, "bar-0.0.2.gemspec" + FOO = File.expand_path File.join("specifications", "foo-0.0.1-x86-mswin32.gemspec"), __dir__ + BAR = File.expand_path File.join("specifications", "bar-0.0.2.gemspec"), __dir__ def setup super - @base_dir = File.dirname(SPECIFICATIONS) - @gems_dir = File.join File.dirname(SPECIFICATIONS), 'gem' + @base_dir = __dir__ + @gems_dir = File.join __dir__, 'gem' @foo = Gem::StubSpecification.gemspec_stub FOO, @base_dir, @gems_dir end |