summaryrefslogtreecommitdiff
path: root/spec/runtime
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-03 14:06:58 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-16 08:43:44 +0200
commitafdacd62aca0e2b7c574b324ea511b821a6c59df (patch)
tree139ae8af53a709f0f3238ad0cb68424bef42e841 /spec/runtime
parenta05250c09d76ee3fca1eb2369ad9099918673244 (diff)
downloadbundler-afdacd62aca0e2b7c574b324ea511b821a6c59df.tar.gz
Remove duplicated method
Diffstat (limited to 'spec/runtime')
-rw-r--r--spec/runtime/gem_tasks_spec.rb4
-rw-r--r--spec/runtime/setup_spec.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/runtime/gem_tasks_spec.rb b/spec/runtime/gem_tasks_spec.rb
index eb9db56ead..af645c8ef1 100644
--- a/spec/runtime/gem_tasks_spec.rb
+++ b/spec/runtime/gem_tasks_spec.rb
@@ -11,7 +11,7 @@ RSpec.describe "require 'bundler/gem_tasks'" do
end
bundled_app("Rakefile").open("w") do |f|
f.write <<-RAKEFILE
- $:.unshift("#{bundler_path}")
+ $:.unshift("#{lib}")
require "bundler/gem_tasks"
RAKEFILE
end
@@ -19,7 +19,7 @@ RSpec.describe "require 'bundler/gem_tasks'" do
it "includes the relevant tasks" do
with_gem_path_as(Spec::Path.base_system_gems.to_s) do
- sys_exec "#{rake} -T", "RUBYOPT" => "-I#{bundler_path}"
+ sys_exec "#{rake} -T", "RUBYOPT" => "-I#{lib}"
end
expect(err).to eq("")
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb
index 866f4862c5..748bbcbf23 100644
--- a/spec/runtime/setup_spec.rb
+++ b/spec/runtime/setup_spec.rb
@@ -114,7 +114,7 @@ RSpec.describe "Bundler.setup" do
def clean_load_path(lp)
without_bundler_load_path = ruby!("puts $LOAD_PATH").split("\n")
lp -= without_bundler_load_path
- lp.map! {|p| p.sub(/^#{Regexp.union system_gem_path.to_s, default_bundle_path.to_s, bundler_path.to_s}/i, "") }
+ lp.map! {|p| p.sub(/^#{Regexp.union system_gem_path.to_s, default_bundle_path.to_s, lib.to_s}/i, "") }
end
it "puts loaded gems after -I and RUBYLIB", :ruby_repo do