minitest-spec-rails 5.5.0 → 6.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 91f579b3835a673c97eb257ba9e138b6543677db
4
- data.tar.gz: 9a772420c9d8de8bd15504dba4183408ddf6729c
2
+ SHA256:
3
+ metadata.gz: a822dd4545199db4b739fcdce3cd6f37ba52b33ee2003b35c0e38a454beb2d95
4
+ data.tar.gz: 7862edf7f6a40838e622e2b1f6eba095df42f760f257ae71df5b5bf06e4bf7ee
5
5
  SHA512:
6
- metadata.gz: 739b72f9c49c83a5376eac368be8d8ce820bbb07d24cff80f82b3ffeb861e9934bcf919b75a1b3bac5bfab87dc905a296b7d2989344ee86b137fb6f375f8410e
7
- data.tar.gz: 69d8de313030964736d2355e70b152fee2103472f249714ebb93e82997cbb8fb37b9337674184043d75cda15e466efa461aa6c3406a75ab5b285514181854974
6
+ metadata.gz: fe7c82452120cd6c56f409d4b0270da309b07edd7fe37267c033491df703434f693a5d46d675e9ff8b837a7b5077a3a116b20ca5d3ef2f10edc3d97a4df48566
7
+ data.tar.gz: d0ad9ced0e0fbe397973fd28c57fa42b86f15b9a8ea368bd63a45128b1d812aa19fd8f6002d4eb0b9da0423e7e481837ed9c2340218e17e5bbfd6f2588fe6be8
@@ -0,0 +1,35 @@
1
+ name: CI
2
+ on: [push]
3
+ jobs:
4
+ test:
5
+ runs-on: ubuntu-latest
6
+ strategy:
7
+ matrix:
8
+ ruby:
9
+ - '2.5.x'
10
+ - '2.6.x'
11
+ rails:
12
+ - 'rails_v5.1.x'
13
+ - 'rails_v5.2.x'
14
+ - 'rails_v6.0.x'
15
+ steps:
16
+ - name: Checkout
17
+ uses: actions/checkout@v1
18
+ - name: Setup System
19
+ run: |
20
+ sudo apt-get install libsqlite3-dev
21
+ echo "MTSR_RAILS_VERSION=${{ matrix.rails }}" >> $GITHUB_ENV
22
+ - name: Setup Ruby
23
+ uses: actions/setup-ruby@v1
24
+ with:
25
+ ruby-version: ${{ matrix.ruby }}
26
+ - name: Bundle
27
+ run: |
28
+ export BUNDLE_GEMFILE="${GITHUB_WORKSPACE}/gemfiles/${MTSR_RAILS_VERSION}.gemfile"
29
+ gem uninstall -aIx bundler
30
+ gem install bundler -v 1.17.3
31
+ bundle install --jobs 4 --retry 3
32
+ - name: Test
33
+ run: |
34
+ export BUNDLE_GEMFILE="${GITHUB_WORKSPACE}/gemfiles/${MTSR_RAILS_VERSION}.gemfile"
35
+ bundle exec rake
data/Appraisals CHANGED
@@ -1,19 +1,16 @@
1
- appraise 'rails41' do
2
- gem 'rails', '~> 4.1.0'
3
- end
4
-
5
- appraise 'rails42' do
6
- gem 'rails', '~> 4.2.0'
7
- end
8
1
 
9
- appraise 'rails50' do
10
- gem 'rails', '5.0.0'
2
+ appraise 'rails-v5.1.x' do
3
+ gem 'rails', '~> 5.1.0'
11
4
  # https://github.com/rails/rails/issues/29031
12
5
  gem 'minitest', '5.10.1'
13
6
  end
14
7
 
15
- appraise 'rails51' do
16
- gem 'rails', '5.1.0'
17
- # https://github.com/rails/rails/issues/29031
18
- gem 'minitest', '5.10.1'
8
+ appraise 'rails-v5.2.x' do
9
+ gem 'rails', '~> 5.2.0'
10
+ gem 'minitest'
11
+ end
12
+
13
+ appraise 'rails_v6.0.x' do
14
+ gem 'rails', '~> 6.0.0'
15
+ gem 'minitest'
19
16
  end
data/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## 6.0.4
2
+
3
+ * Fixed parallel tests with relative paths. Thanks @jlsherrill
4
+
5
+ ## 6.0.3
6
+
7
+ * Better ActionView load. Fixed #105. Thanks @zofrex
8
+
9
+ ## 6.0.2
10
+
11
+ * Fixed parallel tests in Rails v6.
12
+
13
+ ## 6.0.1
14
+
15
+ * Changed gemspec to `railties` vs `rails`. Thanks @seuros
16
+
17
+ ## 6.0.0
18
+
19
+ * Bumping to be major with latest testing versions.
20
+
21
+ ## 5.6.0
22
+
23
+ * Add Rails v6 via gem spec support.
24
+
1
25
  ## 5.5.0
