diff options
| author | Ken Dreyer <ktdreyer@ktdreyer.com> | 2014-04-08 11:53:20 -0500 |
|---|---|---|
| committer | Ken Dreyer <ktdreyer@ktdreyer.com> | 2014-04-08 16:38:06 -0500 |
| commit | bfa5a3e681ee1dad18a0bd800f01255065be81c7 (patch) | |
| tree | 638966ce910b8e99dba79e2d963b185e27219f0b /asciidoctor.gemspec | |
| parent | 402273b05f0e48ae4c26a977583c613b6a664f87 (diff) | |
tests: switch to minitest
Ruby 1.9+ uses Minitest as the backend for Test::Unit. As of Minitest 5,
the shim no longer supports Test::Unit::TestCase.
Adjust the test suite to support Minitest 5's syntax.
Minitest versions 4 and below do not support the newer Minitest::Test
class that arrived in version 5. For that case, use the
MiniTest::Unit::TestCase class as a fallback.
Diffstat (limited to 'asciidoctor.gemspec')
| -rw-r--r-- | asciidoctor.gemspec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asciidoctor.gemspec b/asciidoctor.gemspec index e14927f3..e52a816c 100644 --- a/asciidoctor.gemspec +++ b/asciidoctor.gemspec @@ -46,8 +46,8 @@ A fast, open source text processor and publishing toolchain, written in Ruby, fo s.add_development_dependency 'tilt', '~> 2.0.0' s.add_development_dependency 'yard', '~> 0.8.7' s.add_development_dependency 'yard-tomdoc', '~> 0.7.0' + s.add_development_dependency 'minitest', '> 0' if RUBY_VERSION == '2.1.0' && RUBY_ENGINE == 'rbx' - s.add_development_dependency 'rubysl-test-unit', '~> 2.0.1' s.add_development_dependency 'racc', '~> 1.4.10' end end |
