Skip to content
Browse files

Skip fcgi dispatcher tests if fcgi lib isn't available

  • Loading branch information...
1 parent d40bc30 commit cb4968171020bf3bb8f713cd69fe035ee5a3d608 @jeremy jeremy committed Nov 24, 2008
Showing with 4 additions and 3 deletions.
  1. +4 −3 railties/test/fcgi_dispatcher_test.rb
View
7 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 @@ def test_periodic_gc
end
end
-end # uses_mocha
+rescue LoadError => e
+ raise unless e.message =~ /fcgi/
+end

0 comments on commit cb49681

Please sign in to comment.
Something went wrong with that request. Please try again.