Permalink
Browse files

Downgrade Rubinius's test/unit gem to avoid a problem with the latest

See comment for details. The exception looks like this:

    MiniTest::Unit::TestCase is now Minitest::Test. From /Users/chrisk/.rvm/gems
    /rbx-2.2.1/gems/rubysl-test-unit-2.0.2/lib/test/unit/testcase.rb:8:in
    `__script__'
    An exception occurred running /Users/chrisk/.rvm/gems/rbx-2.2.1@global/gems
    /rake-10.1.0/lib/rake/rake_test_loader.rb:
    undefined method `_run_suite' for class `Test::Unit::Runner' (NameError)

    Backtrace:

    Module(Class)#alias_method at kernel/delta/module.rb:39
    Rubinius::ConstantScope#alias_method at kernel/common/constant_scope.rb:93
    { } in Object(Class)#__script__ at /Users/chrisk/.rvm/gems/rbx-2.2.1/gems/
                       rubysl-test-unit-2.0.2/lib/rubysl/test/unit/unit.rb:676
    ...
  • Loading branch information...
1 parent d5654c7 commit f0cd20a2aec4c97498bb5dfffa1761169870d519 @chrisk committed Nov 24, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 Gemfile
View
8 Gemfile
@@ -4,7 +4,13 @@ gemspec
# Rubinius 2.0 distributes the standard library as gems
platform :rbx do
stdlibs = %w(benchmark cgi coverage delegate erb find logger net-http open-uri
- optparse ostruct prettyprint singleton tempfile test-unit tmpdir yaml)
+ optparse ostruct prettyprint singleton tempfile tmpdir yaml)
stdlibs.each { |lib| gem "rubysl-#{lib}", "~> 2.0" }
+ # rubysl-test-unit 2.0.2's gemspec relaxed its dependency on minitest to allow
+ # any version (previously, it specified "~> 4.7"). Minitest 5 doesn't have a
+ # Test::Unit compatibility layer like 4.x, so it doesn't work with Test::Unit
+ # at all (see e.g. https://github.com/seattlerb/minitest/issues/358). So, I'm
+ # holding this one back until we find out what's going on.
+ gem "rubysl-test-unit", "2.0.1"
gem "psych", "~> 2.0"
end

0 comments on commit f0cd20a

Please sign in to comment.