Minitest 5+ compatibility
Closed this issue · 1 comments
xaviershay commented
> bundle
Resolving dependencies...
Using fivemat 1.2.1
Using minitest 5.3.1
Using bundler 1.6.0
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
> bundle exec ruby test.rb
/Users/xavier/.gem/ruby/2.1.0/gems/fivemat-1.2.1/lib/fivemat/minitest.rb:3:in `<top (required)>': undefined method `runner=' for Minitest::Unit:Class (NoMethodError)
from /Users/xavier/.gem/ruby/2.1.0/gems/fivemat-1.2.1/lib/fivemat/minitest/autorun.rb:2:in `require'
from /Users/xavier/.gem/ruby/2.1.0/gems/fivemat-1.2.1/lib/fivemat/minitest/autorun.rb:2:in `<top (required)>'
from test.rb:1:in `require'
from test.rb:1:in `<main>'
Using the following files:
source 'https://rubygems.org'
gem 'fivemat'
gem 'minitest', '~> 5'
require 'fivemat/minitest/autorun'
class TestWorking < MiniTest::Unit::TestCase
def test_works
assert_equal 1, 1
end
end
Changing ~> 5
to ~> 4
(or using the version bundled in stdlib) works fine.
I'm not going to be fixing this because I don't use minitest. I noticed it while testing some RSpec changes hadn't broken anything.
tpope commented
Thanks for the heads up. I hope Cucumber has some breaking changes in the works too.