test-unit / test-unit-activesupport

ActiveSupport adapter for test-unit 3.
GNU Lesser General Public License v2.1
5 stars 5 forks source link

Fails with activesupport 2.3 #2

Closed grosser closed 12 years ago

grosser commented 12 years ago

test-unit 2.5.1 + activesupport 2.3

bin/rake test
/Users/mgrosser/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -I"lib:lib:test" -I"/Users/mgrosser/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib" "/Users/mgrosser/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/**/*_test.rb" 
/Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-activesupport-1.0.0/lib/test/unit/active_support.rb:26:in `remove_method': method `setup' not defined in ActiveSupport::Testing::SetupAndTeardown::ClassMethods (NameError)
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-activesupport-1.0.0/lib/test/unit/active_support.rb:26:in `<module:ClassMethods>'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-activesupport-1.0.0/lib/test/unit/active_support.rb:25:in `<module:SetupAndTeardown>'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194/gems/test-unit-activesupport-1.0.0/lib/test/unit/active_support.rb:24:in `<top (required)>'
    from /Users/mgrosser/code/zendesk/core/test/helper.rb:9:in `require'
    from /Users/mgrosser/code/zendesk/core/test/helper.rb:9:in `<top (required)>'
    from /Users/mgrosser/code/zendesk/core/test/arturo_features_test.rb:1:in `require'
    from /Users/mgrosser/code/zendesk/core/test/arturo_features_test.rb:1:in `<top (required)>'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:10:in `require'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9:in `each'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9:in `block in <main>'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4:in `select'
    from /Users/mgrosser/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4:in `<main>'
rake aborted!
kou commented 12 years ago

Could you try test-unit-activesupport 1.0.1? It will fix the problem.

grosser commented 12 years ago

Works! Thanks!

grosser commented 12 years ago

FYI: tried to remove test-unit-activesupport and everything still works (dots+color+colorful-error diff) so not sure if this is still necessary or if I just don't know all it's usefulness

kou commented 12 years ago

Thanks for confirming! If you have Mocha in your gem set, you will have a problem without test-unit-activesupport. The problem will be fixed freerange/mocha#89 is merged.