diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-24 21:47:26 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-24 21:47:26 -0800 |
commit | cb4968171020bf3bb8f713cd69fe035ee5a3d608 (patch) | |
tree | d1b8badb4cdd3c98a60dfb5a47e05f3af55b32b5 /railties/test/fcgi_dispatcher_test.rb | |
parent | d40bc307f9cc5836a3eb22e0cbdb612eaaf2bc04 (diff) | |
download | rails-cb4968171020bf3bb8f713cd69fe035ee5a3d608.tar.gz rails-cb4968171020bf3bb8f713cd69fe035ee5a3d608.tar.bz2 rails-cb4968171020bf3bb8f713cd69fe035ee5a3d608.zip |
Skip fcgi dispatcher tests if fcgi lib isn't available
Diffstat (limited to 'railties/test/fcgi_dispatcher_test.rb')
-rw-r--r-- | railties/test/fcgi_dispatcher_test.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/railties/test/fcgi_dispatcher_test.rb b/railties/test/fcgi_dispatcher_test.rb index 64d054d45c..cc054c24aa 100644 --- a/railties/test/fcgi_dispatcher_test.rb +++ b/railties/test/fcgi_dispatcher_test.rb @@ -1,7 +1,6 @@ require 'abstract_unit' -uses_mocha 'fcgi dispatcher tests' do - +begin require 'fcgi_handler' module ActionController; module Routing; module Routes; end end end @@ -296,4 +295,6 @@ class RailsFCGIHandlerPeriodicGCTest < Test::Unit::TestCase end end -end # uses_mocha +rescue LoadError => e + raise unless e.message =~ /fcgi/ +end |