diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-07-30 12:27:11 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-08-31 19:06:14 +0900 |
commit | 1d6551a02da866dc82866736cb216ce22dbd39d0 (patch) | |
tree | 125e2441c90c62525e9cc89d2c31efe3f05a28b2 /spec/bundler/install/gems/standalone_spec.rb | |
parent | 97c0d3fead87316c127235f91535068ce60d0fa2 (diff) | |
download | ruby-1d6551a02da866dc82866736cb216ce22dbd39d0.tar.gz |
[rubygems/rubygems] Remove unnecessary `path` local variable
We can use `__dir__` directly.
https://github.com/rubygems/rubygems/commit/0e6083ca94
Diffstat (limited to 'spec/bundler/install/gems/standalone_spec.rb')
-rw-r--r-- | spec/bundler/install/gems/standalone_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/install/gems/standalone_spec.rb b/spec/bundler/install/gems/standalone_spec.rb index 6578997cd6..5a46e8b6e6 100644 --- a/spec/bundler/install/gems/standalone_spec.rb +++ b/spec/bundler/install/gems/standalone_spec.rb @@ -159,7 +159,7 @@ RSpec.shared_examples "bundle install --standalone" do it "generates a bundle/bundler/setup.rb with the proper paths" do expected_path = bundled_app("bundle/bundler/setup.rb") extension_line = File.read(expected_path).each_line.find {|line| line.include? "/extensions/" }.strip - expect(extension_line).to start_with '$:.unshift File.expand_path("#{path}/../#{ruby_engine}/#{ruby_version}/extensions/' + expect(extension_line).to start_with '$:.unshift File.expand_path("#{__dir__}/../#{ruby_engine}/#{ruby_version}/extensions/' expect(extension_line).to end_with '/very_simple_binary-1.0")' end end |