From: "Diego Petteno (flameeyes)" <flameeyes@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/activesupport/files: activesupport-2.3.5-mocha-0.9.5.patch
Date: Mon, 01 Feb 2010 16:40:29 +0000 [thread overview]
Message-ID: <E1NbzK9-0004wc-8g@stork.gentoo.org> (raw)
flameeyes 10/02/01 16:40:29
Added: activesupport-2.3.5-mocha-0.9.5.patch
Log:
Add patch to force support for mocha 0.9.5 or later, and adds support for JRuby.
(Portage version: 2.2_rc62/cvs/Linux x86_64)
Revision Changes Path
1.1 dev-ruby/activesupport/files/activesupport-2.3.5-mocha-0.9.5.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/activesupport/files/activesupport-2.3.5-mocha-0.9.5.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/activesupport/files/activesupport-2.3.5-mocha-0.9.5.patch?rev=1.1&content-type=text/plain
Index: activesupport-2.3.5-mocha-0.9.5.patch
===================================================================
Index: activesupport-2.3.5/lib/active_support/testing/setup_and_teardown.rb
===================================================================
--- activesupport-2.3.5.orig/lib/active_support/testing/setup_and_teardown.rb
+++ activesupport-2.3.5/lib/active_support/testing/setup_and_teardown.rb
@@ -45,12 +45,7 @@ module ActiveSupport
return if @method_name.to_s == "default_test"
if using_mocha = respond_to?(:mocha_verify)
- assertion_counter_klass = if defined?(Mocha::TestCaseAdapter::AssertionCounter)
- Mocha::TestCaseAdapter::AssertionCounter
- else
- Mocha::Integration::TestUnit::AssertionCounter
- end
- assertion_counter = assertion_counter_klass.new(result)
+ assertion_counter = Mocha::Integration::TestUnit::AssertionCounter.new(result)
end
yield(Test::Unit::TestCase::STARTED, name)
next reply other threads:[~2010-02-01 16:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-01 16:40 Diego Petteno (flameeyes) [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-01-09 13:03 [gentoo-commits] gentoo-x86 commit in dev-ruby/activesupport/files: activesupport-2.3.5-mocha-0.9.5.patch Hans de Graaff (graaff)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1NbzK9-0004wc-8g@stork.gentoo.org \
--to=flameeyes@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox