spectr 0.0.0 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +39 -2
- data/bin/spectr +6 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa928d3be56ceba81cc8bbd614ef97628bd9fb7a
|
4
|
+
data.tar.gz: ccfe5db86ebfd7362ee3df93ab9286728a82febc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 889e5bfb15f59d244e95063693893502cfe69cfc58991f2d0b8f874a1c8511d73b46bd6694ee587703778eba011bb3c7ed6a1102ac4b343994900919a3a06797
|
7
|
+
data.tar.gz: ee8cf877e72a92589a12ce290bdad7d0421088f7c4392586e618eabb8ee2ad5f535e20d91c753a91a922c1a095f69cc1fc095f9c07538cc831a556cd821904d7
|
data/README.md
CHANGED
@@ -1,10 +1,47 @@
|
|
1
1
|
# Spectre
|
2
2
|
|
3
|
-
##
|
3
|
+
## Micro unit test framework
|
4
|
+
Source: https://rubygems.org/gems/spectr
|
4
5
|
|
6
|
+
Installation:
|
5
7
|
|
6
|
-
|
8
|
+
Plain:
|
7
9
|
|
8
10
|
```
|
11
|
+
gem install spectr
|
12
|
+
```
|
13
|
+
|
14
|
+
Gemfile:
|
15
|
+
```
|
16
|
+
gem 'spectr' ~> '0.0.0'
|
17
|
+
```
|
18
|
+
|
19
|
+
|
20
|
+
Example spec:
|
21
|
+
|
22
|
+
```
|
23
|
+
Spectr.test.new 'Test the builtin Integer class' do |test|
|
9
24
|
|
25
|
+
int = 1
|
26
|
+
|
27
|
+
test.assume('int inherits from Integer', true) do
|
28
|
+
int.is_a?(Integer)
|
29
|
+
end
|
30
|
+
|
31
|
+
test.assume('int is 1', 1) do
|
32
|
+
int
|
33
|
+
end
|
34
|
+
|
35
|
+
test.assume('addition works', 2) do
|
36
|
+
int + 1
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
40
|
+
```
|
41
|
+
|
42
|
+
Usage `spectr PATH`:
|
43
|
+
|
44
|
+
```
|
45
|
+
spectr . # Will execute all tests in the current dir
|
46
|
+
spectr spec/** # Will execute all tests within all subdirectorys
|
10
47
|
```
|
data/bin/spectr
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spectr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Niklas Hanft
|
@@ -12,11 +12,13 @@ date: 2017-12-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
13
13
|
description: Micro unit test framework
|
14
14
|
email: niklas.hanft@outlook.com
|
15
|
-
executables:
|
15
|
+
executables:
|
16
|
+
- spectr
|
16
17
|
extensions: []
|
17
18
|
extra_rdoc_files: []
|
18
19
|
files:
|
19
20
|
- README.md
|
21
|
+
- bin/spectr
|
20
22
|
homepage: http://rubygems.org/gems/spectr
|
21
23
|
licenses:
|
22
24
|
- MIT
|