summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2009-10-06 17:30:31 -0700
committerCarl Lerche <carllerche@mac.com>2009-10-06 17:30:31 -0700
commit58169d2ffc1b3d657d03f87f7fe4d038bd9685af (patch)
tree28339001d06522faeba500a5d85cb06792f75502 /spec
parent6f37ddf42443ceeb4d0a9cf17b6a5f42a7ee4617 (diff)
downloadbundler-58169d2ffc1b3d657d03f87f7fe4d038bd9685af.tar.gz
Always generate bin files no matter what.
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/manifest_file_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/bundler/manifest_file_spec.rb b/spec/bundler/manifest_file_spec.rb
index 6b033dfac9..1e2cf347b1 100644
--- a/spec/bundler/manifest_file_spec.rb
+++ b/spec/bundler/manifest_file_spec.rb
@@ -84,6 +84,18 @@ describe "Bundler::Environment" do
File.read("#{bundled_app}/bin/rackup").should_not == "omg"
end
+ it "recreates the bin files if they are missing" do
+ install_manifest <<-Gemfile
+ clear_sources
+ source "file://#{gem_repo1}"
+ gem "rack"
+ Gemfile
+
+ bundled_app('bin/rackup').delete
+ Dir.chdir(bundled_app) { gem_command :bundle }
+ bundled_app('bin/rackup').should exist
+ end
+
it "ensures the source sources contains no duplicate" do
build_manifest_file <<-Gemfile
source "http://gems.rubyforge.org"