summaryrefslogtreecommitdiff
path: root/spec/commands/newgem_spec.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-10-30 18:06:49 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-11-04 17:47:32 +0100
commit821d431e0f38b3d2ea56a568a1ce03a573a217ce (patch)
treec3aed554b9751da12464506c2e9af42490bd2815 /spec/commands/newgem_spec.rb
parentbe9d1e0a8f8aeb79e55b7a7a84bf69bb3d650fd3 (diff)
downloadbundler-821d431e0f38b3d2ea56a568a1ce03a573a217ce.tar.gz
Remove `spec` helper in favor of `spec_dir`
The `spec` name is too common inside specs for `Gem::Specification`'s.
Diffstat (limited to 'spec/commands/newgem_spec.rb')
-rw-r--r--spec/commands/newgem_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/commands/newgem_spec.rb b/spec/commands/newgem_spec.rb
index 18a30ca9db..52a6c11972 100644
--- a/spec/commands/newgem_spec.rb
+++ b/spec/commands/newgem_spec.rb
@@ -181,7 +181,7 @@ RSpec.describe "bundle gem" do
context "when git is not available" do
# This spec cannot have `git` available in the test env
before do
- load_paths = [lib, spec]
+ load_paths = [lib, spec_dir]
load_path_str = "-I#{load_paths.join(File::PATH_SEPARATOR)}"
sys_exec "#{Gem.ruby} #{load_path_str} #{bindir.join("bundle")} gem #{gem_name}", "PATH" => ""