Skip to content

Commit

Permalink
Make tests run with mocha gem
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7552 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Sep 22, 2007
1 parent c361caf commit 9b55e3d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions railties/test/fcgi_dispatcher_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

begin # rescue LoadError

require 'mocha'
require 'stubba'
require_library_or_gem 'mocha'

$:.unshift File.dirname(__FILE__) + "/mocks"

Expand Down Expand Up @@ -261,6 +260,6 @@ def test_periodic_gc
end
end

rescue LoadError
$stderr.puts "Skipping dispatcher tests. `gem install mocha` and try again."
rescue LoadError => e
$stderr.puts "Skipping dispatcher tests. `gem install mocha` and try again. (#{e})"
end

0 comments on commit 9b55e3d

Please sign in to comment.