Skip to content

Commit

Permalink
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -9,6 +9,35 @@
def Minitest.load_plugins
end
require 'active_support/testing/isolation'
module ActiveSupport
module Testing
module Isolation
def run
with_info_handler do
time_it do
capture_exceptions do
before_setup; setup; after_setup
skip 'isolation not supported'
end
%w{ before_teardown teardown after_teardown }.each do |hook|
capture_exceptions do
self.send hook
end
end
end
end
return self # per contract
end
end
end
end
# Work around a bug in ActiveSupport whereby it tries to pass an env hash with Symbol keys. This only
# works on JRuby 1.7. The following will allow the Symbol keys to coerce to Strings.
class Symbol

0 comments on commit cc5c39e

Please sign in to comment.