Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with minitest gem? #1

Open
korny opened this issue Jan 26, 2014 · 2 comments
Open

Incompatible with minitest gem? #1

korny opened this issue Jan 26, 2014 · 2 comments

Comments

@korny
Copy link

korny commented Jan 26, 2014

When I ran rspec, I got:

Warning: you should require 'minitest/autorun' instead.
From /Users/murphy/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /Users/murphy/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /Users/murphy/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/test/unit.rb:3:in `<top (required)>'
  /Users/murphy/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /Users/murphy/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /Users/murphy/ruby/rspec_kata/spec/reservation_service_spec.rb:1:in `<top (required)>'
  /Users/murphy/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.4/lib/rspec/core/configuration.rb:896:in `load'
  /Users/murphy/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.4/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
  /Users/murphy/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.4/lib/rspec/core/configuration.rb:896:in `each'
  /Users/murphy/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.4/lib/rspec/core/configuration.rb:896:in `load_spec_files'
  /Users/murphy/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.4/lib/rspec/core/command_line.rb:22:in `run'
  /Users/murphy/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.4/lib/rspec/core/runner.rb:80:in `run'
  /Users/murphy/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.4/lib/rspec/core/runner.rb:17:in `block in autorun'
MiniTest::Unit::TestCase is now Minitest::Test. From /Users/murphy/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/test/unit/testcase.rb:8:in `<module:Unit>'
/Users/murphy/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/test/unit.rb:670:in `<class:Runner>': undefined method `_run_suite' for class `Test::Unit::Runner' (NameError)
    from /Users/murphy/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/test/unit.rb:255:in `<module:Unit>'
    from /Users/murphy/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/test/unit.rb:9:in `<module:Test>'
    from /Users/murphy/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/test/unit.rb:8:in `<top (required)>'
    from /Users/murphy/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/murphy/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/murphy/ruby/rspec_kata/spec/reservation_service_spec.rb:1:in `<top (required)>'
    from /Users/murphy/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.4/lib/rspec/core/configuration.rb:896:in `load'
    from /Users/murphy/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.4/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
    from /Users/murphy/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.4/lib/rspec/core/configuration.rb:896:in `each'
    from /Users/murphy/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.4/lib/rspec/core/configuration.rb:896:in `load_spec_files'
    from /Users/murphy/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.4/lib/rspec/core/command_line.rb:22:in `run'
    from /Users/murphy/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.4/lib/rspec/core/runner.rb:80:in `run'
    from /Users/murphy/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.4/lib/rspec/core/runner.rb:17:in `block in autorun'

Uninstalling all minitest gems fixed this.

@holsky
Copy link
Contributor

holsky commented Jan 26, 2014

Thanks for posting the solution!
Frankly, I just tested it with Ruby 1.9.x. Maybe we can look into it tomorrow :-)

@duboviy
Copy link

duboviy commented Feb 10, 2017

Try to run with minitest 4.7.5 version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants