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.
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 4.2.0"
5
+ gem "rails", "~> 6.0.0"
6
+ gem "minitest"
6
7
 
7
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -0,0 +1,152 @@
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 (6.0.3.6)
12
+ actionpack (= 6.0.3.6)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailbox (6.0.3.6)
16
+ actionpack (= 6.0.3.6)
17
+ activejob (= 6.0.3.6)
18
+ activerecord (= 6.0.3.6)
19
+ activestorage (= 6.0.3.6)
20
+ activesupport (= 6.0.3.6)
21
+ mail (>= 2.7.1)
22
+ actionmailer (6.0.3.6)
23
+ actionpack (= 6.0.3.6)
24
+ actionview (= 6.0.3.6)
25
+ activejob (= 6.0.3.6)
26
+ mail (~> 2.5, >= 2.5.4)
27
+ rails-dom-testing (~> 2.0)
28
+ actionpack (6.0.3.6)
29
+ actionview (= 6.0.3.6)
30
+ activesupport (= 6.0.3.6)
31
+ rack (~> 2.0, >= 2.0.8)
32
+ rack-test (>= 0.6.3)
33
+ rails-dom-testing (~> 2.0)
34
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
35
+ actiontext (6.0.3.6)
36
+ actionpack (= 6.0.3.6)
37
+ activerecord (= 6.0.3.6)
38
+ activestorage (= 6.0.3.6)
39
+ activesupport (= 6.0.3.6)
40
+ nokogiri (>= 1.8.5)
41
+ actionview (6.0.3.6)
42
+ activesupport (= 6.0.3.6)
43
+ builder (~> 3.1)
44
+ erubi (~> 1.4)
45
+ rails-dom-testing (~> 2.0)
46
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
47
+ activejob (6.0.3.6)
48
+ activesupport (= 6.0.3.6)
49
+ globalid (>= 0.3.6)
50
+ activemodel (6.0.3.6)
51
+ activesupport (= 6.0.3.6)
52
+ activerecord (6.0.3.6)
53
+ activemodel (= 6.0.3.6)
54
+ activesupport (= 6.0.3.6)
55
+ activestorage (6.0.3.6)
56
+ actionpack (= 6.0.3.6)
57
+ activejob (= 6.0.3.6)
58
+ activerecord (= 6.0.3.6)
59
+ marcel (~> 1.0.0)
60
+ activesupport (6.0.3.6)
61
+ concurrent-ruby (~> 1.0, >= 1.0.2)
62
+ i18n (>= 0.7, < 2)
63
+ minitest (~> 5.1)
64
+ tzinfo (~> 1.1)
65
+ zeitwerk (~> 2.2, >= 2.2.2)
66
+ appraisal (2.4.0)
67
+ bundler
68
+ rake
69
+ thor (>= 0.14.0)
70
+ builder (3.2.4)
71
+ concurrent-ruby (1.1.8)
72
+ crass (1.0.6)
73
+ erubi (1.10.0)
74
+ globalid (0.4.2)
75
+ activesupport (>= 4.2.0)
76
+ i18n (1.8.10)
77
+ concurrent-ruby (~> 1.0)
78
+ loofah (2.9.1)
79
+ crass (~> 1.0.2)
80
+ nokogiri (>= 1.5.9)
81
+ mail (2.7.1)
82
+ mini_mime (>= 0.1.1)
83
+ marcel (1.0.1)
84
+ method_source (1.0.0)
85
+ mini_mime (1.1.0)
86
+ mini_portile2 (2.5.1)
87
+ minitest (5.14.4)
88
+ nio4r (2.5.7)
89
+ nokogiri (1.11.3)
90
+ mini_portile2 (~> 2.5.0)
91
+ racc (~> 1.4)
92
+ racc (1.5.2)
93
+ rack (2.2.3)
94
+ rack-test (1.1.0)
95
+ rack (>= 1.0, < 3)
96
+ rails (6.0.3.6)
97
+ actioncable (= 6.0.3.6)
98
+ actionmailbox (= 6.0.3.6)
99
+ actionmailer (= 6.0.3.6)
100
+ actionpack (= 6.0.3.6)
101
+ actiontext (= 6.0.3.6)
102
+ actionview (= 6.0.3.6)
103
+ activejob (= 6.0.3.6)
104
+ activemodel (= 6.0.3.6)
105
+ activerecord (= 6.0.3.6)
106
+ activestorage (= 6.0.3.6)
107
+ activesupport (= 6.0.3.6)
108
+ bundler (>= 1.3.0)
109
+ railties (= 6.0.3.6)
110
+ sprockets-rails (>= 2.0.0)
111
+ rails-dom-testing (2.0.3)
112
+ activesupport (>= 4.2.0)
113
+ nokogiri (>= 1.6)
114
+ rails-html-sanitizer (1.3.0)
115
+ loofah (~> 2.3)
116
+ railties (6.0.3.6)
117
+ actionpack (= 6.0.3.6)
118
+ activesupport (= 6.0.3.6)
119
+ method_source
120
+ rake (>= 0.8.7)
121
+ thor (>= 0.20.3, < 2.0)
122
+ rake (13.0.3)
123
+ sprockets (4.0.2)
124
+ concurrent-ruby (~> 1.0)
125
+ rack (> 1, < 3)
126
+ sprockets-rails (3.2.2)
127
+ actionpack (>= 4.0)
128
+ activesupport (>= 4.0)
129
+ sprockets (>= 3.0.0)
130
+ sqlite3 (1.4.2)
131
+ thor (1.1.0)
132
+ thread_safe (0.3.6)
133
+ tzinfo (1.2.9)
134
+ thread_safe (~> 0.1)
135
+ websocket-driver (0.7.3)
136
+ websocket-extensions (>= 0.1.0)
137
+ websocket-extensions (0.1.5)
138
+ zeitwerk (2.4.2)
139
+
140
+ PLATFORMS
141
+ ruby
142
+
143
+ DEPENDENCIES
144
+ appraisal
145
+ minitest
146
+ minitest-spec-rails!
147
+ rails (~> 6.0.0)
148
+ rake
149
+ sqlite3
150
+
151
+ BUNDLED WITH
152
+ 1.17.3
@@ -0,0 +1,30 @@
1
+
2
+ # HACK: stolen and altered from https://github.com/blowmage/minitest-rails/pull/218/files
3
+ # Which was referenced in https://github.com/metaskills/minitest-spec-rails/issues/94
4
+
5
+ module MiniTestSpecRails
6
+ ##
7
+ # This module is a placeholder for all the Test classes created using the
8
+ # spec DSL. Normally all classes are created but not assigned to a constant.
9
+ # This module is where constants will be created for these classes.
10
+ module SpecTests #:nodoc:
11
+ end
12
+ end
13
+
14
+ module Kernel #:nodoc:
15
+ alias describe_before_minitest_spec_constant_fix describe
16
+ private :describe_before_minitest_spec_constant_fix
17
+ def describe *args, &block
18
+ cls = describe_before_minitest_spec_constant_fix(*args, &block)
19
+ cls_const = "Test__#{cls.name.to_s.split(/\W/).reject(&:empty?).join('_'.freeze)}"
20
+ if block.source_location
21
+ source_path, line_num = block.source_location
22
+ source_path = Pathname.new(File.expand_path(source_path)).relative_path_from(Rails.root).to_s
23
+ source_path = source_path.split(/\W/).reject(&:empty?).join("_".freeze)
24
+ cls_const += "__#{source_path}__#{line_num}"
25
+ end
26
+ cls_const += "_1" while MiniTestSpecRails::SpecTests.const_defined? cls_const
27
+ MiniTestSpecRails::SpecTests.const_set cls_const, cls
28
+ cls
29
+ end
30
+ end
@@ -7,6 +7,7 @@ module MiniTestSpecRails
7
7
  config.before_initialize do |_app|
