diff options
author | Andre Arko <andre@arko.net> | 2011-05-05 12:36:33 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2011-05-05 12:36:33 -0700 |
commit | 23ba3276873c5b7d2e9afd71a96aeba433182dc9 (patch) | |
tree | 1dbfc821735a27c4c14cdab045318b51978f3440 /spec/bundler | |
parent | e1e588e6b6bec6c3287ed56d24b0750130eb3af3 (diff) | |
download | bundler-23ba3276873c5b7d2e9afd71a96aeba433182dc9.tar.gz |
fix the huge ugly bug I made that breaks install, add specs
Diffstat (limited to 'spec/bundler')
-rw-r--r-- | spec/bundler/source_spec.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/bundler/source_spec.rb b/spec/bundler/source_spec.rb new file mode 100644 index 0000000000..41440f1075 --- /dev/null +++ b/spec/bundler/source_spec.rb @@ -0,0 +1,25 @@ +require 'spec_helper' + +describe Bundler::Source::Rubygems do + before do + Bundler.stub(:root){ Pathname.new("root") } + end + + describe "caches" do + it "should include Bundler.app_cache" do + subject.caches.should include(Bundler.app_cache) + end + + it "should include GEM_PATH entries" do + Gem.path.each do |path| + subject.caches.should include(File.expand_path("#{path}/cache")) + end + end + + it "should be an array of strings or pathnames" do + subject.caches.each do |cache| + [String, Pathname].should include(cache.class) + end + end + end +end |