diff options
author | Boggs <hello.boggs@gmail.com> | 2016-05-26 20:03:39 +0800 |
---|---|---|
committer | Boggs <hello.boggs@gmail.com> | 2016-05-26 20:03:39 +0800 |
commit | b77095499c99a99ac1e7fa42b2f06f23b80f4b22 (patch) | |
tree | 173a0ca0861f92593bf18a1cacda6fe2175b3602 | |
parent | 3f8b9381b8eb47aa2ce988a9911db7d901626db6 (diff) | |
download | bundler-b77095499c99a99ac1e7fa42b2f06f23b80f4b22.tar.gz |
Make spec context more specific, modify standalone option description
-rw-r--r-- | lib/bundler/cli.rb | 2 | ||||
-rw-r--r-- | spec/commands/binstubs_spec.rb | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 30fd33b755..fe510d1734 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -230,7 +230,7 @@ module Bundler method_option "path", :type => :string, :lazy_default => "bin", :banner => "Binstub destination directory (default bin)" method_option "standalone", :type => :array, :lazy_default => [], :banner => - "Make gem/s work without the Bundler runtime" + "Make binstubs that can work without the Bundler runtime" def binstubs(*gems) require "bundler/cli/binstubs" Binstubs.new(options, gems).run diff --git a/spec/commands/binstubs_spec.rb b/spec/commands/binstubs_spec.rb index 1d7deac6fd..338f07100a 100644 --- a/spec/commands/binstubs_spec.rb +++ b/spec/commands/binstubs_spec.rb @@ -145,16 +145,17 @@ describe "bundle binstubs <gem>" do end end - context "--standalone" do - it "includes the standalone path" do + context "after installing with --standalone" do + before do install_gemfile <<-G source "file://#{gem_repo1}" gem "rack" G - bundle "install --standalone" - bundle "binstubs rack --standalone" + end + it "includes the standalone path" do + bundle "binstubs rack --standalone" 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', __FILE__" end |