mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Require rubygems
This commit is contained in:
parent
aa6c7185ff
commit
b302e023b7
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue