diff options
-rw-r--r-- | railties/test/fcgi_dispatcher_test.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/railties/test/fcgi_dispatcher_test.rb b/railties/test/fcgi_dispatcher_test.rb index 607e15d912..37bf4c8641 100644 --- a/railties/test/fcgi_dispatcher_test.rb +++ b/railties/test/fcgi_dispatcher_test.rb @@ -2,8 +2,7 @@ require File.dirname(__FILE__) + "/abstract_unit" begin # rescue LoadError -require 'mocha' -require 'stubba' +require_library_or_gem 'mocha' $:.unshift File.dirname(__FILE__) + "/mocks" @@ -261,6 +260,6 @@ class RailsFCGIHandlerPeriodicGCTest < Test::Unit::TestCase 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
\ No newline at end of file |