Skip to content

Commit 125b59a

Browse files
committed
Add a test to ensure correct version number format.
1 parent 65cd2b4 commit 125b59a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/models/zip/bzip2/version_test.rb

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# frozen_string_literal: true
2+
3+
require 'test_helper'
4+
5+
class VersionTest < MiniTest::Test
6+
def test_version
7+
# Ensure all our versions numbers have at least MAJOR.MINOR.PATCH
8+
# elements separated by dots, to comply with Semantic Versioning.
9+
assert_match(/^\d+\.\d+\.\d+/, Zip::Bzip2::VERSION)
10+
end
11+
end

0 commit comments

Comments
 (0)