summaryrefslogtreecommitdiff
path: root/spec/cache
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-23 19:19:31 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-23 23:07:21 +0200
commit4c6a3c3cf7bc11f5f0ea6b5b1bff477bd8807e81 (patch)
tree4e7b11743d11470f7126ca5756ffc5dbf7b4cbfb /spec/cache
parente9c83b85622ebffecc645dcf092af8b607f46f10 (diff)
downloadbundler-4c6a3c3cf7bc11f5f0ea6b5b1bff477bd8807e81.tar.gz
Enable `Style/UnneededInterpolation` copenable_unneeded_interpolation_cop
Diffstat (limited to 'spec/cache')
-rw-r--r--spec/cache/git_spec.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/cache/git_spec.rb b/spec/cache/git_spec.rb
index d31d607d25..1348d033e2 100644
--- a/spec/cache/git_spec.rb
+++ b/spec/cache/git_spec.rb
@@ -22,7 +22,7 @@ end
gem "foo", :git => '#{lib_path("foo-1.0")}'
G
- bundle "#{cmd}", forgotten_command_line_options([:all, :cache_all] => true)
+ bundle cmd, forgotten_command_line_options([:all, :cache_all] => true)
expect(bundled_app("vendor/cache/foo-1.0-#{ref}")).to exist
expect(bundled_app("vendor/cache/foo-1.0-#{ref}/.git")).not_to exist
expect(bundled_app("vendor/cache/foo-1.0-#{ref}/.bundlecache")).to be_file
@@ -40,7 +40,7 @@ end
G
bundle "install --path vendor/bundle"
- bundle "#{cmd}", forgotten_command_line_options([:all, :cache_all] => true)
+ bundle cmd, forgotten_command_line_options([:all, :cache_all] => true)
expect(bundled_app("vendor/cache/foo-1.0-#{ref}")).to exist
expect(bundled_app("vendor/cache/foo-1.0-#{ref}/.git")).not_to exist
@@ -56,8 +56,8 @@ end
gem "foo", :git => '#{lib_path("foo-1.0")}'
G
- bundle! "#{cmd}", forgotten_command_line_options([:all, :cache_all] => true)
- bundle! "#{cmd}", forgotten_command_line_options([:all, :cache_all] => true)
+ bundle! cmd, forgotten_command_line_options([:all, :cache_all] => true)
+ bundle! cmd, forgotten_command_line_options([:all, :cache_all] => true)
expect(out).to include "Updating files in vendor/cache"
FileUtils.rm_rf lib_path("foo-1.0")
@@ -72,7 +72,7 @@ end
gem "foo", :git => '#{lib_path("foo-1.0")}'
G
- bundle "#{cmd}", forgotten_command_line_options([:all, :cache_all] => true)
+ bundle cmd, forgotten_command_line_options([:all, :cache_all] => true)
update_git "foo" do |s|
s.write "lib/foo.rb", "puts :CACHE"
@@ -82,7 +82,7 @@ end
expect(ref).not_to eq(old_ref)
bundle! "update", :all => true
- bundle! "#{cmd}", forgotten_command_line_options([:all, :cache_all] => true)
+ bundle! cmd, forgotten_command_line_options([:all, :cache_all] => true)
expect(bundled_app("vendor/cache/foo-1.0-#{ref}")).to exist
expect(bundled_app("vendor/cache/foo-1.0-#{old_ref}")).not_to exist
@@ -129,7 +129,7 @@ end
bundle %(config set local.foo #{lib_path("foo-1.0")})
bundle "install"
- bundle "#{cmd}", forgotten_command_line_options([:all, :cache_all] => true)
+ bundle cmd, forgotten_command_line_options([:all, :cache_all] => true)
expect(bundled_app("vendor/cache/foo-invalid-#{ref}")).to exist
@@ -161,7 +161,7 @@ end
G
ref = git.ref_for("master", 11)
- bundle "#{cmd}", forgotten_command_line_options([:all, :cache_all] => true)
+ bundle cmd, forgotten_command_line_options([:all, :cache_all] => true)
expect(bundled_app("vendor/cache/has_submodule-1.0-#{ref}")).to exist
expect(bundled_app("vendor/cache/has_submodule-1.0-#{ref}/submodule-1.0")).to exist
@@ -175,7 +175,7 @@ end
gem "foo", :git => '#{lib_path("foo-1.0")}'
G
- bundle "#{cmd}"
+ bundle cmd
expect(err).to include("Your Gemfile contains path and git dependencies.")
end