summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerence Lee <hone02@gmail.com>2012-07-17 04:21:50 -0500
committerTerence Lee <hone02@gmail.com>2012-07-17 04:21:50 -0500
commit7821adb2387622f00aa9e672447ef6c536dfce37 (patch)
tree127e1c7e54de3bb0c1eef9ec85c1cecbdad5ca27
parent8570961ec1f2332b3065eb1b3265100651230ec3 (diff)
downloadbundler-7821adb2387622f00aa9e672447ef6c536dfce37.tar.gz
add warning message for `bundle pack --all` if not used with git repos
-rw-r--r--spec/cache/git_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/cache/git_spec.rb b/spec/cache/git_spec.rb
index 6958bc3893..0333e81b6a 100644
--- a/spec/cache/git_spec.rb
+++ b/spec/cache/git_spec.rb
@@ -140,5 +140,18 @@ end
bundled_app("vendor/cache/has_submodule-1.0-#{ref}/submodule-1.0").should exist
should_be_installed "has_submodule 1.0"
end
+
+ it "displays warning message when detecting git repo in Gemfile" do
+ git = build_git "foo"
+ ref = git.ref_for("master", 11)
+
+ install_gemfile <<-G
+ gem "foo", :git => '#{lib_path("foo-1.0")}'
+ G
+
+ bundle "#{cmd}"
+
+ out.should include("Your Gemfile contains path and git dependencies.")
+ end
end
end \ No newline at end of file