unified_partials 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +32 -0
  4. data/app/helpers/unified_partial_helper.rb +23 -0
  5. data/app/views/attribute_presentation/_associated.html.erb +3 -0
  6. data/app/views/attribute_presentation/_default.html.erb +2 -0
  7. data/app/views/attribute_presentation/_heading.html.erb +1 -0
  8. data/app/views/attribute_presentation/_label.html.erb +1 -0
  9. data/app/views/attribute_presentation/_layout.html.erb +1 -0
  10. data/lib/tasks/unified_partials_tasks.rake +4 -0
  11. data/lib/unified_partials/engine.rb +4 -0
  12. data/lib/unified_partials/version.rb +3 -0
  13. data/lib/unified_partials.rb +4 -0
  14. data/test/dummy/README.rdoc +28 -0
  15. data/test/dummy/Rakefile +6 -0
  16. data/test/dummy/app/assets/javascripts/application.js +13 -0
  17. data/test/dummy/app/assets/javascripts/books.js +2 -0
  18. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  19. data/test/dummy/app/assets/stylesheets/books.css +4 -0
  20. data/test/dummy/app/controllers/application_controller.rb +5 -0
  21. data/test/dummy/app/controllers/books_controller.rb +5 -0
  22. data/test/dummy/app/helpers/application_helper.rb +2 -0
  23. data/test/dummy/app/helpers/books_helper.rb +2 -0
  24. data/test/dummy/app/models/book.rb +2 -0
  25. data/test/dummy/app/views/attribute_presentation/_layout.html.erb +2 -0
  26. data/test/dummy/app/views/books/index.html.erb +5 -0
  27. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  28. data/test/dummy/bin/bundle +3 -0
  29. data/test/dummy/bin/rails +4 -0
  30. data/test/dummy/bin/rake +4 -0
  31. data/test/dummy/config/application.rb +23 -0
  32. data/test/dummy/config/boot.rb +5 -0
  33. data/test/dummy/config/database.yml +25 -0
  34. data/test/dummy/config/environment.rb +5 -0
  35. data/test/dummy/config/environments/development.rb +29 -0
  36. data/test/dummy/config/environments/production.rb +80 -0
  37. data/test/dummy/config/environments/test.rb +36 -0
  38. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  39. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  40. data/test/dummy/config/initializers/inflections.rb +16 -0
  41. data/test/dummy/config/initializers/mime_types.rb +5 -0
  42. data/test/dummy/config/initializers/secret_token.rb +12 -0
  43. data/test/dummy/config/initializers/session_store.rb +3 -0
  44. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  45. data/test/dummy/config/locales/en.yml +23 -0
  46. data/test/dummy/config/routes.rb +57 -0
  47. data/test/dummy/config.ru +4 -0
  48. data/test/dummy/db/development.sqlite3 +0 -0
  49. data/test/dummy/db/migrate/20131014134500_create_books.rb +10 -0
  50. data/test/dummy/db/schema.rb +23 -0
  51. data/test/dummy/db/seeds.rb +1 -0
  52. data/test/dummy/db/test.sqlite3 +0 -0
  53. data/test/dummy/log/development.log +299 -0
  54. data/test/dummy/log/test.log +362 -0
  55. data/test/dummy/public/404.html +58 -0
  56. data/test/dummy/public/422.html +58 -0
  57. data/test/dummy/public/500.html +57 -0
  58. data/test/dummy/public/favicon.ico +0 -0
  59. data/test/dummy/test/fixtures/books.yml +9 -0
  60. data/test/dummy/test/views/index.html.erb_test.rb +14 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/2afdbb3902a1be5d2f045cfc837903a3 +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/5a15e52e84502f9fceb7ea04020f65fc +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/64db420a3a172209bf0b734312a4888a +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/67ff5689dfcb845e86b74aa2d787edef +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/787b6a4c2386b5edf98f90508b85cc3d +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/b950c5d77d355ffc7f0edf748e04b138 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  73. data/test/test_helper.rb +15 -0
  74. data/test/unified_partials_test.rb +7 -0
  75. metadata +206 -0
