minitest-spec-rails 6.0.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +5 -6
- data/Rakefile +2 -1
- data/gemfiles/rails_v5.1.x.gemfile.lock +12 -12
- data/gemfiles/rails_v5.2.x.gemfile.lock +49 -49
- data/gemfiles/rails_v6.0.x.gemfile.lock +65 -65
- data/lib/minitest-spec-rails/version.rb +1 -1
- data/minitest-spec-rails.gemspec +1 -1
- data/test/dummy_app/app/assets/config/manifest.js +1 -0
- data/test/dummy_app/init.rb +11 -2
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75eddf946debf7b03677128371dbd8ee063d8e1977a5e29cb2fee6da332cc1eb
|
4
|
+
data.tar.gz: 6573b0a84d2e8a80b1256aa6ce6abc066bfea1e0c080abaaf594285a38c4864b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 304f971b4d656d9a00649494aecb4784ee7477b4f60ff02008f68b59f6932ca33f1fbf1c332123f825cb1511b10056c40beafd308840e9012358a2b5f0e90bac
|
7
|
+
data.tar.gz: ce907f266e7e9ce2e3a59c604853d44b03ef89ff6bf2289108ef3101b4b6e374710e470c8091b83ae30514d56f76c9f90fb09ea38f224edf8be34109f460ed54
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
<img src="https://user-images.githubusercontent.com/2381/34084174-246174da-e34a-11e7-9d36-94c9cde7b63d.png" width="233" height="154"
|
1
|
+
<a href="https://dhh.dk/2012/rails-is-omakase.html"><img src="https://user-images.githubusercontent.com/2381/34084174-246174da-e34a-11e7-9d36-94c9cde7b63d.png" width="233" height="154" /></a>
|
2
2
|
|
3
3
|
# Make Rails Use MiniTest::Spec!
|
4
|
-
|
4
|
+
##### https://dhh.dk/2012/rails-is-omakase.html
|
5
5
|
|
6
6
|
The minitest-spec-rails gem makes it easy to use the MiniTest::Spec DSL within your existing Rails 2.3, 3.x or 4.x test suite. It does this by forcing ActiveSupport::TestCase to utilize the MiniTest::Spec::DSL.
|
7
7
|
|
@@ -274,7 +274,9 @@ $ bundle exec appraisal rake test
|
|
274
274
|
We use the [appraisal](https://github.com/thoughtbot/appraisal) gem from Thoughtbot to help us generate the individual gemfiles for each Rails version and to run the tests locally against each generated Gemfile. The `rake appraisal test` command actually runs our test suite against all Rails versions in our `Appraisal` file. If you want to run the tests for a specific Rails version, use `bundle exec appraisal -h` for a list. For example, the following command will run the tests for Rails 4.1 only.
|
275
275
|
|
276
276
|
```shell
|
277
|
-
$ bundle exec appraisal
|
277
|
+
$ bundle exec appraisal rails-v5.1.x rake test
|
278
|
+
$ bundle exec appraisal rails-v5.2.x rake test
|
279
|
+
$ bundle exec appraisal rails-v6.0.x rake test
|
278
280
|
```
|
279
281
|
|
280
282
|
We have a few branches for each major Rails version.
|
@@ -282,6 +284,3 @@ We have a few branches for each major Rails version.
|
|
282
284
|
* [2-3-stable](https://github.com/metaskills/minitest-spec-rails/tree/2-3-stable) - Tracks Rails 2.3.x with MiniTest 4.x.
|
283
285
|
* [3-x-stable](https://github.com/metaskills/minitest-spec-rails/tree/3-x-stable) - Oddly tracks Rails 3.x and 4.0 with MiniTest 4.x.
|
284
286
|
* master - Currently tracks Rails 4.1 which uses Minitest 5.0.
|
285
|
-
|
286
|
-
Our current build status is:
|
287
|
-
[![Build Status](https://secure.travis-ci.org/metaskills/minitest-spec-rails.svg)](http://travis-ci.org/metaskills/minitest-spec-rails)
|
data/Rakefile
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
minitest-spec-rails (6.0.
|
4
|
+
minitest-spec-rails (6.0.1)
|
5
5
|
minitest (>= 5.0)
|
6
|
-
|
6
|
+
railties (>= 4.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -52,13 +52,13 @@ GEM
|
|
52
52
|
arel (8.0.0)
|
53
53
|
builder (3.2.3)
|
54
54
|
concurrent-ruby (1.1.5)
|
55
|
-
crass (1.0.
|
56
|
-
erubi (1.
|
55
|
+
crass (1.0.5)
|
56
|
+
erubi (1.9.0)
|
57
57
|
globalid (0.4.2)
|
58
58
|
activesupport (>= 4.2.0)
|
59
|
-
i18n (1.
|
59
|
+
i18n (1.7.0)
|
60
60
|
concurrent-ruby (~> 1.0)
|
61
|
-
loofah (2.
|
61
|
+
loofah (2.4.0)
|
62
62
|
crass (~> 1.0.2)
|
63
63
|
nokogiri (>= 1.5.9)
|
64
64
|
mail (2.7.1)
|
@@ -67,8 +67,8 @@ GEM
|
|
67
67
|
mini_mime (1.0.2)
|
68
68
|
mini_portile2 (2.4.0)
|
69
69
|
minitest (5.10.1)
|
70
|
-
nio4r (2.5.
|
71
|
-
nokogiri (1.10.
|
70
|
+
nio4r (2.5.2)
|
71
|
+
nokogiri (1.10.5)
|
72
72
|
mini_portile2 (~> 2.4.0)
|
73
73
|
rack (2.0.7)
|
74
74
|
rack-test (1.1.0)
|
@@ -88,16 +88,16 @@ GEM
|
|
88
88
|
rails-dom-testing (2.0.3)
|
89
89
|
activesupport (>= 4.2.0)
|
90
90
|
nokogiri (>= 1.6)
|
91
|
-
rails-html-sanitizer (1.
|
92
|
-
loofah (~> 2.
|
91
|
+
rails-html-sanitizer (1.3.0)
|
92
|
+
loofah (~> 2.3)
|
93
93
|
railties (5.1.7)
|
94
94
|
actionpack (= 5.1.7)
|
95
95
|
activesupport (= 5.1.7)
|
96
96
|
method_source
|
97
97
|
rake (>= 0.8.7)
|
98
98
|
thor (>= 0.18.1, < 2.0)
|
99
|
-
rake (
|
100
|
-
sprockets (
|
99
|
+
rake (13.0.1)
|
100
|
+
sprockets (4.0.0)
|
101
101
|
concurrent-ruby (~> 1.0)
|
102
102
|
rack (> 1, < 3)
|
103
103
|
sprockets-rails (3.2.1)
|
@@ -1,50 +1,50 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
minitest-spec-rails (6.0.
|
4
|
+
minitest-spec-rails (6.0.1)
|
5
5
|
minitest (>= 5.0)
|
6
|
-
|
6
|
+
railties (>= 4.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actioncable (5.2.
|
12
|
-
actionpack (= 5.2.
|
11
|
+
actioncable (5.2.4)
|
12
|
+
actionpack (= 5.2.4)
|
13
13
|
nio4r (~> 2.0)
|
14
14
|
websocket-driver (>= 0.6.1)
|
15
|
-
actionmailer (5.2.
|
16
|
-
actionpack (= 5.2.
|
17
|
-
actionview (= 5.2.
|
18
|
-
activejob (= 5.2.
|
15
|
+
actionmailer (5.2.4)
|
16
|
+
actionpack (= 5.2.4)
|
17
|
+
actionview (= 5.2.4)
|
18
|
+
activejob (= 5.2.4)
|
19
19
|
mail (~> 2.5, >= 2.5.4)
|
20
20
|
rails-dom-testing (~> 2.0)
|
21
|
-
actionpack (5.2.
|
22
|
-
actionview (= 5.2.
|
23
|
-
activesupport (= 5.2.
|
21
|
+
actionpack (5.2.4)
|
22
|
+
actionview (= 5.2.4)
|
23
|
+
activesupport (= 5.2.4)
|
24
24
|
rack (~> 2.0)
|
25
25
|
rack-test (>= 0.6.3)
|
26
26
|
rails-dom-testing (~> 2.0)
|
27
27
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
28
|
-
actionview (5.2.
|
29
|
-
activesupport (= 5.2.
|
28
|
+
actionview (5.2.4)
|
29
|
+
activesupport (= 5.2.4)
|
30
30
|
builder (~> 3.1)
|
31
31
|
erubi (~> 1.4)
|
32
32
|
rails-dom-testing (~> 2.0)
|
33
33
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
34
|
-
activejob (5.2.
|
35
|
-
activesupport (= 5.2.
|
34
|
+
activejob (5.2.4)
|
35
|
+
activesupport (= 5.2.4)
|
36
36
|
globalid (>= 0.3.6)
|
37
|
-
activemodel (5.2.
|
38
|
-
activesupport (= 5.2.
|
39
|
-
activerecord (5.2.
|
40
|
-
activemodel (= 5.2.
|
41
|
-
activesupport (= 5.2.
|
37
|
+
activemodel (5.2.4)
|
38
|
+
activesupport (= 5.2.4)
|
39
|
+
activerecord (5.2.4)
|
40
|
+
activemodel (= 5.2.4)
|
41
|
+
activesupport (= 5.2.4)
|
42
42
|
arel (>= 9.0)
|
43
|
-
activestorage (5.2.
|
44
|
-
actionpack (= 5.2.
|
45
|
-
activerecord (= 5.2.
|
43
|
+
activestorage (5.2.4)
|
44
|
+
actionpack (= 5.2.4)
|
45
|
+
activerecord (= 5.2.4)
|
46
46
|
marcel (~> 0.3.1)
|
47
|
-
activesupport (5.2.
|
47
|
+
activesupport (5.2.4)
|
48
48
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
49
49
|
i18n (>= 0.7, < 2)
|
50
50
|
minitest (~> 5.1)
|
@@ -56,13 +56,13 @@ GEM
|
|
56
56
|
arel (9.0.0)
|
57
57
|
builder (3.2.3)
|
58
58
|
concurrent-ruby (1.1.5)
|
59
|
-
crass (1.0.
|
60
|
-
erubi (1.
|
59
|
+
crass (1.0.5)
|
60
|
+
erubi (1.9.0)
|
61
61
|
globalid (0.4.2)
|
62
62
|
activesupport (>= 4.2.0)
|
63
|
-
i18n (1.
|
63
|
+
i18n (1.7.0)
|
64
64
|
concurrent-ruby (~> 1.0)
|
65
|
-
loofah (2.
|
65
|
+
loofah (2.4.0)
|
66
66
|
crass (~> 1.0.2)
|
67
67
|
nokogiri (>= 1.5.9)
|
68
68
|
mail (2.7.1)
|
@@ -73,39 +73,39 @@ GEM
|
|
73
73
|
mimemagic (0.3.3)
|
74
74
|
mini_mime (1.0.2)
|
75
75
|
mini_portile2 (2.4.0)
|
76
|
-
minitest (5.
|
77
|
-
nio4r (2.5.
|
78
|
-
nokogiri (1.10.
|
76
|
+
minitest (5.13.0)
|
77
|
+
nio4r (2.5.2)
|
78
|
+
nokogiri (1.10.5)
|
79
79
|
mini_portile2 (~> 2.4.0)
|
80
80
|
rack (2.0.7)
|
81
81
|
rack-test (1.1.0)
|
82
82
|
rack (>= 1.0, < 3)
|
83
|
-
rails (5.2.
|
84
|
-
actioncable (= 5.2.
|
85
|
-
actionmailer (= 5.2.
|
86
|
-
actionpack (= 5.2.
|
87
|
-
actionview (= 5.2.
|
88
|
-
activejob (= 5.2.
|
89
|
-
activemodel (= 5.2.
|
90
|
-
activerecord (= 5.2.
|
91
|
-
activestorage (= 5.2.
|
92
|
-
activesupport (= 5.2.
|
83
|
+
rails (5.2.4)
|
84
|
+
actioncable (= 5.2.4)
|
85
|
+
actionmailer (= 5.2.4)
|
86
|
+
actionpack (= 5.2.4)
|
87
|
+
actionview (= 5.2.4)
|
88
|
+
activejob (= 5.2.4)
|
89
|
+
activemodel (= 5.2.4)
|
90
|
+
activerecord (= 5.2.4)
|
91
|
+
activestorage (= 5.2.4)
|
92
|
+
activesupport (= 5.2.4)
|
93
93
|
bundler (>= 1.3.0)
|
94
|
-
railties (= 5.2.
|
94
|
+
railties (= 5.2.4)
|
95
95
|
sprockets-rails (>= 2.0.0)
|
96
96
|
rails-dom-testing (2.0.3)
|
97
97
|
activesupport (>= 4.2.0)
|
98
98
|
nokogiri (>= 1.6)
|
99
|
-
rails-html-sanitizer (1.
|
100
|
-
loofah (~> 2.
|
101
|
-
railties (5.2.
|
102
|
-
actionpack (= 5.2.
|
103
|
-
activesupport (= 5.2.
|
99
|
+
rails-html-sanitizer (1.3.0)
|
100
|
+
loofah (~> 2.3)
|
101
|
+
railties (5.2.4)
|
102
|
+
actionpack (= 5.2.4)
|
103
|
+
activesupport (= 5.2.4)
|
104
104
|
method_source
|
105
105
|
rake (>= 0.8.7)
|
106
106
|
thor (>= 0.19.0, < 2.0)
|
107
|
-
rake (
|
108
|
-
sprockets (
|
107
|
+
rake (13.0.1)
|
108
|
+
sprockets (4.0.0)
|
109
109
|
concurrent-ruby (~> 1.0)
|
110
110
|
rack (> 1, < 3)
|
111
111
|
sprockets-rails (3.2.1)
|
@@ -1,81 +1,81 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
minitest-spec-rails (6.0.
|
4
|
+
minitest-spec-rails (6.0.1)
|
5
5
|
minitest (>= 5.0)
|
6
|
-
|
6
|
+
railties (>= 4.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actioncable (6.0.
|
12
|
-
actionpack (= 6.0.
|
11
|
+
actioncable (6.0.1)
|
12
|
+
actionpack (= 6.0.1)
|
13
13
|
nio4r (~> 2.0)
|
14
14
|
websocket-driver (>= 0.6.1)
|
15
|
-
actionmailbox (6.0.
|
16
|
-
actionpack (= 6.0.
|
17
|
-
activejob (= 6.0.
|
18
|
-
activerecord (= 6.0.
|
19
|
-
activestorage (= 6.0.
|
20
|
-
activesupport (= 6.0.
|
15
|
+
actionmailbox (6.0.1)
|
16
|
+
actionpack (= 6.0.1)
|
17
|
+
activejob (= 6.0.1)
|
18
|
+
activerecord (= 6.0.1)
|
19
|
+
activestorage (= 6.0.1)
|
20
|
+
activesupport (= 6.0.1)
|
21
21
|
mail (>= 2.7.1)
|
22
|
-
actionmailer (6.0.
|
23
|
-
actionpack (= 6.0.
|
24
|
-
actionview (= 6.0.
|
25
|
-
activejob (= 6.0.
|
22
|
+
actionmailer (6.0.1)
|
23
|
+
actionpack (= 6.0.1)
|
24
|
+
actionview (= 6.0.1)
|
25
|
+
activejob (= 6.0.1)
|
26
26
|
mail (~> 2.5, >= 2.5.4)
|
27
27
|
rails-dom-testing (~> 2.0)
|
28
|
-
actionpack (6.0.
|
29
|
-
actionview (= 6.0.
|
30
|
-
activesupport (= 6.0.
|
28
|
+
actionpack (6.0.1)
|
29
|
+
actionview (= 6.0.1)
|
30
|
+
activesupport (= 6.0.1)
|
31
31
|
rack (~> 2.0)
|
32
32
|
rack-test (>= 0.6.3)
|
33
33
|
rails-dom-testing (~> 2.0)
|
34
34
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
35
|
-
actiontext (6.0.
|
36
|
-
actionpack (= 6.0.
|
37
|
-
activerecord (= 6.0.
|
38
|
-
activestorage (= 6.0.
|
39
|
-
activesupport (= 6.0.
|
35
|
+
actiontext (6.0.1)
|
36
|
+
actionpack (= 6.0.1)
|
37
|
+
activerecord (= 6.0.1)
|
38
|
+
activestorage (= 6.0.1)
|
39
|
+
activesupport (= 6.0.1)
|
40
40
|
nokogiri (>= 1.8.5)
|
41
|
-
actionview (6.0.
|
42
|
-
activesupport (= 6.0.
|
41
|
+
actionview (6.0.1)
|
42
|
+
activesupport (= 6.0.1)
|
43
43
|
builder (~> 3.1)
|
44
44
|
erubi (~> 1.4)
|
45
45
|
rails-dom-testing (~> 2.0)
|
46
46
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
47
|
-
activejob (6.0.
|
48
|
-
activesupport (= 6.0.
|
47
|
+
activejob (6.0.1)
|
48
|
+
activesupport (= 6.0.1)
|
49
49
|
globalid (>= 0.3.6)
|
50
|
-
activemodel (6.0.
|
51
|
-
activesupport (= 6.0.
|
52
|
-
activerecord (6.0.
|
53
|
-
activemodel (= 6.0.
|
54
|
-
activesupport (= 6.0.
|
55
|
-
activestorage (6.0.
|
56
|
-
actionpack (= 6.0.
|
57
|
-
activejob (= 6.0.
|
58
|
-
activerecord (= 6.0.
|
50
|
+
activemodel (6.0.1)
|
51
|
+
activesupport (= 6.0.1)
|
52
|
+
activerecord (6.0.1)
|
53
|
+
activemodel (= 6.0.1)
|
54
|
+
activesupport (= 6.0.1)
|
55
|
+
activestorage (6.0.1)
|
56
|
+
actionpack (= 6.0.1)
|
57
|
+
activejob (= 6.0.1)
|
58
|
+
activerecord (= 6.0.1)
|
59
59
|
marcel (~> 0.3.1)
|
60
|
-
activesupport (6.0.
|
60
|
+
activesupport (6.0.1)
|
61
61
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
62
62
|
i18n (>= 0.7, < 2)
|
63
63
|
minitest (~> 5.1)
|
64
64
|
tzinfo (~> 1.1)
|
65
|
-
zeitwerk (~> 2.
|
65
|
+
zeitwerk (~> 2.2)
|
66
66
|
appraisal (2.2.0)
|
67
67
|
bundler
|
68
68
|
rake
|
69
69
|
thor (>= 0.14.0)
|
70
70
|
builder (3.2.3)
|
71
71
|
concurrent-ruby (1.1.5)
|
72
|
-
crass (1.0.
|
73
|
-
erubi (1.
|
72
|
+
crass (1.0.5)
|
73
|
+
erubi (1.9.0)
|
74
74
|
globalid (0.4.2)
|
75
75
|
activesupport (>= 4.2.0)
|
76
|
-
i18n (1.
|
76
|
+
i18n (1.7.0)
|
77
77
|
concurrent-ruby (~> 1.0)
|
78
|
-
loofah (2.
|
78
|
+
loofah (2.4.0)
|
79
79
|
crass (~> 1.0.2)
|
80
80
|
nokogiri (>= 1.5.9)
|
81
81
|
mail (2.7.1)
|
@@ -86,41 +86,41 @@ GEM
|
|
86
86
|
mimemagic (0.3.3)
|
87
87
|
mini_mime (1.0.2)
|
88
88
|
mini_portile2 (2.4.0)
|
89
|
-
minitest (5.
|
90
|
-
nio4r (2.5.
|
91
|
-
nokogiri (1.10.
|
89
|
+
minitest (5.13.0)
|
90
|
+
nio4r (2.5.2)
|
91
|
+
nokogiri (1.10.5)
|
92
92
|
mini_portile2 (~> 2.4.0)
|
93
93
|
rack (2.0.7)
|
94
94
|
rack-test (1.1.0)
|
95
95
|
rack (>= 1.0, < 3)
|
96
|
-
rails (6.0.
|
97
|
-
actioncable (= 6.0.
|
98
|
-
actionmailbox (= 6.0.
|
99
|
-
actionmailer (= 6.0.
|
100
|
-
actionpack (= 6.0.
|
101
|
-
actiontext (= 6.0.
|
102
|
-
actionview (= 6.0.
|
103
|
-
activejob (= 6.0.
|
104
|
-
activemodel (= 6.0.
|
105
|
-
activerecord (= 6.0.
|
106
|
-
activestorage (= 6.0.
|
107
|
-
activesupport (= 6.0.
|
96
|
+
rails (6.0.1)
|
97
|
+
actioncable (= 6.0.1)
|
98
|
+
actionmailbox (= 6.0.1)
|
99
|
+
actionmailer (= 6.0.1)
|
100
|
+
actionpack (= 6.0.1)
|
101
|
+
actiontext (= 6.0.1)
|
102
|
+
actionview (= 6.0.1)
|
103
|
+
activejob (= 6.0.1)
|
104
|
+
activemodel (= 6.0.1)
|
105
|
+
activerecord (= 6.0.1)
|
106
|
+
activestorage (= 6.0.1)
|
107
|
+
activesupport (= 6.0.1)
|
108
108
|
bundler (>= 1.3.0)
|
109
|
-
railties (= 6.0.
|
109
|
+
railties (= 6.0.1)
|
110
110
|
sprockets-rails (>= 2.0.0)
|
111
111
|
rails-dom-testing (2.0.3)
|
112
112
|
activesupport (>= 4.2.0)
|
113
113
|
nokogiri (>= 1.6)
|
114
|
-
rails-html-sanitizer (1.
|
115
|
-
loofah (~> 2.
|
116
|
-
railties (6.0.
|
117
|
-
actionpack (= 6.0.
|
118
|
-
activesupport (= 6.0.
|
114
|
+
rails-html-sanitizer (1.3.0)
|
115
|
+
loofah (~> 2.3)
|
116
|
+
railties (6.0.1)
|
117
|
+
actionpack (= 6.0.1)
|
118
|
+
activesupport (= 6.0.1)
|
119
119
|
method_source
|
120
120
|
rake (>= 0.8.7)
|
121
121
|
thor (>= 0.20.3, < 2.0)
|
122
|
-
rake (
|
123
|
-
sprockets (
|
122
|
+
rake (13.0.1)
|
123
|
+
sprockets (4.0.0)
|
124
124
|
concurrent-ruby (~> 1.0)
|
125
125
|
rack (> 1, < 3)
|
126
126
|
sprockets-rails (3.2.1)
|
@@ -135,7 +135,7 @@ GEM
|
|
135
135
|
websocket-driver (0.7.1)
|
136
136
|
websocket-extensions (>= 0.1.0)
|
137
137
|
websocket-extensions (0.1.4)
|
138
|
-
zeitwerk (2.1
|
138
|
+
zeitwerk (2.2.1)
|
139
139
|
|
140
140
|
PLATFORMS
|
141
141
|
ruby
|
data/minitest-spec-rails.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
18
18
|
gem.require_paths = ['lib']
|
19
19
|
gem.add_runtime_dependency 'minitest', '>= 5.0'
|
20
|
-
gem.add_runtime_dependency '
|
20
|
+
gem.add_runtime_dependency 'railties', '>= 4.1'
|
21
21
|
gem.add_development_dependency 'appraisal'
|
22
22
|
gem.add_development_dependency 'rake'
|
23
23
|
gem.add_development_dependency 'sqlite3'
|
@@ -0,0 +1 @@
|
|
1
|
+
{}
|
data/test/dummy_app/init.rb
CHANGED
@@ -10,8 +10,15 @@ module Dummy
|
|
10
10
|
config.root = File.join __FILE__, '..'
|
11
11
|
config.cache_store = :memory_store
|
12
12
|
config.assets.enabled = false
|
13
|
-
|
13
|
+
if Rails.version > '5.0'
|
14
|
+
config.secret_key_base = '012345678901234567890123456789'
|
15
|
+
else
|
16
|
+
config.secret_token = '012345678901234567890123456789'
|
17
|
+
end
|
14
18
|
config.active_support.test_order = :random
|
19
|
+
if config.active_record.sqlite3.respond_to?(:represent_boolean_as_integer)
|
20
|
+
config.active_record.sqlite3.represent_boolean_as_integer = true
|
21
|
+
end
|
15
22
|
|
16
23
|
# Mimic Test Environment Config.
|
17
24
|
config.whiny_nils = true if Rails.version < '4.0'
|
@@ -26,7 +33,6 @@ module Dummy
|
|
26
33
|
config.dependency_loading = true
|
27
34
|
config.preload_frameworks = true
|
28
35
|
config.eager_load = true
|
29
|
-
config.secret_key_base = '012345678901234567890123456789'
|
30
36
|
|
31
37
|
# Custom
|
32
38
|
config.minitest_spec_rails.mini_shoulda = true
|
@@ -35,3 +41,6 @@ end
|
|
35
41
|
|
36
42
|
Dummy::Application.initialize!
|
37
43
|
require 'rails/test_help'
|
44
|
+
|
45
|
+
# Avoids local NoMethodError: undefined method `split' for nil:NilClass
|
46
|
+
Rails.backtrace_cleaner.remove_silencers!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-spec-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken Collins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '5.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: railties
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
@@ -124,6 +124,7 @@ files:
|
|
124
124
|
- test/cases/active_job_test.rb
|
125
125
|
- test/cases/active_support_test.rb
|
126
126
|
- test/cases/mini_shoulda_test.rb
|
127
|
+
- test/dummy_app/app/assets/config/manifest.js
|
127
128
|
- test/dummy_app/app/controllers/application_controller.rb
|
128
129
|
- test/dummy_app/app/controllers/users_controller.rb
|
129
130
|
- test/dummy_app/app/helpers/application_helper.rb
|
@@ -182,6 +183,7 @@ test_files:
|
|
182
183
|
- test/cases/active_job_test.rb
|
183
184
|
- test/cases/active_support_test.rb
|
184
185
|
- test/cases/mini_shoulda_test.rb
|
186
|
+
- test/dummy_app/app/assets/config/manifest.js
|
185
187
|
- test/dummy_app/app/controllers/application_controller.rb
|
186
188
|
- test/dummy_app/app/controllers/users_controller.rb
|
187
189
|
- test/dummy_app/app/helpers/application_helper.rb
|