8
8
  require 'active_support'
9
9
  require 'minitest-spec-rails/init/active_support'
10
+ require 'minitest-spec-rails/parallelize'
10
11
  ActiveSupport.on_load(:action_controller) do
11
12
  require 'minitest-spec-rails/init/action_controller'
12
13
  require 'minitest-spec-rails/init/action_dispatch'
@@ -20,7 +21,9 @@ module MiniTestSpecRails
20
21
  end
21
22
 
22
23
  initializer 'minitest-spec-rails.action_view', after: 'action_view.setup_action_pack', group: :all do |_app|
23
- require 'minitest-spec-rails/init/action_view'
24
+ ActiveSupport.on_load(:action_view) do
25
+ require 'minitest-spec-rails/init/action_view'
26
+ end
24
27
  end
25
28
 
26
29
  initializer 'minitest-spec-rails.mini_shoulda', group: :all do |app|
@@ -1,3 +1,3 @@
1
1
  module MiniTestSpecRails
2
- VERSION = '5.5.0'.freeze
2
+ VERSION = '6.0.4'.freeze
3
3
  end
@@ -16,8 +16,8 @@ Gem::Specification.new do |gem|
16
16
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
17
  gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
18
18
  gem.require_paths = ['lib']
19
- gem.add_runtime_dependency 'minitest', '~> 5.0'
20
- gem.add_runtime_dependency 'rails', '>= 4.1'
19
+ gem.add_runtime_dependency 'minitest', '>= 5.0'
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'
@@ -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
- config.secret_token = '012345678901234567890123456789'
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,31 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-spec-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.5.0
4
+ version: 6.0.4
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-01-22 00:00:00.000000000 Z
11
+ date: 2021-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '5.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rails
28
+ name: railties
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -89,9 +89,9 @@ executables: []
89
89
  extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