2
26
 
3
27
  * Fix source_location of methods defined with `test`. Fixes #91. Thanks @barrettkingram
data/README.md CHANGED
@@ -1,12 +1,12 @@
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
 
8
8
  [![Gem Version](https://badge.fury.io/rb/minitest-spec-rails.svg)](http://badge.fury.io/rb/minitest-spec-rails)
9
- [![Build Status](https://secure.travis-ci.org/metaskills/minitest-spec-rails.svg)](http://travis-ci.org/metaskills/minitest-spec-rails)
9
+ [![CI Status](https://github.com/metaskills/minitest-spec-rails/workflows/CI/badge.svg)](https://launch-editor.github.com/actions?nwo=metaskills%2Fminitest-spec-rails&workflowID=CI)
10
10
  [![Maintainability](https://api.codeclimate.com/v1/badges/e67addda6fd009b68349/maintainability)](https://codeclimate.com/github/metaskills/minitest-spec-rails/maintainability)
11
11
 
12
12
 
@@ -15,9 +15,9 @@ The minitest-spec-rails gem makes it easy to use the MiniTest::Spec DSL within y
15
15
  Existing or new Rails applications that use the default Rails testing structure can simply drop in the minitest-spec-gem and start writing their tests in the new spec DSL. Since MiniTest::Spec is built on top of MiniTest::Unit, a replacement for Test::Unit, all of your existing tests will continue to work.
16
16
 
17
17
 
18
- #### Rails 4.1 or 4.2, 5.x
18
+ #### Rails 4.1 to 6.0
19
19
 
20
- Our master branch is tracking rails 4.1, 4.2 and hopefully up to 5.x active development.
20
+ Our master branch is tracking rails 5.1 up to 6.x active development.
21
21
 
22
22
  ```ruby
23
23
  group :test do
@@ -56,7 +56,7 @@ gem 'minitest-spec-rails'
56
56
 
57
57
  ## Test Styles
58
58
 
59
- This <a href="http://cheat.errtheblog.com/s/minitest">cheat sheet</a> shows both the MiniTest::Unit assertions along with the MiniTest::Spec assertion syntax. Remember, MiniTest::Spec is built on top of MiniTest::Unit which is a Test::Unit replacement. That means you can mix and match styles as you upgrade from Test::Unit to a more modern style. For example, both of these would work in MiniTest::Spec and are interchangeable.
59
+ This <a href="https://chriskottom.com/freebies/cheatsheets_free.pdf">cheat sheet</a> shows both the MiniTest::Unit assertions along with the MiniTest::Spec assertion syntax. Remember, MiniTest::Spec is built on top of MiniTest::Unit which is a Test::Unit replacement. That means you can mix and match styles as you upgrade from Test::Unit to a more modern style. For example, both of these would work in MiniTest::Spec and are interchangeable.
60
60
 
61
61
  ```ruby
62
62
  # MiniTest::Unit Assertion Style:
@@ -263,7 +263,7 @@ If your view helper tests give you an eror like this: `RuntimeError: In order to
263
263
 
264
264
  ## Contributing
265
265
 
266
- We run our tests on [Travis CI](http://travis-ci.org/metaskills/minitest-spec-rails). If you detect a problem, open up a github issue or fork the repo and help out. After you fork or clone the repository, the following commands will get you up and running on the test suite.
266
+ We run our tests on GitHub Actions. If you detect a problem, open up a github issue or fork the repo and help out. After you fork or clone the repository, the following commands will get you up and running on the test suite.
267
267
 
268
268
  ```shell
269
269
  $ bundle install
@@ -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 rails41 rake test
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
@@ -4,7 +4,8 @@ require 'rake/testtask'
4
4
  Rake::TestTask.new do |t|
5
5
  t.libs = %w[lib test]
6
6
  t.test_files = Dir.glob('test/**/*_test.rb').sort
7
- t.verbose = true
7
+ t.verbose = false
8
+ t.warning = false
8
9
  end
9
10
 
10
11
  task default: :test
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "5.0.0"
5
+ gem "rails", "~> 5.1.0"
6
6
  gem "minitest", "5.10.1"
7
7
 
8
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -0,0 +1,130 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ minitest-spec-rails (6.0.4)
5
+ minitest (>= 5.0)
6
+ railties (>= 4.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (5.1.7)
12
+ actionpack (= 5.1.7)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (~> 0.6.1)
15
+ actionmailer (5.1.7)
16
+ actionpack (= 5.1.7)
17
+ actionview (= 5.1.7)
18
+ activejob (= 5.1.7)
19
+ mail (~> 2.5, >= 2.5.4)
20
+ rails-dom-testing (~> 2.0)
21
+ actionpack (5.1.7)
22
+ actionview (= 5.1.7)
23
+ activesupport (= 5.1.7)
24
+ rack (~> 2.0)
25
+ rack-test (>= 0.6.3)
26
+ rails-dom-testing (~> 2.0)
27
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
+ actionview (5.1.7)
29
+ activesupport (= 5.1.7)
30
+ builder (~> 3.1)
31
+ erubi (~> 1.4)
32
+ rails-dom-testing (~> 2.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
+ activejob (5.1.7)
35
+ activesupport (= 5.1.7)
36
+ globalid (>= 0.3.6)
37
+ activemodel (5.1.7)
38
+ activesupport (= 5.1.7)
39
+ activerecord (5.1.7)
40
+ activemodel (= 5.1.7)
41
+ activesupport (= 5.1.7)
42
+ arel (~> 8.0)
43
+ activesupport (5.1.7)
44
+ concurrent-ruby (~> 1.0, >= 1.0.2)
45
+ i18n (>= 0.7, < 2)
46
+ minitest (~> 5.1)
47
+ tzinfo (~> 1.1)
48
+ appraisal (2.4.0)
49
+ bundler
50
+ rake
51
+ thor (>= 0.14.0)
52
+ arel (8.0.0)
53
+ builder (3.2.4)
54
+ concurrent-ruby (1.1.8)
55
+ crass (1.0.6)
56
+ erubi (1.10.0)
57
+ globalid (0.4.2)
58
+ activesupport (>= 4.2.0)
59
+ i18n (1.8.10)
60
+ concurrent-ruby (~> 1.0)
61
+ loofah (2.9.1)
62
+ crass (~> 1.0.2)
63
+ nokogiri (>= 1.5.9)
64
+ mail (2.7.1)
65
+ mini_mime (>= 0.1.1)
66
+ method_source (1.0.0)
67
+ mini_mime (1.1.0)
68
+ mini_portile2 (2.5.1)
69
+ minitest (5.10.1)
70
+ nio4r (2.5.7)
71
+ nokogiri (1.11.3)
72
+ mini_portile2 (~> 2.5.0)
73
+ racc (~> 1.4)
74
+ racc (1.5.2)
75
+ rack (2.2.3)
76
+ rack-test (1.1.0)
77
+ rack (>= 1.0, < 3)
78
+ rails (5.1.7)
79
+ actioncable (= 5.1.7)
80
+ actionmailer (= 5.1.7)
81
+ actionpack (= 5.1.7)
82
+ actionview (= 5.1.7)
83
+ activejob (= 5.1.7)
84
+ activemodel (= 5.1.7)
85
+ activerecord (= 5.1.7)
86
+ activesupport (= 5.1.7)
87
+ bundler (>= 1.3.0)
88
+ railties (= 5.1.7)
89
+ sprockets-rails (>= 2.0.0)
90
+ rails-dom-testing (2.0.3)
91
+ activesupport (>= 4.2.0)
92
+ nokogiri (>= 1.6)
93
+ rails-html-sanitizer (1.3.0)
94
+ loofah (~> 2.3)
95
+ railties (5.1.7)
96
+ actionpack (= 5.1.7)
97
+ activesupport (= 5.1.7)
98
+ method_source
99
+ rake (>= 0.8.7)
100
+ thor (>= 0.18.1, < 2.0)
101
+ rake (13.0.3)
102
+ sprockets (4.0.2)
103
+ concurrent-ruby (~> 1.0)
104
+ rack (> 1, < 3)
105
+ sprockets-rails (3.2.2)
106
+ actionpack (>= 4.0)
107
+ activesupport (>= 4.0)
108
+ sprockets (>= 3.0.0)
109
+ sqlite3 (1.4.2)
110
+ thor (1.1.0)
111
+ thread_safe (0.3.6)
112
+ tzinfo (1.2.9)
113
+ thread_safe (~> 0.1)
114
+ websocket-driver (0.6.5)
115
+ websocket-extensions (>= 0.1.0)
116
+ websocket-extensions (0.1.5)
117
+
118
+ PLATFORMS
119
+ ruby
120
+
121
+ DEPENDENCIES
122
+ appraisal
123
+ minitest (= 5.10.1)
124
+ minitest-spec-rails!
125
+ rails (~> 5.1.0)
126
+ rake
127
+ sqlite3
128
+
129
+ BUNDLED WITH
130
+ 1.17.3
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 4.1.0"
5
+ gem "rails", "~> 5.2.0"
6
+ gem "minitest"
6
7
 
7
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -0,0 +1,136 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ minitest-spec-rails (6.0.4)
5
+ minitest (>= 5.0)
6
+ railties (>= 4.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (5.2.5)
12
+ actionpack (= 5.2.5)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailer (5.2.5)
16
+ actionpack (= 5.2.5)
17
+ actionview (= 5.2.5)
18
+ activejob (= 5.2.5)
19
+ mail (~> 2.5, >= 2.5.4)
20
+ rails-dom-testing (~> 2.0)
21
+ actionpack (5.2.5)
22
+ actionview (= 5.2.5)
23
+ activesupport (= 5.2.5)
24
+ rack (~> 2.0, >= 2.0.8)
25
+ rack-test (>= 0.6.3)
26
+ rails-dom-testing (~> 2.0)
27
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
+ actionview (5.2.5)
29
+ activesupport (= 5.2.5)
30
+ builder (~> 3.1)
31
+ erubi (~> 1.4)
32
+ rails-dom-testing (~> 2.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
+ activejob (5.2.5)
35
+ activesupport (= 5.2.5)
36
+ globalid (>= 0.3.6)
37
+ activemodel (5.2.5)
38
+ activesupport (= 5.2.5)
39
+ activerecord (5.2.5)
40
+ activemodel (= 5.2.5)
41
+ activesupport (= 5.2.5)
42
+ arel (>= 9.0)
43
+ activestorage (5.2.5)
44
+ actionpack (= 5.2.5)
45
+ activerecord (= 5.2.5)
46
+ marcel (~> 1.0.0)
47
+ activesupport (5.2.5)
48
+ concurrent-ruby (~> 1.0, >= 1.0.2)
49
+ i18n (>= 0.7, < 2)
50
+ minitest (~> 5.1)
51
+ tzinfo (~> 1.1)
52
+ appraisal (2.4.0)
53
+ bundler
54
+ rake
55
+ thor (>= 0.14.0)
56
+ arel (9.0.0)
57
+ builder (3.2.4)
58
+ concurrent-ruby (1.1.8)
59
+ crass (1.0.6)
60
+ erubi (1.10.0)
61
+ globalid (0.4.2)
62
+ activesupport (>= 4.2.0)
63
+ i18n (1.8.10)
64
+ concurrent-ruby (~> 1.0)
65
+ loofah (2.9.1)
66
+ crass (~> 1.0.2)
67
+ nokogiri (>= 1.5.9)
68
+ mail (2.7.1)
69
+ mini_mime (>= 0.1.1)
70
+ marcel (1.0.1)
71
+ method_source (1.0.0)
72
+ mini_mime (1.1.0)
73
+ mini_portile2 (2.5.1)
74
+ minitest (5.14.4)
75
+ nio4r (2.5.7)
76
+ nokogiri (1.11.3)
77
+ mini_portile2 (~> 2.5.0)
78
+ racc (~> 1.4)
79
+ racc (1.5.2)
80
+ rack (2.2.3)
81
+ rack-test (1.1.0)
82
+ rack (>= 1.0, < 3)
83
+ rails (5.2.5)
84
+ actioncable (= 5.2.5)
85
+ actionmailer (= 5.2.5)
86
+ actionpack (= 5.2.5)
87
+ actionview (= 5.2.5)
88
+ activejob (= 5.2.5)
89
+ activemodel (= 5.2.5)
90
+ activerecord (= 5.2.5)
91
+ activestorage (= 5.2.5)
92
+ activesupport (= 5.2.5)
93
+ bundler (>= 1.3.0)
94
+ railties (= 5.2.5)
95
+ sprockets-rails (>= 2.0.0)
96
+ rails-dom-testing (2.0.3)
97
+ activesupport (>= 4.2.0)
98
+ nokogiri (>= 1.6)
99
+ rails-html-sanitizer (1.3.0)
100
+ loofah (~> 2.3)
101
+ railties (5.2.5)
102
+ actionpack (= 5.2.5)
103
+ activesupport (= 5.2.5)
104
+ method_source
105
+ rake (>= 0.8.7)
106
+ thor (>= 0.19.0, < 2.0)
107
+ rake (13.0.3)
108
+ sprockets (4.0.2)
109
+ concurrent-ruby (~> 1.0)
110
+ rack (> 1, < 3)
111
+ sprockets-rails (3.2.2)
112
+ actionpack (>= 4.0)
113
+ activesupport (>= 4.0)
114
+ sprockets (>= 3.0.0)
115
+ sqlite3 (1.4.2)
116
+ thor (1.1.0)
117
+ thread_safe (0.3.6)
118
+ tzinfo (1.2.9)
119
+ thread_safe (~> 0.1)
120
+ websocket-driver (0.7.3)
121
+ websocket-extensions (>= 0.1.0)
122
+ websocket-extensions (0.1.5)
123
+
124
+ PLATFORMS
125
+ ruby
126
+
127
+ DEPENDENCIES
128
+ appraisal
129
+ minitest
130
+ minitest-spec-rails!
131
+ rails (~> 5.2.0)
132
+ rake
133
+ sqlite3
134
+
135
+ BUNDLED WITH
136
+ 1.17.3