aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorTerence Lee <hone02@gmail.com>2012-12-27 22:05:12 -0500
committerTerence Lee <hone02@gmail.com>2012-12-27 22:05:12 -0500
commitdd11095592351c6c8b6f0f7866f4f1d80ebda60f (patch)
tree99aed92174081b8958a5491b9af42cca9bf1026c /spec
parent17561867460054a6dabf112b14387c2f8313a086 (diff)
downloadbundler-dd11095592351c6c8b6f0f7866f4f1d80ebda60f.tar.gz
bundle binstubs --binstubs
Diffstat (limited to 'spec')
-rw-r--r--spec/other/binstubs_spec.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/other/binstubs_spec.rb b/spec/other/binstubs_spec.rb
index 4faabaf2..faab6c0a 100644
--- a/spec/other/binstubs_spec.rb
+++ b/spec/other/binstubs_spec.rb
@@ -66,4 +66,30 @@ describe "bundle binstubs <gem>" do
expect(bundled_app("bin/foo")).to exist
end
end
+
+ context "--binstubs" do
+ it "sets the binstubs dir" do
+ install_gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "rack"
+ G
+
+ bundle "binstubs rack --binstubs exec"
+
+ expect(bundled_app("exec/rackup")).to exist
+ end
+
+ it "setting is saved for bundle install" do
+ install_gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "rack"
+ gem "rails"
+ G
+
+ bundle "binstubs rack --binstubs exec"
+ bundle :install
+
+ expect(bundled_app("exec/rails")).to exist
+ end
+ end
end