Permalink
Browse files

fix integration outside of Rails

  • Loading branch information...
1 parent ee8be54 commit c0c9f31d8e29a4cc56e0a36e14fc514a4898443d @epall epall committed Dec 15, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sauce/integrations.rb
@@ -166,7 +166,7 @@ class Test::Unit::AutoRunner
@suite = @collector[self]
need_tunnel = suite.tests.any? do |test_suite|
test_suite.tests.any? do |test_case|
- [Sauce::TestCase, Sauce::RailsTestCase].include? test_case.class.superclass
+ test_case.class.superclass.to_s =~ /^Sauce::/
end
end
if need_tunnel
@@ -193,7 +193,7 @@ class Unit
define_method(:run_test_suites) do |*args|
need_tunnel = TestCase.test_suites.any? do |suite|
- [Sauce::TestCase, Sauce::RailsTestCase].include? suite.superclass
+ suite.superclass.to_s =~ /^Sauce::/
end
if need_tunnel
config = Sauce::Config.new

0 comments on commit c0c9f31

Please sign in to comment.