forked from rubygems/bundler
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move a bundle update spec for git into update/source_spec.rb
- Loading branch information
Carl Lerche
committed
May 8, 2010
1 parent
d481a28
commit cd8a563
Showing
2 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
require "spec_helper" | ||
|
||
describe "bundle update" do | ||
describe "git sources" do | ||
before :each do | ||
build_git "foo", :path => lib_path("foo") do |s| | ||
s.executables = "foobar" | ||
end | ||
|
||
install_gemfile <<-G | ||
git "#{lib_path('foo')}" | ||
gem 'foo' | ||
G | ||
end | ||
|
||
it "updates the source" do | ||
pending "Needs to be implemented" | ||
bundle "update --source foo" | ||
|
||
in_app_root do | ||
run <<-RUBY | ||
require 'foo' | ||
puts "WIN" if defined?(FOO_PREV_REF) | ||
RUBY | ||
|
||
out.should == "WIN" | ||
end | ||
end | ||
end | ||
end |