Skip to content

Commit

Permalink
Remove automatic rubygems loading from AS test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Nov 10, 2009
1 parent 335c0e6 commit 94058c6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions activesupport/test/abstract_unit.rb
Expand Up @@ -7,16 +7,8 @@
$:.unshift("#{root}/activerecord/lib")
end


require 'test/unit'

begin
require 'mocha'
rescue LoadError
$stderr.puts 'Loading rubygems'
require 'rubygems'
require 'mocha'
end
require 'mocha'

ENV['NO_RELOAD'] = '1'
require 'active_support'
Expand Down

2 comments on commit 94058c6

@chrisk
Copy link
Contributor

@chrisk chrisk commented on 94058c6 Nov 14, 2009

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the recommended way to get rubygems loaded for the AS tests, now? The other components (like ActiveRecord) do a require 'rubygems' right at the top of each Rakefile, but AS doesn't.

@chrisk
Copy link
Contributor

@chrisk chrisk commented on 94058c6 Nov 15, 2009

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, we're supposed to use Bundler now. I did a gem bundle in the root and that fixed everything.

Please sign in to comment.