maildown 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +34 -0
- data/app/assets/javascripts/maildown/application.js +13 -0
- data/app/assets/stylesheets/maildown/application.css +13 -0
- data/app/controllers/maildown/application_controller.rb +4 -0
- data/app/helpers/maildown/application_helper.rb +4 -0
- data/app/views/layouts/maildown/application.html.erb +14 -0
- data/config/routes.rb +2 -0
- data/lib/maildown/engine.rb +5 -0
- data/lib/maildown/ext/action_mailer.rb +17 -0
- data/lib/maildown/version.rb +3 -0
- data/lib/maildown.rb +40 -0
- data/lib/tasks/maildown_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +425 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/maildown_test.rb +7 -0
- data/test/test_helper.rb +40 -0
- data/test/unit/ext_action_mailer_test.rb +20 -0
- data/test/unit/maildown_test.rb +15 -0
- metadata +176 -0
@@ -0,0 +1,425 @@
|
|
1
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2
|
+
-------------------
|
3
|
+
MaildownTest: test_
|
4
|
+
-------------------
|
5
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
+
------------------------
|
8
|
+
MaildownTest: test_truth
|
9
|
+
------------------------
|
10
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
12
|
+
-------------------
|
13
|
+
MaildownTest: test_
|
14
|
+
-------------------
|
15
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
16
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17
|
+
------------------------
|
18
|
+
MaildownTest: test_truth
|
19
|
+
------------------------
|
20
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
21
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
22
|
+
-------------------
|
23
|
+
MaildownTest: test_
|
24
|
+
-------------------
|
25
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
26
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
27
|
+
------------------------
|
28
|
+
MaildownTest: test_truth
|
29
|
+
------------------------
|
30
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
31
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
32
|
+
------------------------------------
|
33
|
+
MaildownTest: test_no_md_in_response
|
34
|
+
------------------------------------
|
35
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
36
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
37
|
+
------------------------------------
|
38
|
+
MaildownTest: test_parse_md_response
|
39
|
+
------------------------------------
|
40
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
41
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
42
|
+
------------------------
|
43
|
+
MaildownTest: test_truth
|
44
|
+
------------------------
|
45
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
46
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
47
|
+
--------------------------
|
48
|
+
ExtActionMailerTest: test_
|
49
|
+
--------------------------
|
50
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
51
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
52
|
+
------------------------------------
|
53
|
+
MaildownTest: test_no_md_in_response
|
54
|
+
------------------------------------
|
55
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
56
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57
|
+
------------------------------------
|
58
|
+
MaildownTest: test_parse_md_response
|
59
|
+
------------------------------------
|
60
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
61
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
62
|
+
------------------------
|
63
|
+
MaildownTest: test_truth
|
64
|
+
------------------------
|
65
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
66
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
67
|
+
--------------------------
|
68
|
+
ExtActionMailerTest: test_
|
69
|
+
--------------------------
|
70
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
72
|
+
------------------------------------
|
73
|
+
MaildownTest: test_no_md_in_response
|
74
|
+
------------------------------------
|
75
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
76
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
77
|
+
------------------------------------
|
78
|
+
MaildownTest: test_parse_md_response
|
79
|
+
------------------------------------
|
80
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
81
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
82
|
+
------------------------
|
83
|
+
MaildownTest: test_truth
|
84
|
+
------------------------
|
85
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
86
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
87
|
+
--------------------------
|
88
|
+
ExtActionMailerTest: test_
|
89
|
+
--------------------------
|
90
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
91
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
92
|
+
------------------------------------
|
93
|
+
MaildownTest: test_no_md_in_response
|
94
|
+
------------------------------------
|
95
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
96
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
97
|
+
------------------------------------
|
98
|
+
MaildownTest: test_parse_md_response
|
99
|
+
------------------------------------
|
100
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
101
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
102
|
+
------------------------
|
103
|
+
MaildownTest: test_truth
|
104
|
+
------------------------
|
105
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
106
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
107
|
+
--------------------------
|
108
|
+
ExtActionMailerTest: test_
|
109
|
+
--------------------------
|
110
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
111
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
112
|
+
------------------------------------
|
113
|
+
MaildownTest: test_no_md_in_response
|
114
|
+
------------------------------------
|
115
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
116
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
117
|
+
------------------------------------
|
118
|
+
MaildownTest: test_parse_md_response
|
119
|
+
------------------------------------
|
120
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
121
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
122
|
+
------------------------
|
123
|
+
MaildownTest: test_truth
|
124
|
+
------------------------
|
125
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
126
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
127
|
+
--------------------------
|
128
|
+
ExtActionMailerTest: test_
|
129
|
+
--------------------------
|
130
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
131
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
132
|
+
------------------------------------
|
133
|
+
MaildownTest: test_no_md_in_response
|
134
|
+
------------------------------------
|
135
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
136
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
137
|
+
------------------------------------
|
138
|
+
MaildownTest: test_parse_md_response
|
139
|
+
------------------------------------
|
140
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
141
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
142
|
+
------------------------
|
143
|
+
MaildownTest: test_truth
|
144
|
+
------------------------
|
145
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
146
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
147
|
+
--------------------------
|
148
|
+
ExtActionMailerTest: test_
|
149
|
+
--------------------------
|
150
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
151
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
152
|
+
------------------------------------
|
153
|
+
MaildownTest: test_no_md_in_response
|
154
|
+
------------------------------------
|
155
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
156
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
157
|
+
------------------------------------
|
158
|
+
MaildownTest: test_parse_md_response
|
159
|
+
------------------------------------
|
160
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
161
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
162
|
+
------------------------
|
163
|
+
MaildownTest: test_truth
|
164
|
+
------------------------
|
165
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
166
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
167
|
+
--------------------------
|
168
|
+
ExtActionMailerTest: test_
|
169
|
+
--------------------------
|
170
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
171
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
172
|
+
------------------------------------
|
173
|
+
MaildownTest: test_no_md_in_response
|
174
|
+
------------------------------------
|
175
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
176
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
177
|
+
------------------------------------
|
178
|
+
MaildownTest: test_parse_md_response
|
179
|
+
------------------------------------
|
180
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
181
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
182
|
+
------------------------
|
183
|
+
MaildownTest: test_truth
|
184
|
+
------------------------
|
185
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
186
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
187
|
+
--------------------------
|
188
|
+
ExtActionMailerTest: test_
|
189
|
+
--------------------------
|
190
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
191
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
192
|
+
------------------------------------
|
193
|
+
MaildownTest: test_no_md_in_response
|
194
|
+
------------------------------------
|
195
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
196
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
197
|
+
------------------------------------
|
198
|
+
MaildownTest: test_parse_md_response
|
199
|
+
------------------------------------
|
200
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
201
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
202
|
+
------------------------
|
203
|
+
MaildownTest: test_truth
|
204
|
+
------------------------
|
205
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
206
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
207
|
+
--------------------------
|
208
|
+
ExtActionMailerTest: test_
|
209
|
+
--------------------------
|
210
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
211
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
212
|
+
------------------------------------
|
213
|
+
MaildownTest: test_no_md_in_response
|
214
|
+
------------------------------------
|
215
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
216
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
217
|
+
------------------------------------
|
218
|
+
MaildownTest: test_parse_md_response
|
219
|
+
------------------------------------
|
220
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
221
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
222
|
+
------------------------
|
223
|
+
MaildownTest: test_truth
|
224
|
+
------------------------
|
225
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
226
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
227
|
+
--------------------------
|
228
|
+
ExtActionMailerTest: test_
|
229
|
+
--------------------------
|
230
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
231
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
232
|
+
------------------------------------
|
233
|
+
MaildownTest: test_no_md_in_response
|
234
|
+
------------------------------------
|
235
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
236
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
237
|
+
------------------------------------
|
238
|
+
MaildownTest: test_parse_md_response
|
239
|
+
------------------------------------
|
240
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
241
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
242
|
+
------------------------
|
243
|
+
MaildownTest: test_truth
|
244
|
+
------------------------
|
245
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
246
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
247
|
+
--------------------------
|
248
|
+
ExtActionMailerTest: test_
|
249
|
+
--------------------------
|
250
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
251
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
252
|
+
------------------------------------
|
253
|
+
MaildownTest: test_no_md_in_response
|
254
|
+
------------------------------------
|
255
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
256
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
257
|
+
------------------------------------
|
258
|
+
MaildownTest: test_parse_md_response
|
259
|
+
------------------------------------
|
260
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
261
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
262
|
+
------------------------
|
263
|
+
MaildownTest: test_truth
|
264
|
+
------------------------
|
265
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
266
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
267
|
+
--------------------------
|
268
|
+
ExtActionMailerTest: test_
|
269
|
+
--------------------------
|
270
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
271
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
272
|
+
------------------------------------
|
273
|
+
MaildownTest: test_no_md_in_response
|
274
|
+
------------------------------------
|
275
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
276
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
277
|
+
------------------------------------
|
278
|
+
MaildownTest: test_parse_md_response
|
279
|
+
------------------------------------
|
280
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
281
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
282
|
+
------------------------
|
283
|
+
MaildownTest: test_truth
|
284
|
+
------------------------
|
285
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
286
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
287
|
+
-----------------------------------------------------------
|
288
|
+
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
289
|
+
-----------------------------------------------------------
|
290
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
291
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
292
|
+
-------------------------------------------------------------
|
293
|
+
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
294
|
+
-------------------------------------------------------------
|
295
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
296
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
297
|
+
------------------------------------
|
298
|
+
MaildownTest: test_no_md_in_response
|
299
|
+
------------------------------------
|
300
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
301
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
302
|
+
------------------------------------
|
303
|
+
MaildownTest: test_parse_md_response
|
304
|
+
------------------------------------
|
305
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
306
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
307
|
+
------------------------
|
308
|
+
MaildownTest: test_truth
|
309
|
+
------------------------
|
310
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
311
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
312
|
+
-----------------------------------------------------------
|
313
|
+
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
314
|
+
-----------------------------------------------------------
|
315
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
316
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
317
|
+
-------------------------------------------------------------
|
318
|
+
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
319
|
+
-------------------------------------------------------------
|
320
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
321
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
322
|
+
------------------------------------
|
323
|
+
MaildownTest: test_no_md_in_response
|
324
|
+
------------------------------------
|
325
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
326
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
327
|
+
------------------------------------
|
328
|
+
MaildownTest: test_parse_md_response
|
329
|
+
------------------------------------
|
330
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
331
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
332
|
+
------------------------
|
333
|
+
MaildownTest: test_truth
|
334
|
+
------------------------
|
335
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
336
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
337
|
+
-----------------------------------------------------------
|
338
|
+
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
339
|
+
-----------------------------------------------------------
|
340
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
341
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
342
|
+
-------------------------------------------------------------
|
343
|
+
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
344
|
+
-------------------------------------------------------------
|
345
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
346
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
347
|
+
----------------------------------------------
|
348
|
+
ExtActionMailerTest: test_monkeypatch_location
|
349
|
+
----------------------------------------------
|
350
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
351
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
352
|
+
------------------------------------
|
353
|
+
MaildownTest: test_no_md_in_response
|
354
|
+
------------------------------------
|
355
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
356
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
357
|
+
------------------------------------
|
358
|
+
MaildownTest: test_parse_md_response
|
359
|
+
------------------------------------
|
360
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
361
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
362
|
+
------------------------
|
363
|
+
MaildownTest: test_truth
|
364
|
+
------------------------
|
365
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
366
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
367
|
+
-----------------------------------------------------------
|
368
|
+
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
369
|
+
-----------------------------------------------------------
|
370
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
371
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
372
|
+
-------------------------------------------------------------
|
373
|
+
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
374
|
+
-------------------------------------------------------------
|
375
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
376
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
377
|
+
----------------------------------------------
|
378
|
+
ExtActionMailerTest: test_monkeypatch_location
|
379
|
+
----------------------------------------------
|
380
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
381
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
382
|
+
------------------------------------
|
383
|
+
MaildownTest: test_no_md_in_response
|
384
|
+
------------------------------------
|
385
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
386
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
387
|
+
------------------------------------
|
388
|
+
MaildownTest: test_parse_md_response
|
389
|
+
------------------------------------
|
390
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
391
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
392
|
+
------------------------
|
393
|
+
MaildownTest: test_truth
|
394
|
+
------------------------
|
395
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
396
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
397
|
+
-----------------------------------------------------------
|
398
|
+
ExtActionMailerTest: test_correctly_registered_md_mime_type
|
399
|
+
-----------------------------------------------------------
|
400
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
401
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
402
|
+
-------------------------------------------------------------
|
403
|
+
ExtActionMailerTest: test_default_types_on_action_mailer_base
|
404
|
+
-------------------------------------------------------------
|
405
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
406
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
407
|
+
----------------------------------------------
|
408
|
+
ExtActionMailerTest: test_monkeypatch_location
|
409
|
+
----------------------------------------------
|
410
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
411
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
412
|
+
------------------------------------
|
413
|
+
MaildownTest: test_no_md_in_response
|
414
|
+
------------------------------------
|
415
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
416
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
417
|
+
------------------------------------
|
418
|
+
MaildownTest: test_parse_md_response
|
419
|
+
------------------------------------
|
420
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
421
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
422
|
+
------------------------
|
423
|
+
MaildownTest: test_truth
|
424
|
+
------------------------
|
425
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/404.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
54
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/422.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The change you wanted was rejected.</h1>
|
54
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/500.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>We're sorry, but something went wrong.</h1>
|
54
|
+
</div>
|
55
|
+
<p>If you are the application owner check the logs for more information.</p>
|
56
|
+
</body>
|
57
|
+
</html>
|
File without changes
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|
16
|
+
|
17
|
+
|
18
|
+
def orig_text_response
|
19
|
+
{:body=>"Hi,\n\n##\n\n\nName:\n test_to_yaml_with_time_with_zone_should_not_raise_exception\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L7\nName:\n test_roundtrip\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L20\nName:\n test_roundtrip_serialized_column\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L27\nName:\n test_encode_with_coder\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L32\nName:\n test_psych_roundtrip\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L39\nName:\n test_psych_roundtrip_new_object\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L46\n\n--\n@schneems\n", :content_type=>"text/plain"}.dup
|
20
|
+
end
|
21
|
+
|
22
|
+
def orig_html_response
|
23
|
+
{:body=>"Hi,\n\n##\n\n\nName:\n test_to_yaml_with_time_with_zone_should_not_raise_exception\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L7\nName:\n test_roundtrip\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L20\nName:\n test_roundtrip_serialized_column\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L27\nName:\n test_encode_with_coder\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L32\nName:\n test_psych_roundtrip\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L39\nName:\n test_psych_roundtrip_new_object\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L46\n\n--\n@schneems\n", :content_type=>"text/html"}.dup
|
24
|
+
end
|
25
|
+
|
26
|
+
def md_response
|
27
|
+
{:body=>"Hi,\n\n##\n\n\nName:\n test_to_yaml_with_time_with_zone_should_not_raise_exception\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L7\nName:\n test_roundtrip\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L20\nName:\n test_roundtrip_serialized_column\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L27\nName:\n test_encode_with_coder\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L32\nName:\n test_psych_roundtrip\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L39\nName:\n test_psych_roundtrip_new_object\nLocation:\n https://github.com/rails/rails/blob/master/test/cases/yaml_serialization_test.rb/#L46\n\n--\n@schneems\n", :content_type=>"text/md"}.dup
|
28
|
+
end
|
29
|
+
|
30
|
+
def full_responses
|
31
|
+
[orig_text_response, orig_html_response, md_response].dup
|
32
|
+
end
|
33
|
+
|
34
|
+
def parsed_html_response
|
35
|
+
{body: Kramdown::Document.new(orig_text_response[:body]).to_html, content_type: "text/html"}
|
36
|
+
end
|
37
|
+
|
38
|
+
def parses_responses
|
39
|
+
[orig_text_response, parsed_html_response]
|
40
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class ExtActionMailerTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
test "correctly registered md mime type" do
|
6
|
+
assert_equal Mime::MD, Mime::Type.lookup("text/md")
|
7
|
+
assert_equal "text/md", Mime::MD.to_s
|
8
|
+
end
|
9
|
+
|
10
|
+
test "default types on action mailer base" do
|
11
|
+
expected = [:html, :text, :js, :css, :ics, :csv, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip, :md]
|
12
|
+
assert_equal expected, ActionMailer::Base.view_context_class.default_formats
|
13
|
+
end
|
14
|
+
|
15
|
+
test "monkeypatch location" do
|
16
|
+
monkeypatch = ActionMailer::Base.instance_method(:collect_responses)
|
17
|
+
path = monkeypatch.source_location.first
|
18
|
+
assert_match "maildown/ext/action_mailer.rb", path
|
19
|
+
end
|
20
|
+
end
|