+ - ".github/workflows/ci.yml"
92
93
  - ".gitignore"
93
94
  - ".rubocop.yml"
94
- - ".travis.yml"
95
95
  - Appraisals
96
96
  - CHANGELOG.md
97
97
  - CODE_OF_CONDUCT.md
@@ -99,14 +99,12 @@ files:
99
99
  - MIT-LICENSE
100
100
  - README.md
101
101
  - Rakefile
102
- - gemfiles/rails41.gemfile
103
- - gemfiles/rails41.gemfile.lock
104
- - gemfiles/rails42.gemfile
105
- - gemfiles/rails42.gemfile.lock
106
- - gemfiles/rails50.gemfile
107
- - gemfiles/rails50.gemfile.lock
108
- - gemfiles/rails51.gemfile
109
- - gemfiles/rails51.gemfile.lock
102
+ - gemfiles/rails_v5.1.x.gemfile
103
+ - gemfiles/rails_v5.1.x.gemfile.lock
104
+ - gemfiles/rails_v5.2.x.gemfile
105
+ - gemfiles/rails_v5.2.x.gemfile.lock
106
+ - gemfiles/rails_v6.0.x.gemfile
107
+ - gemfiles/rails_v6.0.x.gemfile.lock
110
108
  - lib/minitest-spec-rails.rb
111
109
  - lib/minitest-spec-rails/dsl.rb
112
110
  - lib/minitest-spec-rails/init/action_controller.rb
@@ -116,6 +114,7 @@ files:
116
114
  - lib/minitest-spec-rails/init/active_job.rb
117
115
  - lib/minitest-spec-rails/init/active_support.rb
118
116
  - lib/minitest-spec-rails/init/mini_shoulda.rb
117
+ - lib/minitest-spec-rails/parallelize.rb
119
118
  - lib/minitest-spec-rails/railtie.rb
120
119
  - lib/minitest-spec-rails/version.rb
121
120
  - minitest-spec-rails.gemspec
@@ -126,6 +125,7 @@ files:
126
125
  - test/cases/active_job_test.rb
127
126
  - test/cases/active_support_test.rb
128
127
  - test/cases/mini_shoulda_test.rb
128
+ - test/dummy_app/app/assets/config/manifest.js
129
129
  - test/dummy_app/app/controllers/application_controller.rb
130
130
  - test/dummy_app/app/controllers/users_controller.rb
131
131
  - test/dummy_app/app/helpers/application_helper.rb
@@ -171,8 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  - !ruby/object:Gem::Version
172
172
  version: '0'
173
173
  requirements: []
174
- rubyforge_project:
175
- rubygems_version: 2.4.5.1
174
+ rubygems_version: 3.1.4
176
175
  signing_key:
177
176
  specification_version: 4
178
177
  summary: Make Rails Use MiniTest::Spec!
@@ -184,6 +183,7 @@ test_files:
184
183
  - test/cases/active_job_test.rb
185
184
  - test/cases/active_support_test.rb
186
185
  - test/cases/mini_shoulda_test.rb
186
+ - test/dummy_app/app/assets/config/manifest.js
187
187
  - test/dummy_app/app/controllers/application_controller.rb
188
188
  - test/dummy_app/app/controllers/users_controller.rb
