Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix load specs for Ruby 1.9 now that system gems are on the LOAD_PATH

  • Loading branch information...
commit 175c416209fcb367f4eaa15a2ca1153b9c6c150d 1 parent 68fca5a
@indirect indirect authored
Showing with 5 additions and 9 deletions.
  1. +5 −9 spec/runtime/load_spec.rb
View
14 spec/runtime/load_spec.rb
@@ -71,7 +71,7 @@
before :each do
install_gemfile <<-G
source "file://#{gem_repo1}"
- gem "rack"
+ gem "activesupport"
G
bundle :lock
end
@@ -80,23 +80,19 @@
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
Please sign in to comment.
Something went wrong with that request. Please try again.