Skip to content

Commit

Permalink
Skip fcgi dispatcher tests if fcgi lib isn't available
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Nov 25, 2008
1 parent d40bc30 commit cb49681
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions 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
Expand Down Expand Up @@ -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.