Skip to content

Commit 098295f

Browse files
ivoanjonobu
authored andcommitted
Avoid built-in old test-unit
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.
1 parent 1773502 commit 098295f

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

gems.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://rubygems.org'
2+
3+
gemspec

ruby2_keywords.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ Gem::Specification.new do |s|
1919
s.files = [
2020
"lib/ruby2_keywords.rb",
2121
]
22+
s.add_development_dependency 'test-unit', '>= 2.2'
23+
s.add_development_dependency 'rake'
2224
end

0 commit comments

Comments
 (0)