aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorTerence Lee <hone02@gmail.com>2012-12-17 20:07:31 -0500
committerTerence Lee <hone02@gmail.com>2012-12-23 20:15:16 -0500
commitd80d79b095195c243e9dd2108e28783324df4eed (patch)
tree5c0fb4fb13bfa3bad1860d805ac506d3816e4cac /spec
parentd1c555f2e4878ae2d03d802c48c782e36854ace0 (diff)
downloadbundler-d80d79b095195c243e9dd2108e28783324df4eed.tar.gz
`bundle install --binstubs ""` will remove binstubs option
Diffstat (limited to 'spec')
-rw-r--r--spec/runtime/executable_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/runtime/executable_spec.rb b/spec/runtime/executable_spec.rb
index bafa6310..34d5bba7 100644
--- a/spec/runtime/executable_spec.rb
+++ b/spec/runtime/executable_spec.rb
@@ -99,6 +99,18 @@ describe "Running bin/* commands" do
expect(bundled_app("bin/rackup")).not_to exist
end
+ it "allows you to stop installing binstubs" do
+ bundle "install --binstubs bin/"
+ bundled_app("bin/rackup").rmtree
+ bundle "install --binstubs \"\""
+
+ expect(bundled_app("bin/rackup")).not_to exist
+ #expect(bundled_app("rackup")).not_to exist
+
+ bundle "config bin"
+ expect(out).to include("You have not configured a value for `bin`")
+ end
+
it "remembers that the option was specified" do
gemfile <<-G
source "file://#{gem_repo1}"