diff options
author | Andre Arko <andre@arko.net> | 2010-04-09 22:22:14 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-04-10 00:36:41 -0700 |
commit | 0f97e4fcea15b2e5f2d6d045c686b5750c5d54de (patch) | |
tree | 6c9aa04661b1db474fbf08f664f7ef1f2c5a4068 /spec/runtime/load_spec.rb | |
parent | 2c8d6ae761b2f24d23dd7c6db50da41b3584908b (diff) | |
download | bundler-0f97e4fcea15b2e5f2d6d045c686b5750c5d54de.tar.gz |
Gems from git need their full_gem_path fixed, even when locked
Diffstat (limited to 'spec/runtime/load_spec.rb')
-rw-r--r-- | spec/runtime/load_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/runtime/load_spec.rb b/spec/runtime/load_spec.rb index 4c59c3f5..c2897a7b 100644 --- a/spec/runtime/load_spec.rb +++ b/spec/runtime/load_spec.rb @@ -51,7 +51,7 @@ describe "Bundler.load" do gem "activesupport", :group => :test G - ruby <<-R + ruby <<-RUBY require "bundler" Bundler.setup :default Bundler.require :default @@ -61,7 +61,7 @@ describe "Bundler.load" do rescue LoadError puts "no activesupport" end - R + RUBY out.split("\n").should == ["1.0.0", "no activesupport"] end @@ -77,16 +77,16 @@ describe "Bundler.load" do end it "loads env.rb instead of the runtime" do - ruby <<-R + ruby <<-RUBY require 'bundler' Bundler.load puts Bundler.instance_eval{ @runtime } - R + RUBY out.should == "nil" end it "does not invoke setup inside env.rb" do - ruby <<-R, :expect_err => true + ruby <<-RUBY, :expect_err => true require 'bundler' Bundler.load if $LOAD_PATH.grep(/rack/i).any? @@ -94,7 +94,7 @@ describe "Bundler.load" do else puts "hurrah" end - R + RUBY out.should == "hurrah" end |