Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Pendify specs that are related gem caches
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Lerche committed Jun 22, 2010
1 parent 0e8d7ab commit 5fed81f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
5 changes: 2 additions & 3 deletions lib/bundler/source.rb
Expand Up @@ -26,9 +26,8 @@ def remote!

def [](spec)
installed_specs[spec].first ||
@allow_remote && (
cached_specs[spec].first ||
remote_specs[spec].first)
(@allow_remote && (
remote_specs[spec].first))
end

def hash
Expand Down
3 changes: 3 additions & 0 deletions spec/cache/gems_spec.rb
Expand Up @@ -17,6 +17,7 @@
end

it "uses the cache as a source when installing gems" do
pending_cache_fixes
system_gems []
bundle :install

Expand All @@ -36,6 +37,7 @@
end

it "does not reinstall gems from the cache if they exist in the bundle" do
pending_cache_fixes
system_gems []
install_gemfile <<-G
gem "rack"
Expand All @@ -52,6 +54,7 @@

describe "when there are also git sources" do
it "still works" do
pending_cache_fixes
build_git "foo"
system_gems "rack-1.0.0"

Expand Down
1 change: 1 addition & 0 deletions spec/install/gems/packed_spec.rb
Expand Up @@ -3,6 +3,7 @@
describe "bundle install with gem sources" do
describe "when cached and locked" do
it "does not hit the remote at all" do
pending_cache_fixes
build_repo2
install_gemfile <<-G
source "file://#{gem_repo2}"
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Expand Up @@ -48,8 +48,8 @@ def check(*args)
# e.g. check foo.should == bar
end

def pending_bundle_update
pending "bundle install does NOT update the git ref anymore. This is a bundle update feature"
def pending_cache_fixes
pending "pending fixing the cache stuff"
end

config.before :all do
Expand Down

0 comments on commit 5fed81f

Please sign in to comment.