unified_partials 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 +32 -0
- data/app/helpers/unified_partial_helper.rb +23 -0
- data/app/views/attribute_presentation/_associated.html.erb +3 -0
- data/app/views/attribute_presentation/_default.html.erb +2 -0
- data/app/views/attribute_presentation/_heading.html.erb +1 -0
- data/app/views/attribute_presentation/_label.html.erb +1 -0
- data/app/views/attribute_presentation/_layout.html.erb +1 -0
- data/lib/tasks/unified_partials_tasks.rake +4 -0
- data/lib/unified_partials/engine.rb +4 -0
- data/lib/unified_partials/version.rb +3 -0
- data/lib/unified_partials.rb +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/javascripts/books.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/assets/stylesheets/books.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/books_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/books_helper.rb +2 -0
- data/test/dummy/app/models/book.rb +2 -0
- data/test/dummy/app/views/attribute_presentation/_layout.html.erb +2 -0
- data/test/dummy/app/views/books/index.html.erb +5 -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 +57 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20131014134500_create_books.rb +10 -0
- data/test/dummy/db/schema.rb +23 -0
- data/test/dummy/db/seeds.rb +1 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +299 -0
- data/test/dummy/log/test.log +362 -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/dummy/test/fixtures/books.yml +9 -0
- data/test/dummy/test/views/index.html.erb_test.rb +14 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2afdbb3902a1be5d2f045cfc837903a3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5a15e52e84502f9fceb7ea04020f65fc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/64db420a3a172209bf0b734312a4888a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/67ff5689dfcb845e86b74aa2d787edef +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/787b6a4c2386b5edf98f90508b85cc3d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b950c5d77d355ffc7f0edf748e04b138 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/test_helper.rb +15 -0
- data/test/unified_partials_test.rb +7 -0
- metadata +206 -0
@@ -0,0 +1,362 @@
|
|
1
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2
|
+
------------------------------------------
|
3
|
+
BooksControllerTest: test_should_get_index
|
4
|
+
------------------------------------------
|
5
|
+
Processing by BooksController#index as HTML
|
6
|
+
[1m[35mBook Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11
|
+
-------------------------------
|
12
|
+
UnifiedPartialsTest: test_truth
|
13
|
+
-------------------------------
|
14
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
15
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
16
|
+
------------------------------------------
|
17
|
+
BooksControllerTest: test_should_get_index
|
18
|
+
------------------------------------------
|
19
|
+
Processing by BooksController#index as HTML
|
20
|
+
[1m[35mBook Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
24
|
+
[1m[35m (0.1ms)[0m begin transaction
|
25
|
+
---------------------
|
26
|
+
IndexTest: test_title
|
27
|
+
---------------------
|
28
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
29
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30
|
+
-------------------------------
|
31
|
+
UnifiedPartialsTest: test_truth
|
32
|
+
-------------------------------
|
33
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
34
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
35
|
+
------------------------------------------
|
36
|
+
BooksControllerTest: test_should_get_index
|
37
|
+
------------------------------------------
|
38
|
+
Processing by BooksController#index as HTML
|
39
|
+
[1m[35mBook Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
43
|
+
[1m[35m (0.1ms)[0m begin transaction
|
44
|
+
---------------------
|
45
|
+
IndexTest: test_title
|
46
|
+
---------------------
|
47
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
48
|
+
[1m[35m (0.1ms)[0m begin transaction
|
49
|
+
-------------------------------
|
50
|
+
UnifiedPartialsTest: test_truth
|
51
|
+
-------------------------------
|
52
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
54
|
+
------------------------------------------
|
55
|
+
BooksControllerTest: test_should_get_index
|
56
|
+
------------------------------------------
|
57
|
+
Processing by BooksController#index as HTML
|
58
|
+
[1m[35mBook Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
62
|
+
[1m[35m (0.1ms)[0m begin transaction
|
63
|
+
---------------------
|
64
|
+
IndexTest: test_title
|
65
|
+
---------------------
|
66
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
67
|
+
[1m[35m (0.1ms)[0m begin transaction
|
68
|
+
-------------------------------
|
69
|
+
UnifiedPartialsTest: test_truth
|
70
|
+
-------------------------------
|
71
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
72
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
73
|
+
---------------------
|
74
|
+
IndexTest: test_title
|
75
|
+
---------------------
|
76
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
77
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
78
|
+
-------------------------------
|
79
|
+
UnifiedPartialsTest: test_truth
|
80
|
+
-------------------------------
|
81
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
82
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
83
|
+
---------------------
|
84
|
+
IndexTest: test_title
|
85
|
+
---------------------
|
86
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
87
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
88
|
+
-------------------------------
|
89
|
+
UnifiedPartialsTest: test_truth
|
90
|
+
-------------------------------
|
91
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
92
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
93
|
+
---------------------
|
94
|
+
IndexTest: test_title
|
95
|
+
---------------------
|
96
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
97
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
98
|
+
-------------------------------
|
99
|
+
UnifiedPartialsTest: test_truth
|
100
|
+
-------------------------------
|
101
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
102
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
103
|
+
---------------------
|
104
|
+
IndexTest: test_title
|
105
|
+
---------------------
|
106
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
107
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
108
|
+
-------------------------------
|
109
|
+
UnifiedPartialsTest: test_truth
|
110
|
+
-------------------------------
|
111
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
112
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
113
|
+
---------------------
|
114
|
+
IndexTest: test_title
|
115
|
+
---------------------
|
116
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
117
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
118
|
+
-------------------------------
|
119
|
+
UnifiedPartialsTest: test_truth
|
120
|
+
-------------------------------
|
121
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
122
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
123
|
+
---------------------
|
124
|
+
IndexTest: test_title
|
125
|
+
---------------------
|
126
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
127
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
128
|
+
-------------------------------
|
129
|
+
UnifiedPartialsTest: test_truth
|
130
|
+
-------------------------------
|
131
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
132
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
133
|
+
---------------------
|
134
|
+
IndexTest: test_title
|
135
|
+
---------------------
|
136
|
+
Rendered books/index.html.erb (4.5ms)
|
137
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
138
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
139
|
+
-------------------------------
|
140
|
+
UnifiedPartialsTest: test_truth
|
141
|
+
-------------------------------
|
142
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
143
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
144
|
+
---------------------
|
145
|
+
IndexTest: test_title
|
146
|
+
---------------------
|
147
|
+
Rendered books/index.html.erb (4.3ms)
|
148
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
149
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
150
|
+
-------------------------------
|
151
|
+
UnifiedPartialsTest: test_truth
|
152
|
+
-------------------------------
|
153
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
154
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
155
|
+
---------------------
|
156
|
+
IndexTest: test_title
|
157
|
+
---------------------
|
158
|
+
Rendered books/index.html.erb (4.1ms)
|
159
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
160
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
161
|
+
-------------------------------
|
162
|
+
UnifiedPartialsTest: test_truth
|
163
|
+
-------------------------------
|
164
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
165
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
166
|
+
---------------------
|
167
|
+
IndexTest: test_title
|
168
|
+
---------------------
|
169
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
170
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
171
|
+
-------------------------------
|
172
|
+
UnifiedPartialsTest: test_truth
|
173
|
+
-------------------------------
|
174
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
175
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
176
|
+
---------------------
|
177
|
+
IndexTest: test_title
|
178
|
+
---------------------
|
179
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
180
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
181
|
+
-------------------------------
|
182
|
+
UnifiedPartialsTest: test_truth
|
183
|
+
-------------------------------
|
184
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
185
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
186
|
+
---------------------
|
187
|
+
IndexTest: test_title
|
188
|
+
---------------------
|
189
|
+
Rendered books/index.html.erb (5.3ms)
|
190
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
191
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
192
|
+
-------------------------------
|
193
|
+
UnifiedPartialsTest: test_truth
|
194
|
+
-------------------------------
|
195
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
196
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
197
|
+
---------------------
|
198
|
+
IndexTest: test_title
|
199
|
+
---------------------
|
200
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
201
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
202
|
+
-------------------------------
|
203
|
+
UnifiedPartialsTest: test_truth
|
204
|
+
-------------------------------
|
205
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
206
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
207
|
+
---------------------
|
208
|
+
IndexTest: test_title
|
209
|
+
---------------------
|
210
|
+
Rendered books/index.html.erb (4.1ms)
|
211
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
212
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
213
|
+
-------------------------------
|
214
|
+
UnifiedPartialsTest: test_truth
|
215
|
+
-------------------------------
|
216
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
217
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
218
|
+
---------------------
|
219
|
+
IndexTest: test_title
|
220
|
+
---------------------
|
221
|
+
Rendered books/index.html.erb (336020.2ms)
|
222
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
223
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
224
|
+
-------------------------------
|
225
|
+
UnifiedPartialsTest: test_truth
|
226
|
+
-------------------------------
|
227
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
228
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
238
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
239
|
+
-------------------------------
|
240
|
+
UnifiedPartialsTest: test_truth
|
241
|
+
-------------------------------
|
242
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
243
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
253
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
254
|
+
-------------------------------
|
255
|
+
UnifiedPartialsTest: test_truth
|
256
|
+
-------------------------------
|
257
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
258
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
268
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
269
|
+
-------------------------------
|
270
|
+
UnifiedPartialsTest: test_truth
|
271
|
+
-------------------------------
|
272
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
273
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
283
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
284
|
+
-------------------------------
|
285
|
+
UnifiedPartialsTest: test_truth
|
286
|
+
-------------------------------
|
287
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
288
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
298
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
299
|
+
-------------------------------
|
300
|
+
UnifiedPartialsTest: test_truth
|
301
|
+
-------------------------------
|
302
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
303
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
313
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
314
|
+
-------------------------------
|
315
|
+
UnifiedPartialsTest: test_truth
|
316
|
+
-------------------------------
|
317
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
318
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
328
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
329
|
+
-------------------------------
|
330
|
+
UnifiedPartialsTest: test_truth
|
331
|
+
-------------------------------
|
332
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
333
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
343
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
344
|
+
-------------------------------
|
345
|
+
UnifiedPartialsTest: test_truth
|
346
|
+
-------------------------------
|
347
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
348
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
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
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
358
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
359
|
+
-------------------------------
|
360
|
+
UnifiedPartialsTest: test_truth
|
361
|
+
-------------------------------
|
362
|
+
[1m[35m (0.1ms)[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
|
@@ -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
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/test/test_helper.rb
ADDED
@@ -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
|