diff --git a/actionmailer/test/abstract_unit.rb b/actionmailer/test/abstract_unit.rb index c8e9fc789a..51b375fef3 100644 --- a/actionmailer/test/abstract_unit.rb +++ b/actionmailer/test/abstract_unit.rb @@ -1,3 +1,4 @@ +require 'rubygems' require 'test/unit' gem 'mocha', '>= 0.9.5' @@ -46,7 +47,6 @@ class Net::SMTP end def uses_gem(gem_name, test_name, version = '> 0') - require 'rubygems' gem gem_name.to_s, version require gem_name.to_s yield diff --git a/activeresource/test/abstract_unit.rb b/activeresource/test/abstract_unit.rb index 667a7b2a37..83bf1ed510 100644 --- a/activeresource/test/abstract_unit.rb +++ b/activeresource/test/abstract_unit.rb @@ -1,3 +1,4 @@ +require 'rubygems' require 'test/unit' gem 'mocha', '>= 0.9.5' @@ -13,7 +14,6 @@ require 'setter_trap' ActiveResource::Base.logger = Logger.new("#{File.dirname(__FILE__)}/debug.log") def uses_gem(gem_name, test_name, version = '> 0') - require 'rubygems' gem gem_name.to_s, version require gem_name.to_s yield