minitest-rails 3.0.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +5 -0
- data/LICENSE +1 -1
- data/README.md +94 -0
- data/UPDATING.md +31 -0
- data/lib/generators/minitest.rb +17 -4
- data/lib/generators/minitest/controller/controller_generator.rb +6 -9
- data/lib/generators/minitest/controller/templates/{controller_spec.rb → functional_spec.rb.tt} +4 -4
- data/lib/generators/minitest/controller/templates/{controller_test.rb → functional_test.rb.tt} +3 -3
- data/lib/generators/minitest/generator/generator_generator.rb +3 -8
- data/lib/generators/minitest/generator/templates/{generator_spec.rb → generator_spec.rb.tt} +2 -2
- data/lib/generators/minitest/generator/templates/{generator_test.rb → generator_test.rb.tt} +1 -2
- data/lib/generators/minitest/helper/helper_generator.rb +5 -3
- data/lib/generators/minitest/install/install_generator.rb +19 -8
- data/lib/generators/minitest/install/templates/test/test_helper.rb.tt +16 -0
- data/lib/generators/minitest/integration/integration_generator.rb +12 -9
- data/lib/generators/minitest/integration/templates/integration_spec.rb.tt +9 -0
- data/lib/generators/minitest/integration/templates/integration_test.rb.tt +9 -0
- data/lib/generators/minitest/job/job_generator.rb +13 -10
- data/lib/generators/minitest/job/templates/unit_spec.rb.tt +9 -0
- data/lib/generators/minitest/job/templates/{job_test.rb → unit_test.rb.tt} +3 -3
- data/lib/generators/minitest/mailer/mailer_generator.rb +8 -11
- data/lib/generators/minitest/mailer/templates/functional_spec.rb.tt +21 -0
- data/lib/generators/minitest/mailer/templates/{mailer_test.rb → functional_test.rb.tt} +3 -3
- data/lib/generators/minitest/mailer/templates/{preview.rb → preview.rb.tt} +0 -0
- data/lib/generators/minitest/model/model_generator.rb +9 -12
- data/lib/generators/minitest/model/templates/{fixtures.yml → fixtures.yml.tt} +3 -3
- data/lib/generators/minitest/model/templates/unit_spec.rb.tt +9 -0
- data/lib/generators/minitest/model/templates/unit_test.rb.tt +9 -0
- data/lib/generators/minitest/plugin/plugin_generator.rb +15 -0
- data/lib/generators/minitest/plugin/templates/%file_name%_test.rb.tt +15 -0
- data/lib/generators/minitest/plugin/templates/test_helper.rb +2 -0
- data/lib/generators/minitest/scaffold/scaffold_generator.rb +21 -23
- data/lib/generators/minitest/scaffold/templates/api_functional_spec.rb.tt +42 -0
- data/lib/generators/minitest/scaffold/templates/api_functional_test.rb.tt +44 -0
- data/lib/generators/minitest/scaffold/templates/functional_spec.rb.tt +52 -0
- data/lib/generators/minitest/scaffold/templates/{controller_test.rb → functional_test.rb.tt} +16 -16
- data/lib/minitest/rails.rb +45 -108
- data/lib/minitest/rails/assertions.rb +5 -906
- data/lib/minitest/rails/assertions/action_dispatch.rb +356 -0
- data/lib/minitest/rails/assertions/action_mailer.rb +115 -0
- data/lib/minitest/rails/assertions/action_view.rb +356 -0
- data/lib/minitest/rails/assertions/active_job.rb +151 -0
- data/lib/minitest/rails/assertions/active_support.rb +29 -0
- data/lib/minitest/rails/expectations.rb +4 -565
- data/lib/minitest/rails/expectations/action_dispatch.rb +307 -0
- data/lib/minitest/rails/expectations/action_mailer.rb +136 -0
- data/lib/minitest/rails/expectations/active_job.rb +182 -0
- data/lib/minitest/rails/expectations/active_support.rb +42 -0
- data/lib/minitest/rails/railtie.rb +3 -2
- data/lib/minitest/rails/version.rb +1 -1
- metadata +72 -89
- data/.autotest +0 -23
- data/.gemtest +0 -0
- data/.travis.yml +0 -25
- data/CHANGELOG.rdoc +0 -223
- data/Gemfile +0 -7
- data/Manifest.txt +0 -76
- data/README.rdoc +0 -110
- data/Rakefile +0 -30
- data/gemfiles/5.0.gemfile +0 -5
- data/gemfiles/head.gemfile +0 -5
- data/lib/generators/.document +0 -0
- data/lib/generators/minitest/install/templates/test_helper.rb +0 -19
- data/lib/generators/minitest/integration/templates/integration_spec.rb +0 -8
- data/lib/generators/minitest/integration/templates/integration_test.rb +0 -7
- data/lib/generators/minitest/job/templates/job_spec.rb +0 -9
- data/lib/generators/minitest/mailer/templates/mailer_spec.rb +0 -20
- data/lib/generators/minitest/model/templates/model_spec.rb +0 -11
- data/lib/generators/minitest/model/templates/model_test.rb +0 -13
- data/lib/generators/minitest/scaffold/templates/api_controller_spec.rb +0 -42
- data/lib/generators/minitest/scaffold/templates/api_controller_test.rb +0 -44
- data/lib/generators/minitest/scaffold/templates/controller_spec.rb +0 -52
- data/lib/minitest/rails/constant_lookup.rb +0 -52
- data/lib/minitest/rails/controller.rb +0 -14
- data/minitest-rails.gemspec +0 -48
- data/tasks/test.rake +0 -29
- data/test/generators/test_controller_generator.rb +0 -58
- data/test/generators/test_generator_generator.rb +0 -58
- data/test/generators/test_helper_generator.rb +0 -34
- data/test/generators/test_install_generator.rb +0 -27
- data/test/generators/test_job_generator.rb +0 -45
- data/test/generators/test_mailer_generator.rb +0 -42
- data/test/generators/test_model_generator.rb +0 -80
- data/test/generators/test_scaffold_generator.rb +0 -26
- data/test/helper.rb +0 -93
- data/test/rails/action_dispatch/test_assertions.rb +0 -39
- data/test/rails/action_dispatch/test_expectations.rb +0 -39
- data/test/rails/action_dispatch/test_spec_type.rb +0 -49
- data/test/rails/action_mailer/test_mailers.rb +0 -109
- data/test/rails/action_mailer/test_spec_type.rb +0 -47
- data/test/rails/action_view/test_helpers.rb +0 -73
- data/test/rails/action_view/test_spec_type.rb +0 -58
- data/test/rails/active_job/test_assertions.rb +0 -46
- data/test/rails/active_job/test_expectations.rb +0 -55
- data/test/rails/active_job/test_spec_type.rb +0 -49
- data/test/rails/active_support/test_assertions.rb +0 -31
- data/test/rails/active_support/test_expectations.rb +0 -21
- data/test/rails/active_support/test_spec_type.rb +0 -28
- data/test/rails/generators/test_spec_type.rb +0 -45
- data/test/rails/test_constant_lookup.rb +0 -58
- data/test/test_sanity.rb +0 -7
@@ -0,0 +1,42 @@
|
|
1
|
+
module Minitest
|
2
|
+
module Rails
|
3
|
+
module Expectations
|
4
|
+
module ActiveSupport
|
5
|
+
##
|
6
|
+
# Test numeric difference between the return value of an expression as a
|
7
|
+
# result of what is evaluated.
|
8
|
+
#
|
9
|
+
# value { User.create password: "valid" }.must_differ "User.count"
|
10
|
+
# value { 3.times do
|
11
|
+
# User.create password: "valid"
|
12
|
+
# end }.must_differ "User.count", 3
|
13
|
+
#
|
14
|
+
# See also ActiveSupport::TestCase#assert_difference
|
15
|
+
# See https://api.rubyonrails.org/v5.0/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_difference
|
16
|
+
#
|
17
|
+
# :method: must_differ
|
18
|
+
# :args: expression, *args
|
19
|
+
infect_an_assertion :assert_difference, :must_differ, :block
|
20
|
+
|
21
|
+
##
|
22
|
+
# Assertion that the numeric result of evaluating an expression is not changed
|
23
|
+
# before and after invoking.
|
24
|
+
#
|
25
|
+
# value { User.new }.wont_differ "User.count"
|
26
|
+
#
|
27
|
+
# See also ActiveSupport::TestCase#refute_difference
|
28
|
+
# See https://api.rubyonrails.org/v5.0/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_no_difference
|
29
|
+
#
|
30
|
+
# :method: wont_differ
|
31
|
+
# :args: expression
|
32
|
+
infect_an_assertion :refute_difference, :wont_differ, :block
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
unless ENV["MT_NO_EXPECTATIONS"]
|
39
|
+
class Object # :nodoc:
|
40
|
+
include Minitest::Rails::Expectations::ActiveSupport
|
41
|
+
end
|
42
|
+
end
|
@@ -1,5 +1,6 @@
|
|
1
|
-
if defined?(Rake.application) &&
|
2
|
-
|
1
|
+
if defined?(Rake.application) &&
|
2
|
+
Rake.application.top_level_tasks.grep(/^test(?::|$)/).any?
|
3
|
+
ENV["RAILS_ENV"] ||= "test"
|
3
4
|
end
|
4
5
|
|
5
6
|
require "rails"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -16,193 +16,176 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '5.
|
19
|
+
version: '5.10'
|
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
|
-
version: '5.
|
26
|
+
version: '5.10'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: railties
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 5.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 5.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: minitest-autotest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '1.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '1.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: minitest-focus
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: '1.1'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: '1.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name: minitest-
|
70
|
+
name: minitest-rg
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '5.2'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '5.2'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rdoc
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '6.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '6.0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
98
|
+
name: rubocop
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
101
|
- - "~>"
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
103
|
+
version: 0.64.0
|
90
104
|
type: :development
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
108
|
- - "~>"
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
110
|
+
version: 0.64.0
|
97
111
|
description: Adds Minitest as the default testing library in Rails
|
98
112
|
email:
|
99
113
|
- mike@blowmage.com
|
100
114
|
executables: []
|
101
115
|
extensions: []
|
102
|
-
extra_rdoc_files:
|
103
|
-
- CHANGELOG.rdoc
|
104
|
-
- Manifest.txt
|
105
|
-
- README.rdoc
|
116
|
+
extra_rdoc_files: []
|
106
117
|
files:
|
107
|
-
-
|
108
|
-
- ".gemtest"
|
109
|
-
- ".travis.yml"
|
110
|
-
- CHANGELOG.rdoc
|
111
|
-
- Gemfile
|
118
|
+
- CHANGELOG.md
|
112
119
|
- LICENSE
|
113
|
-
-
|
114
|
-
-
|
115
|
-
- Rakefile
|
116
|
-
- gemfiles/5.0.gemfile
|
117
|
-
- gemfiles/head.gemfile
|
118
|
-
- lib/generators/.document
|
120
|
+
- README.md
|
121
|
+
- UPDATING.md
|
119
122
|
- lib/generators/minitest.rb
|
120
123
|
- lib/generators/minitest/controller/controller_generator.rb
|
121
|
-
- lib/generators/minitest/controller/templates/
|
122
|
-
- lib/generators/minitest/controller/templates/
|
124
|
+
- lib/generators/minitest/controller/templates/functional_spec.rb.tt
|
125
|
+
- lib/generators/minitest/controller/templates/functional_test.rb.tt
|
123
126
|
- lib/generators/minitest/generator/generator_generator.rb
|
124
|
-
- lib/generators/minitest/generator/templates/generator_spec.rb
|
125
|
-
- lib/generators/minitest/generator/templates/generator_test.rb
|
127
|
+
- lib/generators/minitest/generator/templates/generator_spec.rb.tt
|
128
|
+
- lib/generators/minitest/generator/templates/generator_test.rb.tt
|
126
129
|
- lib/generators/minitest/helper/helper_generator.rb
|
127
130
|
- lib/generators/minitest/install/install_generator.rb
|
128
|
-
- lib/generators/minitest/install/templates/test_helper.rb
|
131
|
+
- lib/generators/minitest/install/templates/test/test_helper.rb.tt
|
129
132
|
- lib/generators/minitest/integration/integration_generator.rb
|
130
|
-
- lib/generators/minitest/integration/templates/integration_spec.rb
|
131
|
-
- lib/generators/minitest/integration/templates/integration_test.rb
|
133
|
+
- lib/generators/minitest/integration/templates/integration_spec.rb.tt
|
134
|
+
- lib/generators/minitest/integration/templates/integration_test.rb.tt
|
132
135
|
- lib/generators/minitest/job/job_generator.rb
|
133
|
-
- lib/generators/minitest/job/templates/
|
134
|
-
- lib/generators/minitest/job/templates/
|
136
|
+
- lib/generators/minitest/job/templates/unit_spec.rb.tt
|
137
|
+
- lib/generators/minitest/job/templates/unit_test.rb.tt
|
135
138
|
- lib/generators/minitest/mailer/mailer_generator.rb
|
136
|
-
- lib/generators/minitest/mailer/templates/
|
137
|
-
- lib/generators/minitest/mailer/templates/
|
138
|
-
- lib/generators/minitest/mailer/templates/preview.rb
|
139
|
+
- lib/generators/minitest/mailer/templates/functional_spec.rb.tt
|
140
|
+
- lib/generators/minitest/mailer/templates/functional_test.rb.tt
|
141
|
+
- lib/generators/minitest/mailer/templates/preview.rb.tt
|
139
142
|
- lib/generators/minitest/model/model_generator.rb
|
140
|
-
- lib/generators/minitest/model/templates/fixtures.yml
|
141
|
-
- lib/generators/minitest/model/templates/
|
142
|
-
- lib/generators/minitest/model/templates/
|
143
|
+
- lib/generators/minitest/model/templates/fixtures.yml.tt
|
144
|
+
- lib/generators/minitest/model/templates/unit_spec.rb.tt
|
145
|
+
- lib/generators/minitest/model/templates/unit_test.rb.tt
|
146
|
+
- lib/generators/minitest/plugin/plugin_generator.rb
|
147
|
+
- lib/generators/minitest/plugin/templates/%file_name%_test.rb.tt
|
148
|
+
- lib/generators/minitest/plugin/templates/test_helper.rb
|
143
149
|
- lib/generators/minitest/scaffold/scaffold_generator.rb
|
144
|
-
- lib/generators/minitest/scaffold/templates/
|
145
|
-
- lib/generators/minitest/scaffold/templates/
|
146
|
-
- lib/generators/minitest/scaffold/templates/
|
147
|
-
- lib/generators/minitest/scaffold/templates/
|
150
|
+
- lib/generators/minitest/scaffold/templates/api_functional_spec.rb.tt
|
151
|
+
- lib/generators/minitest/scaffold/templates/api_functional_test.rb.tt
|
152
|
+
- lib/generators/minitest/scaffold/templates/functional_spec.rb.tt
|
153
|
+
- lib/generators/minitest/scaffold/templates/functional_test.rb.tt
|
148
154
|
- lib/minitest-rails.rb
|
149
155
|
- lib/minitest/rails.rb
|
150
156
|
- lib/minitest/rails/assertions.rb
|
151
|
-
- lib/minitest/rails/
|
152
|
-
- lib/minitest/rails/
|
157
|
+
- lib/minitest/rails/assertions/action_dispatch.rb
|
158
|
+
- lib/minitest/rails/assertions/action_mailer.rb
|
159
|
+
- lib/minitest/rails/assertions/action_view.rb
|
160
|
+
- lib/minitest/rails/assertions/active_job.rb
|
161
|
+
- lib/minitest/rails/assertions/active_support.rb
|
153
162
|
- lib/minitest/rails/expectations.rb
|
163
|
+
- lib/minitest/rails/expectations/action_dispatch.rb
|
164
|
+
- lib/minitest/rails/expectations/action_mailer.rb
|
165
|
+
- lib/minitest/rails/expectations/active_job.rb
|
166
|
+
- lib/minitest/rails/expectations/active_support.rb
|
154
167
|
- lib/minitest/rails/railtie.rb
|
155
168
|
- lib/minitest/rails/version.rb
|
156
|
-
- minitest-rails.gemspec
|
157
|
-
- tasks/test.rake
|
158
|
-
- test/generators/test_controller_generator.rb
|
159
|
-
- test/generators/test_generator_generator.rb
|
160
|
-
- test/generators/test_helper_generator.rb
|
161
|
-
- test/generators/test_install_generator.rb
|
162
|
-
- test/generators/test_job_generator.rb
|
163
|
-
- test/generators/test_mailer_generator.rb
|
164
|
-
- test/generators/test_model_generator.rb
|
165
|
-
- test/generators/test_scaffold_generator.rb
|
166
|
-
- test/helper.rb
|
167
|
-
- test/rails/action_dispatch/test_assertions.rb
|
168
|
-
- test/rails/action_dispatch/test_expectations.rb
|
169
|
-
- test/rails/action_dispatch/test_spec_type.rb
|
170
|
-
- test/rails/action_mailer/test_mailers.rb
|
171
|
-
- test/rails/action_mailer/test_spec_type.rb
|
172
|
-
- test/rails/action_view/test_helpers.rb
|
173
|
-
- test/rails/action_view/test_spec_type.rb
|
174
|
-
- test/rails/active_job/test_assertions.rb
|
175
|
-
- test/rails/active_job/test_expectations.rb
|
176
|
-
- test/rails/active_job/test_spec_type.rb
|
177
|
-
- test/rails/active_support/test_assertions.rb
|
178
|
-
- test/rails/active_support/test_expectations.rb
|
179
|
-
- test/rails/active_support/test_spec_type.rb
|
180
|
-
- test/rails/generators/test_spec_type.rb
|
181
|
-
- test/rails/test_constant_lookup.rb
|
182
|
-
- test/test_sanity.rb
|
183
169
|
homepage: http://blowmage.com/minitest-rails
|
184
170
|
licenses:
|
185
171
|
- MIT
|
186
172
|
metadata: {}
|
187
173
|
post_install_message:
|
188
|
-
rdoc_options:
|
189
|
-
- "--main"
|
190
|
-
- README.rdoc
|
174
|
+
rdoc_options: []
|
191
175
|
require_paths:
|
192
176
|
- lib
|
193
177
|
required_ruby_version: !ruby/object:Gem::Requirement
|
194
178
|
requirements:
|
195
179
|
- - ">="
|
196
180
|
- !ruby/object:Gem::Version
|
197
|
-
version:
|
181
|
+
version: 2.3.0
|
198
182
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
183
|
requirements:
|
200
184
|
- - ">="
|
201
185
|
- !ruby/object:Gem::Version
|
202
186
|
version: '0'
|
203
187
|
requirements: []
|
204
|
-
|
205
|
-
rubygems_version: 2.6.4
|
188
|
+
rubygems_version: 3.0.3
|
206
189
|
signing_key:
|
207
190
|
specification_version: 4
|
208
191
|
summary: Minitest integration for Rails
|
data/.autotest
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# -*- ruby -*-
|
2
|
-
|
3
|
-
require 'autotest/restart'
|
4
|
-
|
5
|
-
# Autotest.add_hook :initialize do |at|
|
6
|
-
# at.extra_files << "../some/external/dependency.rb"
|
7
|
-
#
|
8
|
-
# at.libs << ":../some/external"
|
9
|
-
#
|
10
|
-
# at.add_exception 'vendor'
|
11
|
-
#
|
12
|
-
# at.add_mapping(/dependency.rb/) do |f, _|
|
13
|
-
# at.files_matching(/test_.*rb$/)
|
14
|
-
# end
|
15
|
-
#
|
16
|
-
# %w(TestA TestB).each do |klass|
|
17
|
-
# at.extra_class_map[klass] = "test/test_misc.rb"
|
18
|
-
# end
|
19
|
-
# end
|
20
|
-
|
21
|
-
# Autotest.add_hook :run_command do |at|
|
22
|
-
# system "rake build"
|
23
|
-
# end
|
data/.gemtest
DELETED
File without changes
|
data/.travis.yml
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
---
|
2
|
-
before_install:
|
3
|
-
- gem update --system
|
4
|
-
- gem --version
|
5
|
-
language: ruby
|
6
|
-
notifications:
|
7
|
-
email:
|
8
|
-
- mike@blowmage.com
|
9
|
-
rvm:
|
10
|
-
- 2.3.1
|
11
|
-
- 2.3.0
|
12
|
-
- 2.2.4
|
13
|
-
- 2.2.3
|
14
|
-
- 2.2.2
|
15
|
-
- ruby-head
|
16
|
-
env:
|
17
|
-
- "RAILS_VERSION=5.0"
|
18
|
-
- "RAILS_VERSION=head"
|
19
|
-
notifications:
|
20
|
-
webhooks:
|
21
|
-
urls:
|
22
|
-
- https://webhooks.gitter.im/e/c3806b220bb40c23430e
|
23
|
-
on_success: change # options: [always|never|change] default: always
|
24
|
-
on_failure: always # options: [always|never|change] default: always
|
25
|
-
on_start: false # default: false
|
data/CHANGELOG.rdoc
DELETED
@@ -1,223 +0,0 @@
|
|
1
|
-
=== 3.0.0 / 2016-07-01
|
2
|
-
|
3
|
-
* Support Rails 5
|
4
|
-
|
5
|
-
* The spec DSL is now default.
|
6
|
-
* Controller specs now use ActionDispatch::IntegrationTest.
|
7
|
-
* Controller specs optionally use ActionController::TestCase when
|
8
|
-
rails-controller-testing gem is present.
|
9
|
-
|
10
|
-
https://github.com/blowmage/minitest-rails/compare/v2.2.0...v3.0.0
|
11
|
-
|
12
|
-
=== 2.2.0 / 2015-05-29
|
13
|
-
|
14
|
-
* Update to Minitest 5.7
|
15
|
-
* Use Value Monad for Expectations
|
16
|
-
* Active Job support (liseki)
|
17
|
-
* Documentation improvements (WendyBeth)
|
18
|
-
|
19
|
-
https://github.com/blowmage/minitest-rails/compare/v2.1.1...v2.2.0
|
20
|
-
|
21
|
-
=== 2.1.1 / 2014-10-28
|
22
|
-
|
23
|
-
* Fix scaffold generator to use accessor instead of ivar (isaacsloan)
|
24
|
-
* Add Gitter info to README
|
25
|
-
|
26
|
-
https://github.com/blowmage/minitest-rails/compare/v2.1.0...v2.1.1
|
27
|
-
|
28
|
-
=== 2.1.0 / 2014-07-08
|
29
|
-
|
30
|
-
* Allow use of additional_spec in Minitest's Spec DSL.
|
31
|
-
|
32
|
-
https://github.com/blowmage/minitest-rails/compare/v2.0.3...v2.1.0
|
33
|
-
|
34
|
-
=== 2.0.3 / 2014-06-11
|
35
|
-
|
36
|
-
* Fix bug in loading rake tasks (rmm5t)
|
37
|
-
|
38
|
-
https://github.com/blowmage/minitest-rails/compare/v2.0.2...v2.0.3
|
39
|
-
|
40
|
-
=== 2.0.2 / 2014-06-10
|
41
|
-
|
42
|
-
* Put an additional guard on the call to remove describe to make sure
|
43
|
-
* Remove unused testing module
|
44
|
-
|
45
|
-
https://github.com/blowmage/minitest-rails/compare/v2.0.1...v2.0.2
|
46
|
-
|
47
|
-
=== 2.0.1 / 2014-04-25
|
48
|
-
|
49
|
-
* Set RAILS_ENV in railtie (taq)
|
50
|
-
|
51
|
-
https://github.com/blowmage/minitest-rails/compare/v2.0.0...v2.0.1
|
52
|
-
|
53
|
-
=== 2.0.0 / 2014-04-21
|
54
|
-
|
55
|
-
Major release, specific to Rails 4.1+ and Minitest 5.
|
56
|
-
|
57
|
-
* Support additional descriptions in spec types
|
58
|
-
* describe PlainOldRubyObject, :model do
|
59
|
-
* describe "Users can do things", :integration do
|
60
|
-
* Support Generators in default config
|
61
|
-
* No longer need to require "minitest/rails/generators" in your test_helper.rb
|
62
|
-
* Removed <tt>minitest</tt> rake tasks
|
63
|
-
* Code is cleaner now that older Rubies and Rails are no longer supported
|
64
|
-
|
65
|
-
https://github.com/blowmage/minitest-rails/compare/v1.0.0...v2.0.0
|
66
|
-
|
67
|
-
=== 1.0.1 / 2014-04-15
|
68
|
-
|
69
|
-
* Add missing module_namespacing to Helper spec
|
70
|
-
|
71
|
-
https://github.com/blowmage/minitest-rails/compare/v1.0.0...v1.0.1
|
72
|
-
|
73
|
-
=== 1.0.0 / 2014-04-14
|
74
|
-
|
75
|
-
Yay! A 1.0.0 release, finally!
|
76
|
-
|
77
|
-
* New rake tasks
|
78
|
-
* rake minitest:quick - Runs default tests without DB prep
|
79
|
-
* rake minitest:all - Runs all test
|
80
|
-
* rake minitest:all:quick - Runs all tests without DB prep
|
81
|
-
* Add 'test' rake tasks if not already defined
|
82
|
-
* Set the MT_RAILS_NO_AUTORUN flag to stop autorun from being called
|
83
|
-
* Useful for integrating with zeus or other app loaders
|
84
|
-
* Support Minitest 5's API
|
85
|
-
* Allow use of Minitest::Test instead of MiniTest::Unit::TestCase
|
86
|
-
* Add AS::TC assertions and expectations
|
87
|
-
* Add MT_RAILS_NO_AUTORUN flag
|
88
|
-
|
89
|
-
https://github.com/blowmage/minitest-rails/compare/v0.9.2...v1.0.0
|
90
|
-
|
91
|
-
=== 0.9.2 / 2013-04-05
|
92
|
-
|
93
|
-
* Fix nested describes in ruby 1.8
|
94
|
-
|
95
|
-
https://github.com/blowmage/minitest-rails/compare/v0.9.1...v0.9.2
|
96
|
-
|
97
|
-
=== 0.9.1 / 2013-03-18
|
98
|
-
|
99
|
-
* Remove describe method
|
100
|
-
|
101
|
-
https://github.com/blowmage/minitest-rails/compare/v0.9.0...v0.9.1
|
102
|
-
|
103
|
-
=== 0.9.0 / 2013-03-18
|
104
|
-
|
105
|
-
This release marks a new direction for minitest-rails. Deprecations have been added for the features that won't make it to 1.0. See instructions for upgrading to 0.9:
|
106
|
-
|
107
|
-
https://github.com/blowmage/minitest-rails/wiki/Upgrading-to-0.9
|
108
|
-
|
109
|
-
* 1 major enhancement:
|
110
|
-
|
111
|
-
* Use newly added MiniTest::Spec::DSL
|
112
|
-
|
113
|
-
* 2 minor enhancements:
|
114
|
-
|
115
|
-
* Add deprecation warnings
|
116
|
-
* Switch back to the default test helper name, for easier integration in Rails 4.
|
117
|
-
* Update Rails 4 Gemfile
|
118
|
-
|
119
|
-
https://github.com/blowmage/minitest-rails/compare/v0.5.2...v0.9.0
|
120
|
-
|
121
|
-
=== 0.5.2 / 2013-02-21
|
122
|
-
|
123
|
-
* Allow running of single test file
|
124
|
-
* Update README
|
125
|
-
* Update install instructions
|
126
|
-
* Fix test helper's instructions
|
127
|
-
|
128
|
-
https://github.com/blowmage/minitest-rails/compare/v0.5.1...v0.5.2
|
129
|
-
|
130
|
-
=== 0.5.1 / 2013-01-24
|
131
|
-
|
132
|
-
* Add route test generator
|
133
|
-
* Several changes in rake tasks
|
134
|
-
|
135
|
-
https://github.com/blowmage/minitest-rails/compare/v0.5...v0.5.1
|
136
|
-
|
137
|
-
=== 0.5 / 2013-01-11
|
138
|
-
|
139
|
-
* Add support for Rails 4
|
140
|
-
* Use ActiveSupport::TestCase instead of MiniTest::Rails::ActiveSupport::TestCase.
|
141
|
-
* Add MiniTest::Rails::Testing
|
142
|
-
* Use MiniTest::Rails::Testing.default_tasks instead of MINITEST_TASKS.
|
143
|
-
|
144
|
-
https://github.com/blowmage/minitest-rails/compare/v0.3...v0.5
|
145
|
-
|
146
|
-
=== 0.3 / 2012-11-02
|
147
|
-
|
148
|
-
* Mailer lookup for spec-style tests
|
149
|
-
* Helper lookup for spec-style tests
|
150
|
-
* Scaffold controller test green out of the box
|
151
|
-
* Bump minitest dependency version to 4.0
|
152
|
-
* Fixed builds in travis
|
153
|
-
* Added convenience rake tasks for dealing with gemfiles
|
154
|
-
|
155
|
-
https://github.com/blowmage/minitest-rails/compare/v0.2...v0.3
|
156
|
-
|
157
|
-
=== 0.2 / 2012-09-19
|
158
|
-
|
159
|
-
* Add support for Autotest (closes #64)
|
160
|
-
* Override default rake task (closes #67)
|
161
|
-
* Add support for matching view specs names (closes #70)
|
162
|
-
* Fixed travis builds (closes #69)
|
163
|
-
* Fix bug with registering AS:TestCase (closes #73)
|
164
|
-
|
165
|
-
https://github.com/blowmage/minitest-rails/compare/v0.1.3...v0.2
|
166
|
-
|
167
|
-
=== 0.1.3 / 2012-08-02
|
168
|
-
|
169
|
-
* Significant improvements to nested describe blocks (closes #58)
|
170
|
-
* Tests no longer need write permission to the filesystem
|
171
|
-
|
172
|
-
https://github.com/blowmage/minitest-rails/compare/v0.1.2...v0.1.3
|
173
|
-
|
174
|
-
=== 0.1.2 / 2012-07-26
|
175
|
-
|
176
|
-
* Fix bug when ActionMailer isn't loaded (closes #66)
|
177
|
-
* Allow specs to use strings in `describe` blocks
|
178
|
-
|
179
|
-
https://github.com/blowmage/minitest-rails/compare/v0.1.1...v0.1.2
|
180
|
-
|
181
|
-
=== 0.1.1 / 2012-07-17
|
182
|
-
|
183
|
-
* Improved rake tasks
|
184
|
-
* Improved Rails 3.0 support
|
185
|
-
* Fixed bug with nested describes
|
186
|
-
|
187
|
-
https://github.com/blowmage/minitest-rails/compare/v0.1...v0.1.1
|
188
|
-
|
189
|
-
=== 0.1 / 2012-07-09
|
190
|
-
|
191
|
-
This is a major change. The approach used is the same approach used in Rails 4. This version is very different than the 0.0.x versions.
|
192
|
-
|
193
|
-
https://github.com/blowmage/minitest-rails/compare/v0.0.7...v0.1
|
194
|
-
|
195
|
-
=== 0.0.7 / 2012-05-19
|
196
|
-
|
197
|
-
* Use the Minitest constant
|
198
|
-
|
199
|
-
https://github.com/blowmage/minitest-rails/compare/v0.0.6...v0.0.7
|
200
|
-
|
201
|
-
=== 0.0.6 / 2012-03-14
|
202
|
-
|
203
|
-
https://github.com/blowmage/minitest-rails/compare/v0.0.5...v0.0.6
|
204
|
-
|
205
|
-
=== 0.0.5 / 2011-06-22
|
206
|
-
|
207
|
-
https://github.com/blowmage/minitest-rails/compare/v0.0.4...v0.0.5
|
208
|
-
|
209
|
-
=== 0.0.4 / 2011-06-08
|
210
|
-
|
211
|
-
Add scaffold, bump to Rails 3.1.0.rc2
|
212
|
-
|
213
|
-
https://github.com/blowmage/minitest-rails/compare/v0.0.2...v0.0.4
|
214
|
-
|
215
|
-
=== 0.0.2 / 2011-06-02
|
216
|
-
|
217
|
-
Incomplete, but no longer in (known) a broken state.
|
218
|
-
|
219
|
-
=== 0.0.1 / 2011-05-24
|
220
|
-
|
221
|
-
* 1 major enhancement
|
222
|
-
|
223
|
-
* Hello world!
|