Skip to content

Commit e081211

Browse files
committed
Update Minitest and properly use it.
1 parent 89f8022 commit e081211

10 files changed

+12
-15
lines changed

Rakefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# frozen_string_literal: true
22

33
require 'bundler/gem_tasks'
4-
require 'rake/testtask'
4+
require 'minitest/test_task'
55
require 'rubocop/rake_task'
66

77
task default: :test
88

9-
Rake::TestTask.new(:test) do |t|
10-
t.libs << 'test'
11-
t.libs << 'lib'
12-
t.test_files = FileList['test/**/*_test.rb']
9+
Minitest::TestTask.create do |test|
10+
test.framework = 'require "simplecov"'
11+
test.test_globs = 'test/**/*_test.rb'
1312
end
1413

1514
RuboCop::RakeTask.new

rubyzip-bzip2.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
3535
spec.add_dependency 'ffi', '~> 1.0'
3636
spec.add_dependency 'rubyzip', '~> 3.0.0'
3737

38-
spec.add_development_dependency 'minitest', '~> 5.15'
38+
spec.add_development_dependency 'minitest', '~> 5.25'
3939
spec.add_development_dependency 'rake', '~> 13.2'
4040
spec.add_development_dependency 'rubocop', '~> 1.61.0'
4141
spec.add_development_dependency 'rubocop-performance', '~> 1.20.0'

test/integration/zip_file_bzip2_support_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'test_helper'
44

5-
class ZipFileBzip2SupportTest < MiniTest::Test
5+
class ZipFileBzip2SupportTest < Minitest::Test
66
BZIP2_ZIP_FILE = 'test/data/zipWithBzip2Compression.zip'
77
FILE1 = 'test/data/file1.txt'
88
FILE2 = 'test/data/file2.txt'

test/integration/zip_input_stream_bzip2_support_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'test_helper'
44

5-
class ZipInputStreamBzip2SupportTest < MiniTest::Test
5+
class ZipInputStreamBzip2SupportTest < Minitest::Test
66
FILE1 = 'test/data/file1.txt'
77
FILE2 = 'test/data/file2.txt'
88
BZIP2_ZIP_FILE = 'test/data/zipWithBzip2Compression.zip'

test/models/zip/bzip2/decompress_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'test_helper'
44

5-
class DecompressTest < MiniTest::Test
5+
class DecompressTest < Minitest::Test
66
FILE = 'test/data/file1.txt'
77
BZIP2_FILE = 'test/data/file1.txt.bz2'
88

test/models/zip/bzip2/decompressor_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'test_helper'
44

5-
class DecompressorTest < MiniTest::Test
5+
class DecompressorTest < Minitest::Test
66
FILE1 = 'test/data/file1.txt'
77
BZIP2_FILE = 'test/data/file1.txt.bz2'
88
BZIP2_FILE_CORRUPT = 'test/data/file1.txt.corrupt.bz2'

test/models/zip/bzip2/errors_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'test_helper'
44

5-
class ErrorsTest < MiniTest::Test
5+
class ErrorsTest < Minitest::Test
66
def test_bzip2_error
77
assert_raises(Zip::Bzip2::Error) do
88
raise ::Zip::Bzip2::Error

test/models/zip/bzip2/libbz2_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'test_helper'
44

5-
class Libbz2Test < MiniTest::Test
5+
class Libbz2Test < Minitest::Test
66
FILE = 'test/data/file1.txt'
77
BZIP2_FILE = 'test/data/file1.txt.bz2'
88

test/models/zip/bzip2/version_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'test_helper'
44

5-
class VersionTest < MiniTest::Test
5+
class VersionTest < Minitest::Test
66
def test_version
77
# Ensure all our versions numbers have at least MAJOR.MINOR.PATCH
88
# elements separated by dots, to comply with Semantic Versioning.

test/test_helper.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# frozen_string_literal: true
22

3-
require 'simplecov'
43
require 'minitest/autorun'
5-
require 'minitest/unit'
64
require 'zip/bzip2'
75

86
if defined? JRUBY_VERSION

0 commit comments

Comments
 (0)