Skip to content
Browse files

Remove automatic rubygems loading from AS test runner

  • Loading branch information...
1 parent 335c0e6 commit 94058c689a1ad74ccc6df2732c360fcdea267cae @josh josh committed Nov 9, 2009
Showing with 1 addition and 9 deletions.
  1. +1 −9 activesupport/test/abstract_unit.rb
View
10 activesupport/test/abstract_unit.rb
@@ -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'

2 comments on commit 94058c6

@chrisk
chrisk commented on 94058c6 Nov 14, 2009

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
chrisk commented on 94058c6 Nov 15, 2009

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.
Something went wrong with that request. Please try again.