@@ -172,10 +172,74 @@ def test_method_missing
172
172
assert_equal ( { 'headers' => 'test' } , response . headers )
173
173
end
174
174
175
+ def test_docker_exists
176
+ assert ( File . file? ( './Dockerfile' ) || File . file? ( './docker/Dockerfile' ) )
177
+ end
178
+
179
+ def test_docker_compose_exists
180
+ assert ( File . file? ( './docker-compose.yml' ) || File . file? ( './docker/docker-compose.yml' ) )
181
+ end
182
+
183
+ def test_env_sample_exists
184
+ assert ( File . file? ( './.env_sample' ) )
185
+ end
186
+
187
+ def test_gitignore_exists
188
+ assert ( File . file? ( './.gitignore' ) )
189
+ end
190
+
191
+ def test_travis_exists
192
+ assert ( File . file? ( './.travis.yml' ) )
193
+ end
194
+
195
+ def test_codeclimate_exists
196
+ assert ( File . file? ( './.codeclimate.yml' ) )
197
+ end
198
+
199
+ def test_changelog_exists
200
+ assert ( File . file? ( './CHANGELOG.md' ) )
201
+ end
202
+
203
+ def test_code_of_conduct_exists
204
+ assert ( File . file? ( './CODE_OF_CONDUCT.md' ) )
205
+ end
206
+
207
+ def test_contributing_exists
208
+ assert ( File . file? ( './CONTRIBUTING.md' ) )
209
+ end
210
+
211
+ def test_issue_template_exists
212
+ assert ( File . file? ( './.github/ISSUE_TEMPLATE' ) )
213
+ end
214
+
215
+ def test_license_exists
216
+ assert ( File . file? ( './LICENSE.md' ) || File . file? ( './LICENSE.txt' ) )
217
+ end
218
+
219
+ def test_pull_request_template_exists
220
+ assert ( File . file? ( './.github/PULL_REQUEST_TEMPLATE' ) )
221
+ end
222
+
223
+ def test_readme_exists
224
+ assert ( File . file? ( './README.md' ) )
225
+ end
226
+
227
+ def test_troubleshooting_exists
228
+ assert ( File . file? ( './TROUBLESHOOTING.md' ) )
229
+ end
230
+
231
+ def test_usage_exists
232
+ assert ( File . file? ( './USAGE.md' ) )
233
+ end
234
+
235
+ def test_use_cases_exists
236
+ assert ( File . file? ( './USE_CASES.md' ) )
237
+ end
238
+
175
239
def test_license_date_is_updated
176
240
license_end_year = IO . read ( 'LICENSE.txt' ) . match ( /Copyright \( c\) 2016-(\d {4}) SendGrid/ ) [ 1 ] . to_i
177
241
current_year = Time . new . year
178
-
179
242
assert_equal ( current_year , license_end_year )
180
243
end
244
+
181
245
end
0 commit comments