mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Skip fcgi dispatcher tests if fcgi lib isn't available
This commit is contained in:
parent
d40bc307f9
commit
cb49681710
1 changed files with 4 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
require 'abstract_unit'
|
require 'abstract_unit'
|
||||||
|
|
||||||
uses_mocha 'fcgi dispatcher tests' do
|
begin
|
||||||
|
|
||||||
require 'fcgi_handler'
|
require 'fcgi_handler'
|
||||||
|
|
||||||
module ActionController; module Routing; module Routes; end end end
|
module ActionController; module Routing; module Routes; end end end
|
||||||
|
@ -296,4 +295,6 @@ class RailsFCGIHandlerPeriodicGCTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end # uses_mocha
|
rescue LoadError => e
|
||||||
|
raise unless e.message =~ /fcgi/
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue