aboutsummaryrefslogtreecommitdiffstats
path: root/spec/other
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2013-01-22 10:15:34 -0800
committerAndre Arko <andre@arko.net>2013-01-22 10:15:34 -0800
commitb4990b75100c7b30299df316fe05a1fc534db0df (patch)
tree1c432fa91ba02e6dbb76ddcf4d695e8c1c07ce17 /spec/other
parentbb9f90ee0f00a3e8f40edba885c4d5d4d5bcdb64 (diff)
downloadbundler-b4990b75100c7b30299df316fe05a1fc534db0df.tar.gz
binstubs for gems with dev deps don't raise
fixes #2272
Diffstat (limited to 'spec/other')
-rw-r--r--spec/other/binstubs_spec.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/spec/other/binstubs_spec.rb b/spec/other/binstubs_spec.rb
index 843e15c2..f5e1347a 100644
--- a/spec/other/binstubs_spec.rb
+++ b/spec/other/binstubs_spec.rb
@@ -133,4 +133,37 @@ describe "bundle binstubs <gem>" do
end
end
end
+
+ context "when the gem has no bins" do
+ it "suggests child gems if they have bins" do
+ install_gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "rack-obama"
+ G
+
+ bundle "binstubs rack-obama"
+ expect(out).to include('rack-obama has no executables')
+ expect(out).to include('rack has: rackup')
+ end
+
+ it "works if child gems don't have bins" do
+ install_gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "actionpack"
+ G
+
+ bundle "binstubs actionpack"
+ expect(out).to include('no executables for the gem actionpack')
+ end
+
+ it "works if the gem has development dependencies" do
+ install_gemfile <<-G
+ source "file://#{gem_repo1}"
+ gem "with_development_dependency"
+ G
+
+ bundle "binstubs with_development_dependency"
+ expect(out).to include('no executables for the gem with_development_dependency')
+ end
+ end
end