Permalink
Browse files

test for update --local

  • Loading branch information...
1 parent 08c3817 commit 443b31658e5e6eacbac9947373ddf94ac697b950 Andre Arko and Terence Lee committed Jan 19, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 spec/update/gems_spec.rb
View
@@ -43,6 +43,15 @@
should_be_installed "rack 1.2", "rack-obama 1.0", "activesupport 2.3.5"
end
end
+
+ describe "with --local option" do
+ it "doesn't hit repo2" do
+ FileUtils.rm_rf(gem_repo2)
+
+ bundle "update --local"
+ out.should_not match(/Fetching source index/)
+ end
+ end
end
describe "bundle update in more complicated situations" do

0 comments on commit 443b316

Please sign in to comment.