summaryrefslogtreecommitdiff
path: root/spec/commands/binstubs_spec.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-07-10 08:45:00 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-07-19 13:10:39 -0500
commitaec2780f59caf6070752fc7ceda1470cf1faf496 (patch)
tree0dd4b90e4073c4e42d3d60e11646c60216deaa41 /spec/commands/binstubs_spec.rb
parent6b9defe6a5c3a83f13d2f45e2166d7198ae28486 (diff)
downloadbundler-aec2780f59caf6070752fc7ceda1470cf1faf496.tar.gz
Set forgotten command line options via config in 2.0
Diffstat (limited to 'spec/commands/binstubs_spec.rb')
-rw-r--r--spec/commands/binstubs_spec.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/commands/binstubs_spec.rb b/spec/commands/binstubs_spec.rb
index 430dbef314..d696ace093 100644
--- a/spec/commands/binstubs_spec.rb
+++ b/spec/commands/binstubs_spec.rb
@@ -150,8 +150,8 @@ RSpec.describe "bundle binstubs <gem>" do
gem "rails"
G
- bundle "binstubs rack --path exec"
- bundle :install
+ bundle! "binstubs rack", forgotten_command_line_options([:path, :bin] => "exec")
+ bundle! :install
expect(bundled_app("exec/rails")).to exist
end
@@ -159,15 +159,16 @@ RSpec.describe "bundle binstubs <gem>" do
context "after installing with --standalone" do
before do
- install_gemfile <<-G
+ install_gemfile! <<-G
source "file://#{gem_repo1}"
gem "rack"
G
- bundle "install --standalone"
+ forgotten_command_line_options(:path => "bundle")
+ bundle! "install", :standalone => true
end
it "includes the standalone path" do
- bundle "binstubs rack --standalone"
+ bundle! "binstubs rack", :standalone => true
standalone_line = File.read(bundled_app("bin/rackup")).each_line.find {|line| line.include? "$:.unshift" }.strip
expect(standalone_line).to eq %($:.unshift File.expand_path "../../bundle", path.realpath)
end