summaryrefslogtreecommitdiff
path: root/spec/runtime/load_spec.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2010-04-12 12:15:18 -0700
committerAndre Arko <andre@arko.net>2010-04-12 12:15:45 -0700
commit175c416209fcb367f4eaa15a2ca1153b9c6c150d (patch)
tree69a7916fb7bb969471ba13bb8617ecfe8dee67c4 /spec/runtime/load_spec.rb
parent68fca5ab289a24e186fa6f72bb9c6d31725cc3ac (diff)
downloadbundler-175c416209fcb367f4eaa15a2ca1153b9c6c150d.tar.gz
Fix load specs for Ruby 1.9 now that system gems are on the LOAD_PATH
Diffstat (limited to 'spec/runtime/load_spec.rb')
-rw-r--r--spec/runtime/load_spec.rb14
1 files changed, 5 insertions, 9 deletions
diff --git a/spec/runtime/load_spec.rb b/spec/runtime/load_spec.rb
index c2897a7b04..46ab31e684 100644
--- a/spec/runtime/load_spec.rb
+++ b/spec/runtime/load_spec.rb
@@ -71,7 +71,7 @@ describe "Bundler.load" do
before :each do
install_gemfile <<-G
source "file://#{gem_repo1}"
- gem "rack"
+ gem "activesupport"
G
bundle :lock
end
@@ -80,23 +80,19 @@ describe "Bundler.load" do
ruby <<-RUBY
require 'bundler'
Bundler.load
- puts Bundler.instance_eval{ @runtime }
+ puts Bundler.instance_eval{ @runtime }.inspect
RUBY
out.should == "nil"
end
it "does not invoke setup inside env.rb" do
- ruby <<-RUBY, :expect_err => true
+ ruby <<-RUBY
require 'bundler'
Bundler.load
- if $LOAD_PATH.grep(/rack/i).any?
- puts "nooo"
- else
- puts "hurrah"
- end
+ puts $LOAD_PATH.grep(/activesupport/i)
RUBY
- out.should == "hurrah"
+ out.should == ""
end
end