sixarm_ruby_minitest_extensions 1.1.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/test/sixarm_ruby_minitest_extensions_test/assertions_test.rb +6 -6
- data/test/sixarm_ruby_minitest_extensions_test/expectations_test.rb +21 -21
- metadata +13 -34
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9239376d11a8a2c8744168ecbbff72070e48b9bda1a12ef91d117e4e04de3c8
|
4
|
+
data.tar.gz: 418461561fd5cd8f7c8bb3eecfa7f5765f049874ba51c67a2b6e2965d187b7d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2885274e3f2a2991e83906a1b7a6e3d6650400b8226d41a72ddd4d34ad0d5fe96d6adf25a1194abcb10506bad84780c1e13afba9cb1a3cd0f765397d2bac6159
|
7
|
+
data.tar.gz: 2efb327f7c3c1520dc9a519117a4b066eee5bdf7033031f728e71d467b00888861ed4ea335ee7eb6236f4d3478ed863e76914f02a07274094ce7b0ecf143bf66
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -11,7 +11,7 @@ describe "Minitest" do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
specify "truthy but not true #=> failure" do
|
14
|
-
|
14
|
+
expect {
|
15
15
|
assert_true(1)
|
16
16
|
}.must_raise MiniTest::Assertion
|
17
17
|
end
|
@@ -25,7 +25,7 @@ describe "Minitest" do
|
|
25
25
|
end
|
26
26
|
|
27
27
|
specify "falsey but not false #=> failure" do
|
28
|
-
|
28
|
+
expect {
|
29
29
|
assert_false(nil)
|
30
30
|
}.must_raise MiniTest::Assertion
|
31
31
|
end
|
@@ -47,7 +47,7 @@ describe "Minitest" do
|
|
47
47
|
end
|
48
48
|
|
49
49
|
specify "nil #=> failure" do
|
50
|
-
|
50
|
+
expect {
|
51
51
|
assert_exist(nil)
|
52
52
|
}.must_raise MiniTest::Assertion
|
53
53
|
end
|
@@ -63,7 +63,7 @@ describe "Minitest" do
|
|
63
63
|
end
|
64
64
|
|
65
65
|
it "fails" do
|
66
|
-
|
66
|
+
expect {
|
67
67
|
assert_respond_to_all("foo", [:upcase, :downcase, :INVALID])
|
68
68
|
}.must_raise MiniTest::Assertion
|
69
69
|
end
|
@@ -81,7 +81,7 @@ describe "Minitest" do
|
|
81
81
|
end
|
82
82
|
|
83
83
|
it "fails" do
|
84
|
-
|
84
|
+
expect {
|
85
85
|
assert_equal_items([:a, :b], [:a, :z])
|
86
86
|
}.must_raise MiniTest::Assertion
|
87
87
|
end
|
@@ -112,7 +112,7 @@ describe "Minitest" do
|
|
112
112
|
end
|
113
113
|
|
114
114
|
it "fails" do
|
115
|
-
|
115
|
+
expect {
|
116
116
|
assert_equal_items_by(@items_1, @items_2, :b)
|
117
117
|
}.must_raise MiniTest::Assertion
|
118
118
|
end
|
@@ -7,12 +7,12 @@ describe "Minitest" do
|
|
7
7
|
describe "#must_be_true" do
|
8
8
|
|
9
9
|
specify "true #=> success" do
|
10
|
-
true.must_be_true
|
10
|
+
expect(true).must_be_true
|
11
11
|
end
|
12
12
|
|
13
13
|
specify "truthy but not true #=> failure" do
|
14
|
-
|
15
|
-
1.must_be_true
|
14
|
+
expect {
|
15
|
+
expect(1).must_be_true
|
16
16
|
}.must_raise MiniTest::Assertion
|
17
17
|
end
|
18
18
|
|
@@ -21,12 +21,12 @@ describe "Minitest" do
|
|
21
21
|
describe "#must_be_false" do
|
22
22
|
|
23
23
|
specify "false #=> success" do
|
24
|
-
false.must_be_false
|
24
|
+
expect(false).must_be_false
|
25
25
|
end
|
26
26
|
|
27
27
|
specify "falsey but not false #=> failure" do
|
28
|
-
|
29
|
-
nil.must_be_false
|
28
|
+
expect {
|
29
|
+
expect(nil).must_be_false
|
30
30
|
}.must_raise MiniTest::Assertion
|
31
31
|
end
|
32
32
|
|
@@ -35,20 +35,20 @@ describe "Minitest" do
|
|
35
35
|
describe "#must_exist" do
|
36
36
|
|
37
37
|
specify "true #=> success" do
|
38
|
-
true.must_exist
|
38
|
+
expect(true).must_exist
|
39
39
|
end
|
40
40
|
|
41
41
|
specify "false #=> success" do
|
42
|
-
false.must_exist
|
42
|
+
expect(false).must_exist
|
43
43
|
end
|
44
44
|
|
45
45
|
specify "0 #=> success" do
|
46
|
-
false.must_exist
|
46
|
+
expect(false).must_exist
|
47
47
|
end
|
48
48
|
|
49
49
|
specify "nil #=> failure" do
|
50
|
-
|
51
|
-
nil.must_exist
|
50
|
+
expect {
|
51
|
+
expect(nil).must_exist
|
52
52
|
}.must_raise MiniTest::Assertion
|
53
53
|
end
|
54
54
|
|
@@ -59,12 +59,12 @@ describe "Minitest" do
|
|
59
59
|
describe "smoke test with some string methods" do
|
60
60
|
|
61
61
|
it "works" do
|
62
|
-
"foo".must_respond_to_all [:upcase, :downcase, :swapcase]
|
62
|
+
expect("foo").must_respond_to_all [:upcase, :downcase, :swapcase]
|
63
63
|
end
|
64
64
|
|
65
65
|
it "fails" do
|
66
|
-
|
67
|
-
"foo".must_respond_to_all [:upcase, :downcase, :INVALID]
|
66
|
+
expect {
|
67
|
+
expect("foo").must_respond_to_all [:upcase, :downcase, :INVALID]
|
68
68
|
}.must_raise MiniTest::Assertion
|
69
69
|
end
|
70
70
|
|
@@ -77,12 +77,12 @@ describe "Minitest" do
|
|
77
77
|
describe "smoke test with some items" do
|
78
78
|
|
79
79
|
it "works" do
|
80
|
-
[:a, :b].must_have_equal_items [:b, :a]
|
80
|
+
expect([:a, :b]).must_have_equal_items [:b, :a]
|
81
81
|
end
|
82
82
|
|
83
83
|
it "fails" do
|
84
|
-
|
85
|
-
[:a, :b].must_have_equal_items [:a, :z]
|
84
|
+
expect {
|
85
|
+
expect([:a, :b]).must_have_equal_items [:a, :z]
|
86
86
|
}.must_raise MiniTest::Assertion
|
87
87
|
end
|
88
88
|
|
@@ -92,7 +92,7 @@ describe "Minitest" do
|
|
92
92
|
|
93
93
|
describe "#must_have_equal_items_by" do
|
94
94
|
|
95
|
-
class C
|
95
|
+
class self::C
|
96
96
|
attr_accessor :a, :b
|
97
97
|
def initialize(a: nil, b: nil)
|
98
98
|
self.a = a
|
@@ -103,8 +103,8 @@ describe "Minitest" do
|
|
103
103
|
describe "smoke test with some items" do
|
104
104
|
|
105
105
|
before do
|
106
|
-
@items_1 = [C.new(a: "alpha", b: "bravo_1")]
|
107
|
-
@items_2 = [C.new(a: "alpha", b: "bravo_2")]
|
106
|
+
@items_1 = [self.class::C.new(a: "alpha", b: "bravo_1")]
|
107
|
+
@items_2 = [self.class::C.new(a: "alpha", b: "bravo_2")]
|
108
108
|
end
|
109
109
|
|
110
110
|
it "works" do
|
@@ -112,7 +112,7 @@ describe "Minitest" do
|
|
112
112
|
end
|
113
113
|
|
114
114
|
it "fails" do
|
115
|
-
|
115
|
+
expect {
|
116
116
|
expect(@items_1).must_have_equal_items_by @items_2, :b
|
117
117
|
}.must_raise MiniTest::Assertion
|
118
118
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sixarm_ruby_minitest_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SixArm
|
@@ -39,7 +39,7 @@ cert_chain:
|
|
39
39
|
tzpk/VnZXj7Ek/earx+N/Z+Wtnl2xENm5IF8SFPeI1HFa9NH47pqtxF1YKpNIEVc
|
40
40
|
2xa2BNHSePe7tys/2hbmZuyMu8X5ERmovsabSXB3a+YwtJh5c2jhA21wF7986s0q
|
41
41
|
-----END CERTIFICATE-----
|
42
|
-
date:
|
42
|
+
date: 2019-10-02 00:00:00.000000000 Z
|
43
43
|
dependencies:
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: minitest
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
requirements:
|
48
48
|
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: 5.
|
50
|
+
version: 5.12.2
|
51
51
|
- - "<"
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '6'
|
@@ -57,57 +57,37 @@ dependencies:
|
|
57
57
|
requirements:
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 5.
|
60
|
+
version: 5.12.2
|
61
61
|
- - "<"
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '6'
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
65
|
name: rake
|
66
|
-
requirement: !ruby/object:Gem::Requirement
|
67
|
-
requirements:
|
68
|
-
- - ">"
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: 9.4.2
|
71
|
-
- - "<"
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version: '11'
|
74
|
-
type: :development
|
75
|
-
prerelease: false
|
76
|
-
version_requirements: !ruby/object:Gem::Requirement
|
77
|
-
requirements:
|
78
|
-
- - ">"
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: 9.4.2
|
81
|
-
- - "<"
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '11'
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: simplecov
|
86
66
|
requirement: !ruby/object:Gem::Requirement
|
87
67
|
requirements:
|
88
68
|
- - ">="
|
89
69
|
- !ruby/object:Gem::Version
|
90
|
-
version: 0.
|
70
|
+
version: 13.0.0
|
91
71
|
- - "<"
|
92
72
|
- !ruby/object:Gem::Version
|
93
|
-
version: '
|
73
|
+
version: '14'
|
94
74
|
type: :development
|
95
75
|
prerelease: false
|
96
76
|
version_requirements: !ruby/object:Gem::Requirement
|
97
77
|
requirements:
|
98
78
|
- - ">="
|
99
79
|
- !ruby/object:Gem::Version
|
100
|
-
version: 0.
|
80
|
+
version: 13.0.0
|
101
81
|
- - "<"
|
102
82
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
83
|
+
version: '14'
|
104
84
|
- !ruby/object:Gem::Dependency
|
105
|
-
name:
|
85
|
+
name: simplecov
|
106
86
|
requirement: !ruby/object:Gem::Requirement
|
107
87
|
requirements:
|
108
88
|
- - ">="
|
109
89
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
90
|
+
version: 0.17.1
|
111
91
|
- - "<"
|
112
92
|
- !ruby/object:Gem::Version
|
113
93
|
version: '2'
|
@@ -117,7 +97,7 @@ dependencies:
|
|
117
97
|
requirements:
|
118
98
|
- - ">="
|
119
99
|
- !ruby/object:Gem::Version
|
120
|
-
version: 0.
|
100
|
+
version: 0.17.1
|
121
101
|
- - "<"
|
122
102
|
- !ruby/object:Gem::Version
|
123
103
|
version: '2'
|
@@ -151,15 +131,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
151
131
|
requirements:
|
152
132
|
- - ">="
|
153
133
|
- !ruby/object:Gem::Version
|
154
|
-
version: '2.
|
134
|
+
version: '2.5'
|
155
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
136
|
requirements:
|
157
137
|
- - ">="
|
158
138
|
- !ruby/object:Gem::Version
|
159
139
|
version: '0'
|
160
140
|
requirements: []
|
161
|
-
|
162
|
-
rubygems_version: 2.7.6
|
141
|
+
rubygems_version: 3.0.6
|
163
142
|
signing_key:
|
164
143
|
specification_version: 4
|
165
144
|
summary: SixArm.com → Ruby → Minitest extensions
|
metadata.gz.sig
CHANGED
Binary file
|