fix for mocha 0.12 vs 2.5.1 #35

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

grosser commented Jul 5, 2012

otherwise fails with

/Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/testsuite.rb:117:in `run_test': undefined method `responds_to?' for AccountDataCenterTest:Test::Unit::TestSuite (NoMethodError)
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/testsuite.rb:53:in `run'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/ui/testrunnermediator.rb:93:in `run_suite'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/ui/testrunnermediator.rb:43:in `block in run'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/ui/testrunnermediator.rb:82:in `with_listener'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/ui/testrunnermediator.rb:39:in `run'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/ui/testrunner.rb:40:in `start_mediator'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/ui/testrunner.rb:25:in `start'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/ui/testrunnerutilities.rb:24:in `run'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/autorunner.rb:378:in `block in run'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/autorunner.rb:434:in `change_work_directory'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/autorunner.rb:377:in `run'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit/autorunner.rb:58:in `run'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-2.5.1/lib/test/unit.rb:330:in `block in <top (required)>'
rake aborted!
Contributor

grosser commented Jul 5, 2012

please bump-patch+release after merging this, I want dots+diff without monkeypatchs asap :)

Owner

kou commented Jul 6, 2012

Could you show your test scripta that occurs the problem?
I want to confirm it on my environment.

Contributor

grosser commented Jul 6, 2012

The problem seems to be mocha 0.12.0 you can play with it here:
https://github.com/grosser/soft_deletion/tree/foo

Owner

kou commented Jul 8, 2012

Thanks for providing it. I could reproduce it on my environment.

It seems that it should be resolved in mocha not test-unit.
I submitted a pull request to mocha. :-)
freerange/mocha#89

So I'll close this issue.

kou closed this Jul 8, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment