1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Require rubygems

This commit is contained in:
Jeremy Kemper 2009-02-03 18:57:01 -08:00
parent aa6c7185ff
commit b302e023b7
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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