Skip fcgi dispatcher tests if fcgi lib isn't available

This commit is contained in:
Jeremy Kemper
2008-11-24 21:47:26 -08:00
parent d40bc307f9
commit cb49681710

View File

@@ -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