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

Make tests run with mocha gem

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7552 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2007-09-22 17:48:54 +00:00
parent c361caf8b4
commit 9b55e3dad1

View file

@ -2,8 +2,7 @@ require File.dirname(__FILE__) + "/abstract_unit"
begin # rescue LoadError begin # rescue LoadError
require 'mocha' require_library_or_gem 'mocha'
require 'stubba'
$:.unshift File.dirname(__FILE__) + "/mocks" $:.unshift File.dirname(__FILE__) + "/mocks"
@ -261,6 +260,6 @@ class RailsFCGIHandlerPeriodicGCTest < Test::Unit::TestCase
end end
end end
rescue LoadError rescue LoadError => e
$stderr.puts "Skipping dispatcher tests. `gem install mocha` and try again." $stderr.puts "Skipping dispatcher tests. `gem install mocha` and try again. (#{e})"
end end