@@ -0,0 +1,362 @@
1
+  (0.3ms) begin transaction
2
+ ------------------------------------------
3
+ BooksControllerTest: test_should_get_index
4
+ ------------------------------------------
5
+ Processing by BooksController#index as HTML
6
+ Book Load (0.1ms) SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
7
+ SQLite3::SQLException: no such table: books: SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
8
+ Completed 500 Internal Server Error in 4ms
9
+  (0.1ms) rollback transaction
10
+  (0.1ms) begin transaction
11
+ -------------------------------
12
+ UnifiedPartialsTest: test_truth
13
+ -------------------------------
14
+  (0.1ms) rollback transaction
15
+  (0.3ms) begin transaction
16
+ ------------------------------------------
17
+ BooksControllerTest: test_should_get_index
18
+ ------------------------------------------
19
+ Processing by BooksController#index as HTML
20
+ Book Load (0.2ms) SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
21
+ SQLite3::SQLException: no such table: books: SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
22
+ Completed 500 Internal Server Error in 4ms
23
+  (0.1ms) rollback transaction
24
+  (0.1ms) begin transaction
25
+ ---------------------
26
+ IndexTest: test_title
27
+ ---------------------
28
+  (0.1ms) rollback transaction
29
+  (0.1ms) begin transaction
30
+ -------------------------------
31
+ UnifiedPartialsTest: test_truth
32
+ -------------------------------
33
+  (0.1ms) rollback transaction
34
+  (0.2ms) begin transaction
35
+ ------------------------------------------
36
+ BooksControllerTest: test_should_get_index
37
+ ------------------------------------------
38
+ Processing by BooksController#index as HTML
39
+ Book Load (0.1ms) SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
40
+ SQLite3::SQLException: no such table: books: SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
41
+ Completed 500 Internal Server Error in 3ms
42
+  (0.1ms) rollback transaction
43
+  (0.1ms) begin transaction
44
+ ---------------------
45
+ IndexTest: test_title
46
+ ---------------------
47
+  (0.1ms) rollback transaction
48
+  (0.1ms) begin transaction
49
+ -------------------------------
50
+ UnifiedPartialsTest: test_truth
51
+ -------------------------------
52
+  (0.1ms) rollback transaction
53
+  (0.2ms) begin transaction
54
+ ------------------------------------------
55
+ BooksControllerTest: test_should_get_index
56
+ ------------------------------------------
57
+ Processing by BooksController#index as HTML
58
+ Book Load (0.1ms) SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
59
+ SQLite3::SQLException: no such table: books: SELECT "books".* FROM "books" ORDER BY "books"."id" ASC LIMIT 1
60
+ Completed 500 Internal Server Error in 3ms
61
+  (0.1ms) rollback transaction
62
+  (0.1ms) begin transaction
63
+ ---------------------
64
+ IndexTest: test_title
65
+ ---------------------
66
+  (0.1ms) rollback transaction
67
+  (0.1ms) begin transaction
68
+ -------------------------------
69
+ UnifiedPartialsTest: test_truth
70
+ -------------------------------
71
+  (0.1ms) rollback transaction
72
+  (0.2ms) begin transaction
73
+ ---------------------
74
+ IndexTest: test_title
75
+ ---------------------
76
+  (0.1ms) rollback transaction
77
+  (0.1ms) begin transaction
78
+ -------------------------------
79
+ UnifiedPartialsTest: test_truth
80
+ -------------------------------
81
+  (0.1ms) rollback transaction
82
+  (0.3ms) begin transaction
83
+ ---------------------
84
+ IndexTest: test_title
85
+ ---------------------
86
+  (0.1ms) rollback transaction
87
+  (0.1ms) begin transaction
88
+ -------------------------------
89
+ UnifiedPartialsTest: test_truth
90
+ -------------------------------
91
+  (0.1ms) rollback transaction
92
+  (0.2ms) begin transaction
93
+ ---------------------
94
+ IndexTest: test_title
95
+ ---------------------
96
+  (0.1ms) rollback transaction
97
+  (0.1ms) begin transaction
98
+ -------------------------------
99
+ UnifiedPartialsTest: test_truth
100
+ -------------------------------
101
+  (0.1ms) rollback transaction
102
+  (0.2ms) begin transaction
103
+ ---------------------
104
+ IndexTest: test_title
105
+ ---------------------
106
+  (0.1ms) rollback transaction
107
+  (0.1ms) begin transaction
108
+ -------------------------------
109
+ UnifiedPartialsTest: test_truth
110
+ -------------------------------
111
+  (0.1ms) rollback transaction
112
+  (0.2ms) begin transaction
113
+ ---------------------
114
+ IndexTest: test_title
115
+ ---------------------
116
+  (0.1ms) rollback transaction
117
+  (0.1ms) begin transaction
118
+ -------------------------------
119
+ UnifiedPartialsTest: test_truth
120
+ -------------------------------
121
+  (0.1ms) rollback transaction
122
+  (0.2ms) begin transaction
123
+ ---------------------
124
+ IndexTest: test_title
125
+ ---------------------
126
+  (0.1ms) rollback transaction
127
+  (0.1ms) begin transaction
128
+ -------------------------------
129
+ UnifiedPartialsTest: test_truth
130
+ -------------------------------
131
+  (0.1ms) rollback transaction
132
+  (0.2ms) begin transaction
133
+ ---------------------
134
+ IndexTest: test_title
135
+ ---------------------
136
+ Rendered books/index.html.erb (4.5ms)
137
+  (0.1ms) rollback transaction
138
+  (0.1ms) begin transaction
139
+ -------------------------------
140
+ UnifiedPartialsTest: test_truth
141
+ -------------------------------
142
+  (0.1ms) rollback transaction
143
+  (0.2ms) begin transaction
144
+ ---------------------
145
+ IndexTest: test_title
146
+ ---------------------
147
+ Rendered books/index.html.erb (4.3ms)
148
+  (0.1ms) rollback transaction
149
+  (0.1ms) begin transaction
150
+ -------------------------------
151
+ UnifiedPartialsTest: test_truth
152
+ -------------------------------
153
+  (0.1ms) rollback transaction
154
+  (0.2ms) begin transaction
155
+ ---------------------
156
+ IndexTest: test_title
157
+ ---------------------
158
+ Rendered books/index.html.erb (4.1ms)
159
+  (0.1ms) rollback transaction
160
+  (0.1ms) begin transaction
161
+ -------------------------------
162
+ UnifiedPartialsTest: test_truth
163
+ -------------------------------
164
+  (0.1ms) rollback transaction
165
+  (0.2ms) begin transaction
166
+ ---------------------
167
+ IndexTest: test_title
168
+ ---------------------
169
+  (0.1ms) rollback transaction
170
+  (0.1ms) begin transaction
171
+ -------------------------------
172
+ UnifiedPartialsTest: test_truth
173
+ -------------------------------
174
+  (0.1ms) rollback transaction
175
+  (0.2ms) begin transaction
176
+ ---------------------
177
+ IndexTest: test_title
178
+ ---------------------
179
+  (0.1ms) rollback transaction
180
+  (0.0ms) begin transaction
181
+ -------------------------------
182
+ UnifiedPartialsTest: test_truth
183
+ -------------------------------
184
+  (0.1ms) rollback transaction
185
+  (0.2ms) begin transaction
186
+ ---------------------
187
+ IndexTest: test_title
188
+ ---------------------
189
+ Rendered books/index.html.erb (5.3ms)
190
+  (0.1ms) rollback transaction
191
+  (0.1ms) begin transaction
192
+ -------------------------------
193
+ UnifiedPartialsTest: test_truth
194
+ -------------------------------
195
+  (0.1ms) rollback transaction
196
+  (0.2ms) begin transaction
197
+ ---------------------
198
+ IndexTest: test_title
199
+ ---------------------
200
+  (0.1ms) rollback transaction
201
+  (0.1ms) begin transaction
202
+ -------------------------------
203
+ UnifiedPartialsTest: test_truth
204
+ -------------------------------
205
+  (0.1ms) rollback transaction
206
+  (0.2ms) begin transaction
207
+ ---------------------
208
+ IndexTest: test_title
209
+ ---------------------
210
+ Rendered books/index.html.erb (4.1ms)
211
+  (0.1ms) rollback transaction
212
+  (0.1ms) begin transaction
213
+ -------------------------------
214
+ UnifiedPartialsTest: test_truth
215
+ -------------------------------
216
+  (0.1ms) rollback transaction
217
+  (0.2ms) begin transaction
218
+ ---------------------
219
+ IndexTest: test_title
220
+ ---------------------
221
+ Rendered books/index.html.erb (336020.2ms)
222
+  (0.1ms) rollback transaction
223
+  (0.1ms) begin transaction
224
+ -------------------------------
225
+ UnifiedPartialsTest: test_truth
226
+ -------------------------------
227
+  (0.1ms) rollback transaction
228
+  (0.2ms) begin transaction
229
+ ---------------------
230
+ IndexTest: test_title
231
+ ---------------------
232
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.4ms)
233
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_heading.html.erb (3.6ms)
234
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
235
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_default.html.erb (0.4ms)
236
+ Rendered books/index.html.erb (24.5ms)
237
+  (0.1ms) rollback transaction
238
+  (0.1ms) begin transaction
239
+ -------------------------------
240
+ UnifiedPartialsTest: test_truth
241
+ -------------------------------
242
+  (0.1ms) rollback transaction
243
+  (0.2ms) begin transaction
244
+ ---------------------
245
+ IndexTest: test_title
246
+ ---------------------
247
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.5ms)
248
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_heading.html.erb (2.9ms)
249
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
250
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_default.html.erb (0.4ms)
251
+ Rendered books/index.html.erb (19.4ms)
252
+  (0.1ms) rollback transaction
253
+  (0.1ms) begin transaction
254
+ -------------------------------
255
+ UnifiedPartialsTest: test_truth
256
+ -------------------------------
257
+  (0.1ms) rollback transaction
258
+  (0.2ms) begin transaction
259
+ ----------------------
260
+ IndexTest: test_layout
261
+ ----------------------
262
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.5ms)
263
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_heading.html.erb (2.9ms)
264
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
265
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_default.html.erb (0.4ms)
266
+ Rendered books/index.html.erb (19.6ms)
267
+  (0.1ms) rollback transaction
268
+  (0.1ms) begin transaction
269
+ -------------------------------
270
+ UnifiedPartialsTest: test_truth
271
+ -------------------------------
272
+  (0.1ms) rollback transaction
273
+  (0.2ms) begin transaction
274
+ ----------------------
275
+ IndexTest: test_layout
276
+ ----------------------
277
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.5ms)
278
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_heading.html.erb (3.0ms)
279
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.2ms)
280
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_default.html.erb (0.4ms)
281
+ Rendered books/index.html.erb (20.2ms)
282
+  (0.1ms) rollback transaction
283
+  (0.1ms) begin transaction
284
+ -------------------------------
285
+ UnifiedPartialsTest: test_truth
286
+ -------------------------------
287
+  (0.1ms) rollback transaction
288
+  (0.2ms) begin transaction
289
+ ----------------------
290
+ IndexTest: test_layout
291
+ ----------------------
292
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.5ms)
293
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_heading.html.erb (2.8ms)
294
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
295
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_default.html.erb (0.4ms)
296
+ Rendered books/index.html.erb (19.1ms)
297
+  (0.1ms) rollback transaction
298
+  (0.1ms) begin transaction
299
+ -------------------------------
300
+ UnifiedPartialsTest: test_truth
301
+ -------------------------------
302
+  (0.1ms) rollback transaction
303
+  (0.3ms) begin transaction
304
+ ----------------------
305
+ IndexTest: test_layout
306
+ ----------------------
307
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.4ms)
308
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_heading.html.erb (3.0ms)
309
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
310
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_default.html.erb (0.4ms)
311
+ Rendered books/index.html.erb (19.3ms)
312
+  (0.1ms) rollback transaction
313
+  (0.1ms) begin transaction
314
+ -------------------------------
315
+ UnifiedPartialsTest: test_truth
316
+ -------------------------------
317
+  (0.1ms) rollback transaction
318
+  (0.2ms) begin transaction
319
+ ----------------------
320
+ IndexTest: test_layout
321
+ ----------------------
322
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.5ms)
323
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_heading.html.erb (2.8ms)
324
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
325
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_default.html.erb (0.5ms)
326
+ Rendered books/index.html.erb (19.8ms)
327
+  (0.1ms) rollback transaction
328
+  (0.1ms) begin transaction
329
+ -------------------------------
330
+ UnifiedPartialsTest: test_truth
331
+ -------------------------------
332
+  (0.1ms) rollback transaction
333
+  (0.3ms) begin transaction
334
+ ----------------------
335
+ IndexTest: test_layout
336
+ ----------------------
337
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.5ms)
338
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_heading.html.erb (2.9ms)
339
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
340
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_default.html.erb (0.4ms)
341
+ Rendered books/index.html.erb (19.8ms)
342
+  (0.1ms) rollback transaction
343
+  (0.1ms) begin transaction
344
+ -------------------------------
345
+ UnifiedPartialsTest: test_truth
346
+ -------------------------------
347
+  (0.1ms) rollback transaction
348
+  (0.2ms) begin transaction
349
+ ----------------------
350
+ IndexTest: test_layout
351
+ ----------------------
352
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.4ms)
353
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_heading.html.erb (3.2ms)
354
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_label.html.erb (0.1ms)
355
+ Rendered /Users/samsm/Repositories/mine/unified_partials/app/views/attribute_presentation/_default.html.erb (0.5ms)
356
+ Rendered books/index.html.erb (20.4ms)
357
+  (0.1ms) rollback transaction
358
+  (0.1ms) begin transaction
359
+ -------------------------------
360
+ UnifiedPartialsTest: test_truth
361
+ -------------------------------
362
+  (0.1ms) 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,9 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ title: MyString
5
+ author: MyString
6
+
7
+ two:
8
+ title: MyString
9
+ author: MyString
@@ -0,0 +1,14 @@
1
+ require 'test_helper'
2
+ require 'ostruct'
3
+
4
+ class IndexTest < ActionView::TestCase
5
+ def setup
6
+ @book = OpenStruct.new title: "Test Title", author: "Test Author"
7
+ render template: "books/index"
8
+ end
9
+ def test_layout
10
+ assert_select 'div.custom-show-attribute' do
11
+ assert_select 'h1', text: "Test Title"
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,15 @@
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
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class UnifiedPartialsTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, UnifiedPartials
6
+ end
7
+ end