mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Skip fcgi dispatcher tests if fcgi lib isn't available
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user