diff options
author | Carlhuda <carlhuda@engineyard.com> | 2010-04-22 14:06:44 -0700 |
---|---|---|
committer | Carlhuda <carlhuda@engineyard.com> | 2010-04-22 14:06:44 -0700 |
commit | 0e758607a4e25f9b7eb464c8507331649e412243 (patch) | |
tree | b407b37c4dc133976bca15d4afd1c121b67cd724 /spec/runtime | |
parent | 1b4c46a36e16ef9d36b133443f7a12ab0e982302 (diff) | |
download | bundler-0e758607a4e25f9b7eb464c8507331649e412243.tar.gz |
Fix the Gem::SourceIndex monkey patching
Diffstat (limited to 'spec/runtime')
-rw-r--r-- | spec/runtime/environment_rb_spec.rb | 20 | ||||
-rw-r--r-- | spec/runtime/setup_spec.rb | 7 |
2 files changed, 2 insertions, 25 deletions
diff --git a/spec/runtime/environment_rb_spec.rb b/spec/runtime/environment_rb_spec.rb index d4304840..898f80b5 100644 --- a/spec/runtime/environment_rb_spec.rb +++ b/spec/runtime/environment_rb_spec.rb @@ -76,11 +76,6 @@ describe "environment.rb file" do run "puts ENV['GEM_HOME']", :lite_runtime => true out.should == default_bundle_path.to_s end - - it "sets GEM_PATH appropriately" do - run "puts Gem.path", :lite_runtime => true - out.should == default_bundle_path.to_s - end end describe "with system gems in the bundle" do @@ -174,20 +169,7 @@ describe "environment.rb file" do err.should include("Please run `bundle lock` to relock.") end - it "regenerates if from an old bundler" do - env_file <<-E - # Generated by Bundler 0.8 - puts "noo" - E - - ruby <<-R - require "rubygems" - require "bundler" - Bundler.setup - R - out.should_not include("noo") - env_file.read.should include("Generated by Bundler #{Bundler::VERSION}") - end + it "regenerates if from an old bundler" it "requests regeneration if it's out of sync" do pending diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb index 7316cc85..bfe0e939 100644 --- a/spec/runtime/setup_spec.rb +++ b/spec/runtime/setup_spec.rb @@ -76,14 +76,9 @@ describe "Bundler.setup" do G end - it "removes system gem repositories from Gem.path" do - run "puts Gem.path.join('\n')" - out.should == Bundler.bundle_path.to_s - end - it "removes system gems from Gem.source_index" do run "require 'yard'" - err.should be_empty + out.should == "yard-1.0" end end end |