summaryrefslogtreecommitdiff
path: root/spec/bundler/runtime/executable_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/runtime/executable_spec.rb')
-rw-r--r--spec/bundler/runtime/executable_spec.rb32
1 files changed, 16 insertions, 16 deletions
diff --git a/spec/bundler/runtime/executable_spec.rb b/spec/bundler/runtime/executable_spec.rb
index 92c16a5f44..c36d999ed3 100644
--- a/spec/bundler/runtime/executable_spec.rb
+++ b/spec/bundler/runtime/executable_spec.rb
@@ -11,7 +11,7 @@ RSpec.describe "Running bin/* commands" do
it "runs the bundled command when in the bundle" do
skip "exec format error" if Gem.win_platform?
- bundle! "binstubs rack"
+ bundle "binstubs rack"
build_gem "rack", "2.0", :to_system => true do |s|
s.executables = "rackup"
@@ -24,7 +24,7 @@ RSpec.describe "Running bin/* commands" do
it "allows the location of the gem stubs to be specified" do
skip "created in bin :/" if Gem.win_platform?
- bundle! "binstubs rack", :path => "gbin"
+ bundle "binstubs rack", :path => "gbin"
expect(bundled_app("bin")).not_to exist
expect(bundled_app("gbin/rackup")).to exist
@@ -36,28 +36,28 @@ RSpec.describe "Running bin/* commands" do
it "allows absolute paths as a specification of where to install bin stubs" do
skip "exec format error" if Gem.win_platform?
- bundle! "binstubs rack", :path => tmp("bin")
+ bundle "binstubs rack", :path => tmp("bin")
gembin tmp("bin/rackup")
expect(out).to eq("1.0.0")
end
it "uses the default ruby install name when shebang is not specified" do
- bundle! "binstubs rack"
+ bundle "binstubs rack"
expect(File.open(bundled_app("bin/rackup")).gets).to eq("#!/usr/bin/env #{RbConfig::CONFIG["ruby_install_name"]}\n")
end
it "allows the name of the shebang executable to be specified" do
skip "not created with custom name :/" if Gem.win_platform?
- bundle! "binstubs rack", :shebang => "ruby-foo"
+ bundle "binstubs rack", :shebang => "ruby-foo"
expect(File.open(bundled_app("bin/rackup")).gets).to eq("#!/usr/bin/env ruby-foo\n")
end
it "runs the bundled command when out of the bundle" do
skip "exec format error" if Gem.win_platform?
- bundle! "binstubs rack"
+ bundle "binstubs rack"
build_gem "rack", "2.0", :to_system => true do |s|
s.executables = "rackup"
@@ -78,7 +78,7 @@ RSpec.describe "Running bin/* commands" do
gem "rack", :path => "#{lib_path("rack")}"
G
- bundle! "binstubs rack"
+ bundle "binstubs rack"
build_gem "rack", "2.0", :to_system => true do |s|
s.executables = "rackup"
@@ -94,7 +94,7 @@ RSpec.describe "Running bin/* commands" do
gem "bundler"
G
- bundle! "binstubs bundler"
+ bundle "binstubs bundler"
expect(bundled_app("bin/bundle")).to exist
end
@@ -102,7 +102,7 @@ RSpec.describe "Running bin/* commands" do
it "does not generate bin stubs if the option was not specified" do
skip "generated :/" if Gem.win_platform?
- bundle! "install"
+ bundle "install"
expect(bundled_app("bin/rackup")).not_to exist
end
@@ -110,13 +110,13 @@ RSpec.describe "Running bin/* commands" do
it "allows you to stop installing binstubs", :bundler => "< 3" do
skip "delete permission error" if Gem.win_platform?
- bundle! "install --binstubs bin/"
+ bundle "install --binstubs bin/"
bundled_app("bin/rackup").rmtree
- bundle! "install --binstubs \"\""
+ bundle "install --binstubs \"\""
expect(bundled_app("bin/rackup")).not_to exist
- bundle! "config bin"
+ bundle "config bin"
expect(out).to include("You have not configured a value for `bin`")
end
@@ -126,7 +126,7 @@ RSpec.describe "Running bin/* commands" do
gem "activesupport"
G
- bundle! :install, :binstubs => "bin"
+ bundle :install, :binstubs => "bin"
gemfile <<-G
source "#{file_uri_for(gem_repo1)}"
@@ -147,7 +147,7 @@ RSpec.describe "Running bin/* commands" do
create_file("bin/rackup", "OMG")
- bundle! "binstubs rack"
+ bundle "binstubs rack"
expect(bundled_app("bin/rackup").read).to_not eq("OMG")
end
@@ -156,7 +156,7 @@ RSpec.describe "Running bin/* commands" do
skip "exec format error" if Gem.win_platform?
# context with bin/bundler w/ default Gemfile
- bundle! "binstubs bundler"
+ bundle "binstubs bundler"
# generate other Gemfile with executable gem
build_repo2 do
@@ -171,7 +171,7 @@ RSpec.describe "Running bin/* commands" do
# generate binstub for executable from non default Gemfile (other then bin/bundler version)
ENV["BUNDLE_GEMFILE"] = "OtherGemfile"
bundle "install"
- bundle! "binstubs bindir"
+ bundle "binstubs bindir"
# remove user settings
ENV["BUNDLE_GEMFILE"] = nil