maildown 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +34 -0
  4. data/app/assets/javascripts/maildown/application.js +13 -0
  5. data/app/assets/stylesheets/maildown/application.css +13 -0
  6. data/app/controllers/maildown/application_controller.rb +4 -0
  7. data/app/helpers/maildown/application_helper.rb +4 -0
  8. data/app/views/layouts/maildown/application.html.erb +14 -0
  9. data/config/routes.rb +2 -0
  10. data/lib/maildown/engine.rb +5 -0
  11. data/lib/maildown/ext/action_mailer.rb +17 -0
  12. data/lib/maildown/version.rb +3 -0
  13. data/lib/maildown.rb +40 -0
  14. data/lib/tasks/maildown_tasks.rake +4 -0
  15. data/test/dummy/README.rdoc +28 -0
  16. data/test/dummy/Rakefile +6 -0
  17. data/test/dummy/app/assets/javascripts/application.js +13 -0
  18. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  19. data/test/dummy/app/controllers/application_controller.rb +5 -0
  20. data/test/dummy/app/helpers/application_helper.rb +2 -0
  21. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  22. data/test/dummy/bin/bundle +3 -0
  23. data/test/dummy/bin/rails +4 -0
  24. data/test/dummy/bin/rake +4 -0
  25. data/test/dummy/config/application.rb +23 -0
  26. data/test/dummy/config/boot.rb +5 -0
  27. data/test/dummy/config/database.yml +25 -0
  28. data/test/dummy/config/environment.rb +5 -0
  29. data/test/dummy/config/environments/development.rb +29 -0
  30. data/test/dummy/config/environments/production.rb +80 -0
  31. data/test/dummy/config/environments/test.rb +36 -0
  32. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  33. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  34. data/test/dummy/config/initializers/inflections.rb +16 -0
  35. data/test/dummy/config/initializers/mime_types.rb +5 -0
  36. data/test/dummy/config/initializers/secret_token.rb +12 -0
  37. data/test/dummy/config/initializers/session_store.rb +3 -0
  38. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  39. data/test/dummy/config/locales/en.yml +23 -0
  40. data/test/dummy/config/routes.rb +4 -0
  41. data/test/dummy/config.ru +4 -0
  42. data/test/dummy/db/test.sqlite3 +0 -0
  43. data/test/dummy/log/test.log +425 -0
  44. data/test/dummy/public/404.html +58 -0
  45. data/test/dummy/public/422.html +58 -0
  46. data/test/dummy/public/500.html +57 -0
  47. data/test/dummy/public/favicon.ico +0 -0
  48. data/test/integration/navigation_test.rb +10 -0
  49. data/test/maildown_test.rb +7 -0
  50. data/test/test_helper.rb +40 -0
  51. data/test/unit/ext_action_mailer_test.rb +20 -0
  52. data/test/unit/maildown_test.rb +15 -0
  53. metadata +176 -0
