Skip to content

Commit

Permalink
Avoid built-in old test-unit
Browse files Browse the repository at this point in the history
In Ruby <= 2.1, `test-unit` was shipped with Ruby itself (unbundling
was done for 2.2 -- see <https://bugs.ruby-lang.org/issues/9711>).

The `test-unit` version shipped with 2.1 breaks some of the tests.
To fix this, I've added the minimum needed version explicitly to the
`gemspec`, as well as added a `gems.rb` for allowing the use of
`bundler` to run the tests and ensure the correct `test-unit` is used.
  • Loading branch information
ivoanjo authored and nobu committed Feb 9, 2021
1 parent 1773502 commit 098295f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gems.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'

gemspec
2 changes: 2 additions & 0 deletions ruby2_keywords.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ Gem::Specification.new do |s|
s.files = [
"lib/ruby2_keywords.rb",
]
s.add_development_dependency 'test-unit', '>= 2.2'
s.add_development_dependency 'rake'
end

0 comments on commit 098295f

Please sign in to comment.