189
189
  - test/dummy_app/app/helpers/application_helper.rb
data/.travis.yml DELETED
@@ -1,25 +0,0 @@
1
- sudo: false
2
- cache: bundler
3
- rvm:
4
- - 2.1
5
- - 2.2.5
6
- - 2.3.1
7
- gemfile:
8
- - gemfiles/rails41.gemfile
9
- - gemfiles/rails42.gemfile
10
- - gemfiles/rails50.gemfile
11
- - gemfiles/rails51.gemfile
12
- install:
13
- - gem install rubocop -v 0.57.2
14
- - gem install bundler -v 1.17.3
15
- - bundle --version
16
- - bundle install
17
- script:
18
- - bundle exec rake test
19
- - rubocop
20
- matrix:
21
- exclude:
22
- - rvm: 2.1
23
- gemfile: gemfiles/rails50.gemfile
24
- - rvm: 2.1
25
- gemfile: gemfiles/rails51.gemfile
@@ -1,95 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- minitest-spec-rails (5.5.0)
5
- minitest (~> 5.0)
6
- rails (>= 4.1)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actionmailer (4.1.16)
12
- actionpack (= 4.1.16)
13
- actionview (= 4.1.16)
14
- mail (~> 2.5, >= 2.5.4)
15
- actionpack (4.1.16)
16
- actionview (= 4.1.16)
17
- activesupport (= 4.1.16)
18
- rack (~> 1.5.2)
19
- rack-test (~> 0.6.2)
20
- actionview (4.1.16)
21
- activesupport (= 4.1.16)
22
- builder (~> 3.1)
23
- erubis (~> 2.7.0)
24
- activemodel (4.1.16)
25
- activesupport (= 4.1.16)
26
- builder (~> 3.1)
27
- activerecord (4.1.16)
28
- activemodel (= 4.1.16)
29
- activesupport (= 4.1.16)
30
- arel (~> 5.0.0)
31
- activesupport (4.1.16)
32
- i18n (~> 0.6, >= 0.6.9)
33
- json (~> 1.7, >= 1.7.7)
34
- minitest (~> 5.1)
35
- thread_safe (~> 0.1)
36
- tzinfo (~> 1.1)
37
- appraisal (2.2.0)
38
- bundler
39
- rake
40
- thor (>= 0.14.0)
41
- arel (5.0.1.20140414130214)
42
- builder (3.2.3)
43
- concurrent-ruby (1.1.4)
44
- erubis (2.7.0)
45
- i18n (0.9.5)
46
- concurrent-ruby (~> 1.0)
47
- json (1.8.6)
48
- mail (2.7.1)
49
- mini_mime (>= 0.1.1)
50
- mini_mime (1.0.1)
51
- minitest (5.11.3)
52
- rack (1.5.5)
53
- rack-test (0.6.3)
54
- rack (>= 1.0)
55
- rails (4.1.16)
56
- actionmailer (= 4.1.16)
57
- actionpack (= 4.1.16)
58
- actionview (= 4.1.16)
59
- activemodel (= 4.1.16)
60
- activerecord (= 4.1.16)
61
- activesupport (= 4.1.16)
62
- bundler (>= 1.3.0, < 2.0)
63
- railties (= 4.1.16)
64
- sprockets-rails (~> 2.0)
65
- railties (4.1.16)
66
- actionpack (= 4.1.16)
67
- activesupport (= 4.1.16)
68
- rake (>= 0.8.7)
69
- thor (>= 0.18.1, < 2.0)
70
- rake (12.3.2)
71
- sprockets (3.7.2)
72
- concurrent-ruby (~> 1.0)
73
- rack (> 1, < 3)
74
- sprockets-rails (2.3.3)
75
- actionpack (>= 3.0)
76
- activesupport (>= 3.0)
77
- sprockets (>= 2.8, < 4.0)
78
- sqlite3 (1.3.13)
79
- thor (0.20.3)
80
- thread_safe (0.3.6)
81
- tzinfo (1.2.5)
82
- thread_safe (~> 0.1)
83
-
84
- PLATFORMS
85
- ruby
86
-
87
- DEPENDENCIES
88
- appraisal
89
- minitest-spec-rails!
90
- rails (~> 4.1.0)
91
- rake
92
- sqlite3
93
-
94
- BUNDLED WITH
95
- 1.17.2