summaryrefslogtreecommitdiff
path: root/spec/update
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-06-09 12:21:18 -0400
committerCarl Lerche <carllerche@mac.com>2010-06-09 14:27:54 -0400
commit9b0d2be556c9c8c6928527e9b186a0cf475a11d1 (patch)
tree84045b2cde9ed23d0a2bd2efa084f29e9c6bb656 /spec/update
parentadd94117b150369da985b9ec23d3c3edd1aa9e39 (diff)
downloadbundler-9b0d2be556c9c8c6928527e9b186a0cf475a11d1.tar.gz
Remove more pending specs
Diffstat (limited to 'spec/update')
-rw-r--r--spec/update/git_spec.rb42
1 files changed, 42 insertions, 0 deletions
diff --git a/spec/update/git_spec.rb b/spec/update/git_spec.rb
new file mode 100644
index 0000000000..31ad77e5ba
--- /dev/null
+++ b/spec/update/git_spec.rb
@@ -0,0 +1,42 @@
+require "spec_helper"
+
+describe "bundle update" do
+ describe "git sources" do
+ it "floats on a branch when :branch is used" do
+ build_git "foo", "1.0"
+ update_git "foo", :branch => "omg"
+
+ install_gemfile <<-G
+ git "#{lib_path('foo-1.0')}", :branch => "omg"
+ gem 'foo'
+ G
+
+ update_git "foo", :branch => "omg" do |s|
+ s.write "lib/foo.rb", "FOO = '1.1'"
+ end
+
+ bundle "update"
+
+ should_be_installed "foo 1.1"
+ end
+
+ it "floats on a branch when :branch is used and the source is specified in the update" do
+ build_git "foo", "1.0", :path => lib_path("foo")
+ update_git "foo", :branch => "omg", :path => lib_path("foo")
+
+ install_gemfile <<-G
+ git "#{lib_path('foo')}", :branch => "omg" do
+ gem 'foo'
+ end
+ G
+
+ update_git "foo", :branch => "omg", :path => lib_path("foo") do |s|
+ s.write "lib/foo.rb", "FOO = '1.1'"
+ end
+
+ bundle "update --source foo"
+
+ should_be_installed "foo 1.1"
+ end
+ end
+end \ No newline at end of file