@@ -0,0 +1,425 @@
1
+  (0.2ms) begin transaction
2
+ -------------------
3
+ MaildownTest: test_
4
+ -------------------
5
+  (0.1ms) rollback transaction
6
+  (0.1ms) begin transaction
7
+ ------------------------
8
+ MaildownTest: test_truth
9
+ ------------------------
10
+  (0.0ms) rollback transaction
11
+  (0.2ms) begin transaction
12
+ -------------------
13
+ MaildownTest: test_
14
+ -------------------
15
+  (0.2ms) rollback transaction
16
+  (0.1ms) begin transaction
17
+ ------------------------
18
+ MaildownTest: test_truth
19
+ ------------------------
20
+  (0.1ms) rollback transaction
21
+  (0.2ms) begin transaction
22
+ -------------------
23
+ MaildownTest: test_
24
+ -------------------
25
+  (0.1ms) rollback transaction
26
+  (0.1ms) begin transaction
27
+ ------------------------
28
+ MaildownTest: test_truth
29
+ ------------------------
30
+  (0.0ms) rollback transaction
31
+  (0.3ms) begin transaction
32
+ ------------------------------------
33
+ MaildownTest: test_no_md_in_response
34
+ ------------------------------------
35
+  (0.0ms) rollback transaction
36
+  (0.0ms) begin transaction
37
+ ------------------------------------
38
+ MaildownTest: test_parse_md_response
39
+ ------------------------------------
40
+  (0.1ms) rollback transaction
41
+  (0.0ms) begin transaction
42
+ ------------------------
43
+ MaildownTest: test_truth
44
+ ------------------------
45
+  (0.0ms) rollback transaction
46
+  (0.3ms) begin transaction
47
+ --------------------------
48
+ ExtActionMailerTest: test_
49
+ --------------------------
50
+  (0.2ms) rollback transaction
51
+  (0.1ms) begin transaction
52
+ ------------------------------------
53
+ MaildownTest: test_no_md_in_response
54
+ ------------------------------------
55
+  (0.1ms) rollback transaction
56
+  (0.1ms) begin transaction
57
+ ------------------------------------
58
+ MaildownTest: test_parse_md_response
59
+ ------------------------------------
60
+  (0.1ms) rollback transaction
61
+  (0.1ms) begin transaction
62
+ ------------------------
63
+ MaildownTest: test_truth
64
+ ------------------------
65
+  (0.1ms) rollback transaction
66
+  (0.2ms) begin transaction
67
+ --------------------------
68
+ ExtActionMailerTest: test_
69
+ --------------------------
70
+  (0.1ms) rollback transaction
71
+  (0.1ms) begin transaction
72
+ ------------------------------------
73
+ MaildownTest: test_no_md_in_response
74
+ ------------------------------------
75
+  (0.1ms) rollback transaction
76
+  (0.0ms) begin transaction
77
+ ------------------------------------
78
+ MaildownTest: test_parse_md_response
79
+ ------------------------------------
80
+  (0.1ms) rollback transaction
81
+  (0.0ms) begin transaction
82
+ ------------------------
83
+ MaildownTest: test_truth
84
+ ------------------------
85
+  (0.0ms) rollback transaction
86
+  (0.2ms) begin transaction
87
+ --------------------------
88
+ ExtActionMailerTest: test_
89
+ --------------------------
90
+  (0.2ms) rollback transaction
91
+  (0.1ms) begin transaction
92
+ ------------------------------------
93
+ MaildownTest: test_no_md_in_response
94
+ ------------------------------------
95
+  (0.1ms) rollback transaction
96
+  (0.1ms) begin transaction
97
+ ------------------------------------
98
+ MaildownTest: test_parse_md_response
99
+ ------------------------------------
100
+  (0.1ms) rollback transaction
101
+  (0.0ms) begin transaction
102
+ ------------------------
103
+ MaildownTest: test_truth
104
+ ------------------------
105
+  (0.0ms) rollback transaction
106
+  (0.2ms) begin transaction
107
+ --------------------------
108
+ ExtActionMailerTest: test_
109
+ --------------------------
110
+  (0.2ms) rollback transaction
111
+  (0.1ms) begin transaction
112
+ ------------------------------------
113
+ MaildownTest: test_no_md_in_response
114
+ ------------------------------------
115
+  (0.1ms) rollback transaction
116
+  (0.0ms) begin transaction
117
+ ------------------------------------
118
+ MaildownTest: test_parse_md_response
119
+ ------------------------------------
120
+  (0.1ms) rollback transaction
121
+  (0.1ms) begin transaction
122
+ ------------------------
123
+ MaildownTest: test_truth
124
+ ------------------------
125
+  (0.1ms) rollback transaction
126
+  (0.2ms) begin transaction
127
+ --------------------------
128
+ ExtActionMailerTest: test_
129
+ --------------------------
130
+  (0.2ms) rollback transaction
131
+  (0.1ms) begin transaction
132
+ ------------------------------------
133
+ MaildownTest: test_no_md_in_response
134
+ ------------------------------------
135
+  (0.1ms) rollback transaction
136
+  (0.1ms) begin transaction
137
+ ------------------------------------
138
+ MaildownTest: test_parse_md_response
139
+ ------------------------------------
140
+  (0.1ms) rollback transaction
141
+  (0.0ms) begin transaction
142
+ ------------------------
143
+ MaildownTest: test_truth
144
+ ------------------------
145
+  (0.0ms) rollback transaction
146
+  (0.2ms) begin transaction
147
+ --------------------------
148
+ ExtActionMailerTest: test_
149
+ --------------------------
150
+  (0.0ms) rollback transaction
151
+  (0.0ms) begin transaction
152
+ ------------------------------------
153
+ MaildownTest: test_no_md_in_response
154
+ ------------------------------------
155
+  (0.0ms) rollback transaction
156
+  (0.0ms) begin transaction
157
+ ------------------------------------
158
+ MaildownTest: test_parse_md_response
159
+ ------------------------------------
160
+  (0.1ms) rollback transaction
161
+  (0.0ms) begin transaction
162
+ ------------------------
163
+ MaildownTest: test_truth
164
+ ------------------------
165
+  (0.0ms) rollback transaction
166
+  (0.2ms) begin transaction
167
+ --------------------------
168
+ ExtActionMailerTest: test_
169
+ --------------------------
170
+  (0.0ms) rollback transaction
171
+  (0.0ms) begin transaction
172
+ ------------------------------------
173
+ MaildownTest: test_no_md_in_response
174
+ ------------------------------------
175
+  (0.0ms) rollback transaction
176
+  (0.1ms) begin transaction
177
+ ------------------------------------
178
+ MaildownTest: test_parse_md_response
179
+ ------------------------------------
180
+  (0.1ms) rollback transaction
181
+  (0.1ms) begin transaction
182
+ ------------------------
183
+ MaildownTest: test_truth
184
+ ------------------------
185
+  (0.0ms) rollback transaction
186
+  (0.2ms) begin transaction
187
+ --------------------------
188
+ ExtActionMailerTest: test_
189
+ --------------------------
190
+  (0.2ms) rollback transaction
191
+  (0.1ms) begin transaction
192
+ ------------------------------------
193
+ MaildownTest: test_no_md_in_response
194
+ ------------------------------------
195
+  (0.1ms) rollback transaction
196
+  (0.1ms) begin transaction
197
+ ------------------------------------
198
+ MaildownTest: test_parse_md_response
199
+ ------------------------------------
200
+  (0.1ms) rollback transaction
201
+  (0.1ms) begin transaction
202
+ ------------------------
203
+ MaildownTest: test_truth
204
+ ------------------------
205
+  (0.0ms) rollback transaction
206
+  (0.2ms) begin transaction
207
+ --------------------------
208
+ ExtActionMailerTest: test_
209
+ --------------------------
210
+  (0.2ms) rollback transaction
211
+  (0.1ms) begin transaction
212
+ ------------------------------------
213
+ MaildownTest: test_no_md_in_response
214
+ ------------------------------------
215
+  (0.1ms) rollback transaction
216
+  (0.1ms) begin transaction
217
+ ------------------------------------
218
+ MaildownTest: test_parse_md_response
219
+ ------------------------------------
220
+  (0.1ms) rollback transaction
221
+  (0.0ms) begin transaction
222
+ ------------------------
223
+ MaildownTest: test_truth
224
+ ------------------------
225
+  (0.0ms) rollback transaction
226
+  (0.2ms) begin transaction
227
+ --------------------------
228
+ ExtActionMailerTest: test_
229
+ --------------------------
230
+  (0.1ms) rollback transaction
231
+  (0.1ms) begin transaction
232
+ ------------------------------------
233
+ MaildownTest: test_no_md_in_response
234
+ ------------------------------------
235
+  (0.0ms) rollback transaction
236
+  (0.1ms) begin transaction
237
+ ------------------------------------
238
+ MaildownTest: test_parse_md_response
239
+ ------------------------------------
240
+  (0.0ms) rollback transaction
241
+  (0.1ms) begin transaction
242
+ ------------------------
243
+ MaildownTest: test_truth
244
+ ------------------------
245
+  (0.0ms) rollback transaction
246
+  (0.2ms) begin transaction
247
+ --------------------------
248
+ ExtActionMailerTest: test_
249
+ --------------------------
250
+  (0.0ms) rollback transaction
251
+  (0.0ms) begin transaction
252
+ ------------------------------------
253
+ MaildownTest: test_no_md_in_response
254
+ ------------------------------------
255
+  (0.0ms) rollback transaction
256
+  (0.0ms) begin transaction
257
+ ------------------------------------
258
+ MaildownTest: test_parse_md_response
259
+ ------------------------------------
260
+  (0.0ms) rollback transaction
261
+  (0.0ms) begin transaction
262
+ ------------------------
263
+ MaildownTest: test_truth
264
+ ------------------------
265
+  (0.0ms) rollback transaction
266
+  (0.2ms) begin transaction
267
+ --------------------------
268
+ ExtActionMailerTest: test_
269
+ --------------------------
270
+  (0.0ms) rollback transaction
271
+  (0.0ms) begin transaction
272
+ ------------------------------------
273
+ MaildownTest: test_no_md_in_response
274
+ ------------------------------------
275
+  (0.0ms) rollback transaction
276
+  (0.1ms) begin transaction
277
+ ------------------------------------
278
+ MaildownTest: test_parse_md_response
279
+ ------------------------------------
280
+  (0.1ms) rollback transaction
281
+  (0.1ms) begin transaction
282
+ ------------------------
283
+ MaildownTest: test_truth
284
+ ------------------------
285
+  (0.0ms) rollback transaction
286
+  (0.2ms) begin transaction
287
+ -----------------------------------------------------------
288
+ ExtActionMailerTest: test_correctly_registered_md_mime_type
289
+ -----------------------------------------------------------
290
+  (0.0ms) rollback transaction
291
+  (0.1ms) begin transaction
292
+ -------------------------------------------------------------
293
+ ExtActionMailerTest: test_default_types_on_action_mailer_base
294
+ -------------------------------------------------------------
295
+  (0.2ms) rollback transaction
296
+  (0.1ms) begin transaction
297
+ ------------------------------------
298
+ MaildownTest: test_no_md_in_response
299
+ ------------------------------------
300
+  (0.1ms) rollback transaction
301
+  (0.1ms) begin transaction
302
+ ------------------------------------
303
+ MaildownTest: test_parse_md_response
304
+ ------------------------------------
305
+  (0.1ms) rollback transaction
306
+  (0.1ms) begin transaction
307
+ ------------------------
308
+ MaildownTest: test_truth
309
+ ------------------------
310
+  (0.0ms) rollback transaction
311
+  (0.2ms) begin transaction
312
+ -----------------------------------------------------------
313
+ ExtActionMailerTest: test_correctly_registered_md_mime_type
314
+ -----------------------------------------------------------
315
+  (0.1ms) rollback transaction
316
+  (0.0ms) begin transaction
317
+ -------------------------------------------------------------
318
+ ExtActionMailerTest: test_default_types_on_action_mailer_base
319
+ -------------------------------------------------------------
320
+  (0.0ms) rollback transaction
321
+  (0.0ms) begin transaction
322
+ ------------------------------------
323
+ MaildownTest: test_no_md_in_response
324
+ ------------------------------------
325
+  (0.1ms) rollback transaction
326
+  (0.0ms) begin transaction
327
+ ------------------------------------
328
+ MaildownTest: test_parse_md_response
329
+ ------------------------------------
330
+  (0.1ms) rollback transaction
331
+  (0.0ms) begin transaction
332
+ ------------------------
333
+ MaildownTest: test_truth
334
+ ------------------------
335
+  (0.0ms) rollback transaction
336
+  (0.2ms) begin transaction
337
+ -----------------------------------------------------------
338
+ ExtActionMailerTest: test_correctly_registered_md_mime_type
339
+ -----------------------------------------------------------
340
+  (0.0ms) rollback transaction
341
+  (0.0ms) begin transaction
342
+ -------------------------------------------------------------
343
+ ExtActionMailerTest: test_default_types_on_action_mailer_base
344
+ -------------------------------------------------------------
345
+  (0.0ms) rollback transaction
346
+  (0.0ms) begin transaction
347
+ ----------------------------------------------
348
+ ExtActionMailerTest: test_monkeypatch_location
349
+ ----------------------------------------------
350
+  (0.2ms) rollback transaction
351
+  (0.1ms) begin transaction
352
+ ------------------------------------
353
+ MaildownTest: test_no_md_in_response
354
+ ------------------------------------
355
+  (0.1ms) rollback transaction
356
+  (0.1ms) begin transaction
357
+ ------------------------------------
358
+ MaildownTest: test_parse_md_response
359
+ ------------------------------------
360
+  (0.1ms) rollback transaction
361
+  (0.0ms) begin transaction
362
+ ------------------------
363
+ MaildownTest: test_truth
364
+ ------------------------
365
+  (0.0ms) rollback transaction
366
+  (0.2ms) begin transaction
367
+ -----------------------------------------------------------
368
+ ExtActionMailerTest: test_correctly_registered_md_mime_type
369
+ -----------------------------------------------------------
370
+  (0.0ms) rollback transaction
371
+  (0.0ms) begin transaction
372
+ -------------------------------------------------------------
373
+ ExtActionMailerTest: test_default_types_on_action_mailer_base
374
+ -------------------------------------------------------------
375
+  (0.0ms) rollback transaction
376
+  (0.0ms) begin transaction
377
+ ----------------------------------------------
378
+ ExtActionMailerTest: test_monkeypatch_location
379
+ ----------------------------------------------
380
+  (0.0ms) rollback transaction
381
+  (0.0ms) begin transaction
382
+ ------------------------------------
383
+ MaildownTest: test_no_md_in_response
384
+ ------------------------------------
385
+  (0.0ms) rollback transaction
386
+  (0.0ms) begin transaction
387
+ ------------------------------------
388
+ MaildownTest: test_parse_md_response
389
+ ------------------------------------
390
+  (0.1ms) rollback transaction
391
+  (0.0ms) begin transaction
392
+ ------------------------
393
+ MaildownTest: test_truth
394
+ ------------------------
395
+  (0.0ms) rollback transaction
396
+  (0.2ms) begin transaction
397
+ -----------------------------------------------------------
398
+ ExtActionMailerTest: test_correctly_registered_md_mime_type
399
+ -----------------------------------------------------------
400
+  (0.0ms) rollback transaction
401
+  (0.0ms) begin transaction
402
+ -------------------------------------------------------------
403
+ ExtActionMailerTest: test_default_types_on_action_mailer_base
404
+ -------------------------------------------------------------
405
+  (0.0ms) rollback transaction
406
+  (0.0ms) begin transaction
407
+ ----------------------------------------------
408
+ ExtActionMailerTest: test_monkeypatch_location
409
+ ----------------------------------------------
410
+  (0.0ms) rollback transaction
411
+  (0.0ms) begin transaction
412
+ ------------------------------------
413
+ MaildownTest: test_no_md_in_response
414
+ ------------------------------------
415
+  (0.0ms) rollback transaction
416
+  (0.0ms) begin transaction
417
+ ------------------------------------
418
+ MaildownTest: test_parse_md_response
419
+ ------------------------------------
420
+  (0.1ms) rollback transaction
421
+  (0.1ms) begin transaction
422
+ ------------------------
423
+ MaildownTest: test_truth
424
+ ------------------------
425
+  (0.0ms) 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
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class MaildownTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, Maildown
6
+ end
7
+ end
@@ -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