Skip to content

Commit

Permalink
Tightening the condition for including ActiveSupport::Testing::SetupA…
Browse files Browse the repository at this point in the history
…ndTeardown::ForMiniTest.

[#1871 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
mhennemeyer authored and jeremy committed Feb 6, 2009
1 parent a4790e9 commit 86dd2f8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -8,7 +8,7 @@ def self.included(base)
include ActiveSupport::Callbacks
define_callbacks :setup, :teardown

if defined? MiniTest
if defined?(MiniTest::Assertions) && TestCase < MiniTest::Assertions
include ForMiniTest
else
include ForClassicTestUnit
Expand Down

0 comments on commit 86dd2f8

Please sign in to comment.