Skip to content

Commit

Permalink
The latest trunk of Mocha > 0.9.5 which addresses issue with MiniUnit…
Browse files Browse the repository at this point in the history
… compatibility uses namespaced integration classes.

[#2060 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
metaskills authored and jeremy committed Mar 10, 2009
1 parent 0a887e2 commit 4b4e7ca
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -45,7 +45,12 @@ def run(result)
return if @method_name.to_s == "default_test"

if using_mocha = respond_to?(:mocha_verify)
assertion_counter = Mocha::TestCaseAdapter::AssertionCounter.new(result)
assertion_counter_klass = if defined?(Mocha::TestCaseAdapter::AssertionCounter)
Mocha::TestCaseAdapter::AssertionCounter
else
Mocha::Integration::TestUnit::AssertionCounter
end
assertion_counter = assertion_counter_klass.new(result)
end

yield(Test::Unit::TestCase::STARTED, name)
Expand Down

0 comments on commit 4b4e7ca

Please sign in to comment.