Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 7290e22

Browse files
committed
Add unit tests
1 parent 30f4293 commit 7290e22

15 files changed

+12323
-1
lines changed

.github/workflows/ruby.yml

+2
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ jobs:
3232
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
3333
- name: Run lint
3434
run: bundle exec rubocop
35+
- name: Run lint
36+
run: bundle exec rubocop

Gemfile.lock

+7
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@ GEM
1717
github-markup (4.0.0)
1818
i18n (1.8.10)
1919
concurrent-ruby (~> 1.0)
20+
minitest (5.14.4)
21+
minitest-skip (0.0.3)
22+
minitest (~> 5.0)
2023
paint (2.2.1)
2124
parallel (1.20.1)
2225
parser (3.0.1.0)
2326
ast (~> 2.4.1)
2427
rainbow (3.0.0)
28+
rake (13.0.3)
2529
redcarpet (3.5.1)
2630
regexp_parser (2.1.1)
2731
rexml (3.2.5)
@@ -49,6 +53,9 @@ DEPENDENCIES
4953
bundler (>= 2.1.0, < 2.3)
5054
commonmarker (~> 0.21)
5155
github-markup (~> 4.0)
56+
minitest (~> 5.12)
57+
minitest-skip (~> 0.0)
58+
rake (~> 13.0)
5259
redcarpet (~> 3.5)
5360
rubocop (~> 1.10)
5461
tls-map!

Rakefile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# frozen_string_literal: true
2+
3+
require 'rake/testtask'
4+
5+
Rake::TestTask.new(:test) do |t|
6+
t.libs << 'test'
7+
t.libs << 'lib'
8+
t.test_files = FileList['test/**/test_*.rb']
9+
end
10+
11+
desc 'Run tests'
12+
task default: :test

docs/CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Changelog
2+
13
## [Unreleased]
24

35
## [1.2.0]
@@ -10,7 +12,11 @@ Additions:
1012

1113
Documentation:
1214

13-
- change yard doc format from rdoc to markdown
15+
- Change yard doc format from rdoc to markdown
16+
17+
Quality:
18+
19+
- Create unit tests
1420

1521
## [1.1.0]
1622

docs/pages/publishing.md

+12
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ On new release don't forget to rebuild the library documentation:
1616
$ bundle exec yard doc
1717
```
1818

19+
And to be sure all tests pass!
20+
21+
```plaintext
22+
$ rake test
23+
```
24+
1925
## On BlackArch
2026

2127
BA process
@@ -25,3 +31,9 @@ On new release don't forget to rebuild the library documentation:
2531
```plaintext
2632
$ bundle exec yard doc
2733
```
34+
35+
And to be sure all tests pass!
36+
37+
```plaintext
38+
$ rake test
39+
```

0 commit comments

Comments
 (0)