blogy 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +37 -0
  5. data/app/controllers/blogy/application_controller.rb +4 -0
  6. data/app/controllers/blogy/posts_controller.rb +58 -0
  7. data/app/models/blogy/post/translation.rb +7 -0
  8. data/app/models/blogy/post.rb +15 -0
  9. data/app/serializers/blogy/post_serializer.rb +5 -0
  10. data/config/routes.rb +4 -0
  11. data/db/migrate/20150211002506_create_blogy_posts.rb +12 -0
  12. data/db/migrate/20150211205643_create_blogy_post_translations.rb +15 -0
  13. data/lib/blogy/engine.rb +15 -0
  14. data/lib/blogy/version.rb +3 -0
  15. data/lib/blogy.rb +8 -0
  16. data/lib/tasks/blogy_tasks.rake +4 -0
  17. data/test/blogy_test.rb +7 -0
  18. data/test/controllers/blogy/posts_controller_test.rb +62 -0
  19. data/test/dummy/README.rdoc +28 -0
  20. data/test/dummy/Rakefile +6 -0
  21. data/test/dummy/app/assets/javascripts/application.js +13 -0
  22. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  23. data/test/dummy/app/controllers/application_controller.rb +7 -0
  24. data/test/dummy/app/helpers/application_helper.rb +2 -0
  25. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  26. data/test/dummy/bin/bundle +3 -0
  27. data/test/dummy/bin/rails +4 -0
  28. data/test/dummy/bin/rake +4 -0
  29. data/test/dummy/bin/setup +29 -0
  30. data/test/dummy/config/application.rb +26 -0
  31. data/test/dummy/config/boot.rb +5 -0
  32. data/test/dummy/config/database.yml +25 -0
  33. data/test/dummy/config/environment.rb +5 -0
  34. data/test/dummy/config/environments/development.rb +41 -0
  35. data/test/dummy/config/environments/production.rb +79 -0
  36. data/test/dummy/config/environments/test.rb +42 -0
  37. data/test/dummy/config/initializers/assets.rb +11 -0
  38. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  39. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  40. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  41. data/test/dummy/config/initializers/inflections.rb +16 -0
  42. data/test/dummy/config/initializers/mime_types.rb +4 -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 +4 -0
  47. data/test/dummy/config/secrets.yml +22 -0
  48. data/test/dummy/config.ru +4 -0
  49. data/test/dummy/db/schema.rb +39 -0
  50. data/test/dummy/db/test.sqlite3 +0 -0
  51. data/test/dummy/log/development.log +66 -0
  52. data/test/dummy/log/test.log +1310 -0
  53. data/test/dummy/public/404.html +67 -0
  54. data/test/dummy/public/422.html +67 -0
  55. data/test/dummy/public/500.html +66 -0
  56. data/test/dummy/public/favicon.ico +0 -0
  57. data/test/fixtures/blogy/post/translations.yml +15 -0
  58. data/test/fixtures/blogy/posts.yml +13 -0
  59. data/test/integration/navigation_test.rb +10 -0
  60. data/test/models/blogy/post/translation_test.rb +9 -0
  61. data/test/models/blogy/post_test.rb +9 -0
  62. data/test/support/factories.rb +9 -0
  63. data/test/test_helper.rb +25 -0
  64. metadata +251 -0
@@ -0,0 +1,1310 @@
1
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
+  (0.1ms) select sqlite_version(*)
3
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateBlogyPosts (20150211002506)
6
+  (0.1ms) begin transaction
7
+  (1.1ms) CREATE TABLE "blogy_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "published" boolean, "draft" boolean, "ilustration" varchar, "ilustration_tmp" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
8
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211002506"]]
9
+  (1.2ms) commit transaction
10
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
12
+  (0.1ms) begin transaction
13
+ -----------------------------------------------
14
+ Blogy::PostsControllerTest: test_should_get_new
15
+ -----------------------------------------------
16
+  (0.1ms) rollback transaction
17
+  (0.1ms) begin transaction
18
+ ----------------------------------------------------
19
+ Blogy::PostsControllerTest: test_should_destroy_post
20
+ ----------------------------------------------------
21
+  (0.1ms) rollback transaction
22
+  (0.1ms) begin transaction
23
+ ---------------------------------------------------
24
+ Blogy::PostsControllerTest: test_should_create_post
25
+ ---------------------------------------------------
26
+  (0.1ms) rollback transaction
27
+  (0.0ms) begin transaction
28
+ ------------------------------------------------
29
+ Blogy::PostsControllerTest: test_should_get_edit
30
+ ------------------------------------------------
31
+  (0.1ms) rollback transaction
32
+  (0.1ms) begin transaction
33
+ -------------------------------------------------
34
+ Blogy::PostsControllerTest: test_should_show_post
35
+ -------------------------------------------------
36
+  (0.0ms) rollback transaction
37
+  (0.1ms) begin transaction
38
+ -------------------------------------------------
39
+ Blogy::PostsControllerTest: test_should_get_index
40
+ -------------------------------------------------
41
+  (0.1ms) rollback transaction
42
+  (0.1ms) begin transaction
43
+ ---------------------------------------------------
44
+ Blogy::PostsControllerTest: test_should_update_post
45
+ ---------------------------------------------------
46
+  (0.1ms) rollback transaction
47
+  (0.1ms) begin transaction
48
+ ---------------------
49
+ BlogyTest: test_truth
50
+ ---------------------
51
+  (0.1ms) rollback transaction
52
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
53
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
54
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
55
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
56
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
57
+  (0.1ms) begin transaction
58
+ ------------------------------------------------------
59
+ Blogy::PostsControllerTest: test_0001_should get index
60
+ ------------------------------------------------------
61
+  (0.1ms) rollback transaction
62
+  (0.1ms) begin transaction
63
+ --------------------------------------------------------
64
+ Blogy::PostsControllerTest: test_0006_should update post
65
+ --------------------------------------------------------
66
+  (0.1ms) rollback transaction
67
+  (0.1ms) begin transaction
68
+ ---------------------------------------------------------
69
+ Blogy::PostsControllerTest: test_0007_should destroy post
70
+ ---------------------------------------------------------
71
+  (0.2ms) SELECT COUNT(*) FROM "blogy_posts"
72
+  (0.1ms) rollback transaction
73
+  (0.1ms) begin transaction
74
+ --------------------------------------------------------
75
+ Blogy::PostsControllerTest: test_0003_should create post
76
+ --------------------------------------------------------
77
+  (0.2ms) SELECT COUNT(*) FROM "blogy_posts"
78
+  (0.1ms) rollback transaction
79
+  (0.1ms) begin transaction
80
+ ------------------------------------------------------
81
+ Blogy::PostsControllerTest: test_0004_should show post
82
+ ------------------------------------------------------
83
+  (0.1ms) rollback transaction
84
+  (0.1ms) begin transaction
85
+ -----------------------------------------------------
86
+ Blogy::PostsControllerTest: test_0005_should get edit
87
+ -----------------------------------------------------
88
+  (0.1ms) rollback transaction
89
+  (0.1ms) begin transaction
90
+ ----------------------------------------------------
91
+ Blogy::PostsControllerTest: test_0002_should get new
92
+ ----------------------------------------------------
93
+  (0.1ms) rollback transaction
94
+  (0.1ms) begin transaction
95
+ --------------------------
96
+ BlogyTest: test_0001_truth
97
+ --------------------------
98
+  (0.0ms) rollback transaction
99
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
100
+  (0.2ms) begin transaction
101
+ --------------------------
102
+ BlogyTest: test_0001_truth
103
+ --------------------------
104
+  (0.0ms) rollback transaction
105
+  (0.1ms) begin transaction
106
+ ----------------------------------------------------
107
+ Blogy::PostsControllerTest: test_0002_should get new
108
+ ----------------------------------------------------
109
+  (0.1ms) rollback transaction
110
+  (0.1ms) begin transaction
111
+ --------------------------------------------------------
112
+ Blogy::PostsControllerTest: test_0003_should create post
113
+ --------------------------------------------------------
114
+  (0.1ms) rollback transaction
115
+  (0.1ms) begin transaction
116
+ ------------------------------------------------------
117
+ Blogy::PostsControllerTest: test_0004_should show post
118
+ ------------------------------------------------------
119
+  (0.1ms) rollback transaction
120
+  (0.1ms) begin transaction
121
+ --------------------------------------------------------
122
+ Blogy::PostsControllerTest: test_0006_should update post
123
+ --------------------------------------------------------
124
+  (0.1ms) rollback transaction
125
+  (0.2ms) begin transaction
126
+ -----------------------------------------------------
127
+ Blogy::PostsControllerTest: test_0005_should get edit
128
+ -----------------------------------------------------
129
+  (0.1ms) rollback transaction
130
+  (0.1ms) begin transaction
131
+ ------------------------------------------------------
132
+ Blogy::PostsControllerTest: test_0001_should get index
133
+ ------------------------------------------------------
134
+  (0.1ms) rollback transaction
135
+  (0.1ms) begin transaction
136
+ ---------------------------------------------------------
137
+ Blogy::PostsControllerTest: test_0007_should destroy post
138
+ ---------------------------------------------------------
139
+  (0.1ms) rollback transaction
140
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
141
+  (0.1ms) begin transaction
142
+ --------------------------
143
+ BlogyTest: test_0001_truth
144
+ --------------------------
145
+  (0.1ms) rollback transaction
146
+  (0.1ms) begin transaction
147
+ -----------------------------------------------------
148
+ Blogy::PostsControllerTest: test_0005_should get edit
149
+ -----------------------------------------------------
150
+ Processing by Blogy::PostsController#edit as HTML
151
+ Parameters: {"id"=>"1001"}
152
+ Blogy::Post Load (0.2ms) SELECT "blogy_posts".* FROM "blogy_posts" WHERE "blogy_posts"."id" = ? LIMIT 1 [["id", 1001]]
153
+ Completed 404 Not Found in 12ms
154
+  (0.1ms) rollback transaction
155
+  (0.1ms) begin transaction
156
+ ----------------------------------------------------
157
+ Blogy::PostsControllerTest: test_0002_should get new
158
+ ----------------------------------------------------
159
+ Processing by Blogy::PostsController#new as HTML
160
+ Completed 500 Internal Server Error in 13ms
161
+  (0.1ms) rollback transaction
162
+  (0.1ms) begin transaction
163
+ --------------------------------------------------------
164
+ Blogy::PostsControllerTest: test_0003_should create post
165
+ --------------------------------------------------------
166
+  (0.2ms) SELECT COUNT(*) FROM "blogy_posts"
167
+ Processing by Blogy::PostsController#create as HTML
168
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}}
169
+  (0.4ms) SAVEPOINT active_record_1
170
+ SQL (0.5ms) INSERT INTO "blogy_posts" ("published", "draft", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["published", "t"], ["draft", "f"], ["created_at", "2015-02-11 00:36:04.157997"], ["updated_at", "2015-02-11 00:36:04.157997"]]
171
+  (0.1ms) RELEASE SAVEPOINT active_record_1
172
+ Redirected to http://test.host/blogy/posts/1
173
+ Completed 302 Found in 17ms (ActiveRecord: 1.0ms)
174
+  (0.1ms) SELECT COUNT(*) FROM "blogy_posts"
175
+  (0.8ms) rollback transaction
176
+  (0.1ms) begin transaction
177
+ ------------------------------------------------------
178
+ Blogy::PostsControllerTest: test_0004_should show post
179
+ ------------------------------------------------------
180
+ Processing by Blogy::PostsController#show as HTML
181
+ Parameters: {"id"=>"1004"}
182
+ Blogy::Post Load (0.2ms) SELECT "blogy_posts".* FROM "blogy_posts" WHERE "blogy_posts"."id" = ? LIMIT 1 [["id", 1004]]
183
+ Completed 404 Not Found in 1ms
184
+  (0.1ms) rollback transaction
185
+  (0.1ms) begin transaction
186
+ ------------------------------------------------------
187
+ Blogy::PostsControllerTest: test_0001_should get index
188
+ ------------------------------------------------------
189
+ Processing by Blogy::PostsController#index as HTML
190
+ Completed 500 Internal Server Error in 2ms
191
+  (0.1ms) rollback transaction
192
+  (0.2ms) begin transaction
193
+ --------------------------------------------------------
194
+ Blogy::PostsControllerTest: test_0006_should update post
195
+ --------------------------------------------------------
196
+ Processing by Blogy::PostsController#update as HTML
197
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}, "id"=>"1006"}
198
+ Blogy::Post Load (0.1ms) SELECT "blogy_posts".* FROM "blogy_posts" WHERE "blogy_posts"."id" = ? LIMIT 1 [["id", 1006]]
199
+ Completed 404 Not Found in 1ms
200
+  (0.1ms) rollback transaction
201
+  (0.1ms) begin transaction
202
+ ---------------------------------------------------------
203
+ Blogy::PostsControllerTest: test_0007_should destroy post
204
+ ---------------------------------------------------------
205
+  (0.2ms) SELECT COUNT(*) FROM "blogy_posts"
206
+ Processing by Blogy::PostsController#destroy as HTML
207
+ Parameters: {"id"=>"1007"}
208
+ Blogy::Post Load (0.1ms) SELECT "blogy_posts".* FROM "blogy_posts" WHERE "blogy_posts"."id" = ? LIMIT 1 [["id", 1007]]
209
+ Completed 404 Not Found in 1ms
210
+  (0.1ms) rollback transaction
211
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
212
+  (0.1ms) begin transaction
213
+ --------------------------
214
+ BlogyTest: test_0001_truth
215
+ --------------------------
216
+  (0.0ms) rollback transaction
217
+  (0.1ms) begin transaction
218
+ ---------------------------------------------------------
219
+ Blogy::PostsControllerTest: test_0007_should destroy post
220
+ ---------------------------------------------------------
221
+  (0.2ms) SELECT COUNT(*) FROM "blogy_posts"
222
+ Processing by Blogy::PostsController#destroy as HTML
223
+ Parameters: {"id"=>"1001"}
224
+ Completed 500 Internal Server Error in 1ms
225
+  (0.1ms) rollback transaction
226
+  (0.1ms) begin transaction
227
+ ------------------------------------------------------
228
+ Blogy::PostsControllerTest: test_0004_should show post
229
+ ------------------------------------------------------
230
+ Processing by Blogy::PostsController#show as HTML
231
+ Parameters: {"id"=>"1002"}
232
+ Completed 500 Internal Server Error in 12ms
233
+  (0.1ms) rollback transaction
234
+  (0.1ms) begin transaction
235
+ --------------------------------------------------------
236
+ Blogy::PostsControllerTest: test_0003_should create post
237
+ --------------------------------------------------------
238
+  (0.2ms) SELECT COUNT(*) FROM "blogy_posts"
239
+ Processing by Blogy::PostsController#create as HTML
240
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}}
241
+  (0.1ms) SAVEPOINT active_record_1
242
+ SQL (0.6ms) INSERT INTO "blogy_posts" ("published", "draft", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["published", "t"], ["draft", "f"], ["created_at", "2015-02-11 00:37:23.382832"], ["updated_at", "2015-02-11 00:37:23.382832"]]
243
+  (0.1ms) RELEASE SAVEPOINT active_record_1
244
+ Redirected to http://test.host/blogy/posts/1
245
+ Completed 302 Found in 16ms (ActiveRecord: 0.8ms)
246
+  (0.1ms) SELECT COUNT(*) FROM "blogy_posts"
247
+  (1.2ms) rollback transaction
248
+  (0.1ms) begin transaction
249
+ -----------------------------------------------------
250
+ Blogy::PostsControllerTest: test_0005_should get edit
251
+ -----------------------------------------------------
252
+ Processing by Blogy::PostsController#edit as HTML
253
+ Parameters: {"id"=>"1004"}
254
+ Completed 500 Internal Server Error in 2ms
255
+  (0.1ms) rollback transaction
256
+  (0.1ms) begin transaction
257
+ --------------------------------------------------------
258
+ Blogy::PostsControllerTest: test_0006_should update post
259
+ --------------------------------------------------------
260
+ Processing by Blogy::PostsController#update as HTML
261
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}, "id"=>"1005"}
262
+  (0.1ms) SAVEPOINT active_record_1
263
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
264
+ Completed 500 Internal Server Error in 2ms
265
+  (0.1ms) rollback transaction
266
+  (0.1ms) begin transaction
267
+ ----------------------------------------------------
268
+ Blogy::PostsControllerTest: test_0002_should get new
269
+ ----------------------------------------------------
270
+ Processing by Blogy::PostsController#new as HTML
271
+ Completed 500 Internal Server Error in 1ms
272
+  (0.1ms) rollback transaction
273
+  (0.1ms) begin transaction
274
+ ------------------------------------------------------
275
+ Blogy::PostsControllerTest: test_0001_should get index
276
+ ------------------------------------------------------
277
+ Processing by Blogy::PostsController#index as HTML
278
+ Completed 500 Internal Server Error in 1ms
279
+  (0.1ms) rollback transaction
280
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
281
+  (0.1ms) begin transaction
282
+ --------------------------
283
+ BlogyTest: test_0001_truth
284
+ --------------------------
285
+  (0.1ms) rollback transaction
286
+  (0.1ms) begin transaction
287
+ ------------------------------------------------------
288
+ Blogy::PostsControllerTest: test_0001_should get index
289
+ ------------------------------------------------------
290
+ Processing by Blogy::PostsController#index as JSON
291
+ Completed 500 Internal Server Error in 11ms
292
+  (0.1ms) rollback transaction
293
+  (0.1ms) begin transaction
294
+ --------------------------------------------------------
295
+ Blogy::PostsControllerTest: test_0006_should update post
296
+ --------------------------------------------------------
297
+ Processing by Blogy::PostsController#update as JSON
298
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}, "id"=>"1002"}
299
+  (0.1ms) SAVEPOINT active_record_1
300
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
301
+ Completed 500 Internal Server Error in 2ms
302
+  (0.1ms) rollback transaction
303
+  (0.4ms) begin transaction
304
+ -----------------------------------------------------
305
+ Blogy::PostsControllerTest: test_0005_should get edit
306
+ -----------------------------------------------------
307
+ Processing by Blogy::PostsController#edit as JSON
308
+ Parameters: {"id"=>"1003"}
309
+ Completed 500 Internal Server Error in 1ms
310
+  (0.1ms) rollback transaction
311
+  (0.1ms) begin transaction
312
+ ------------------------------------------------------
313
+ Blogy::PostsControllerTest: test_0004_should show post
314
+ ------------------------------------------------------
315
+ Processing by Blogy::PostsController#show as JSON
316
+ Parameters: {"id"=>"1004"}
317
+ Completed 500 Internal Server Error in 1ms
318
+  (0.1ms) rollback transaction
319
+  (0.1ms) begin transaction
320
+ ----------------------------------------------------
321
+ Blogy::PostsControllerTest: test_0002_should get new
322
+ ----------------------------------------------------
323
+ Processing by Blogy::PostsController#new as JSON
324
+ Completed 500 Internal Server Error in 2ms
325
+  (0.1ms) rollback transaction
326
+  (0.1ms) begin transaction
327
+ --------------------------------------------------------
328
+ Blogy::PostsControllerTest: test_0003_should create post
329
+ --------------------------------------------------------
330
+  (0.3ms) SELECT COUNT(*) FROM "blogy_posts"
331
+ Processing by Blogy::PostsController#create as JSON
332
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}}
333
+  (0.1ms) SAVEPOINT active_record_1
334
+ SQL (0.5ms) INSERT INTO "blogy_posts" ("published", "draft", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["published", "t"], ["draft", "f"], ["created_at", "2015-02-11 00:38:12.476466"], ["updated_at", "2015-02-11 00:38:12.476466"]]
335
+  (0.1ms) RELEASE SAVEPOINT active_record_1
336
+ Redirected to http://test.host/blogy/posts/1
337
+ Completed 302 Found in 13ms (ActiveRecord: 0.7ms)
338
+  (0.1ms) SELECT COUNT(*) FROM "blogy_posts"
339
+  (1.2ms) rollback transaction
340
+  (0.1ms) begin transaction
341
+ ---------------------------------------------------------
342
+ Blogy::PostsControllerTest: test_0007_should destroy post
343
+ ---------------------------------------------------------
344
+  (0.2ms) SELECT COUNT(*) FROM "blogy_posts"
345
+ Processing by Blogy::PostsController#destroy as JSON
346
+ Parameters: {"id"=>"1007"}
347
+ Completed 500 Internal Server Error in 0ms
348
+  (0.1ms) rollback transaction
349
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
350
+  (0.2ms) begin transaction
351
+ ------------------------------------------------------
352
+ Blogy::PostsControllerTest: test_0001_should get index
353
+ ------------------------------------------------------
354
+ Processing by Blogy::PostsController#index as JSON
355
+ Completed 500 Internal Server Error in 11ms
356
+  (0.1ms) rollback transaction
357
+  (0.1ms) begin transaction
358
+ --------------------------------------------------------
359
+ Blogy::PostsControllerTest: test_0003_should create post
360
+ --------------------------------------------------------
361
+  (0.2ms) SELECT COUNT(*) FROM "blogy_posts"
362
+ Processing by Blogy::PostsController#create as JSON
363
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}}
364
+  (0.1ms) SAVEPOINT active_record_1
365
+ SQL (0.5ms) INSERT INTO "blogy_posts" ("published", "draft", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["published", "t"], ["draft", "f"], ["created_at", "2015-02-11 00:40:32.799187"], ["updated_at", "2015-02-11 00:40:32.799187"]]
366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
367
+ Redirected to http://test.host/blogy/posts/1
368
+ Completed 302 Found in 14ms (ActiveRecord: 0.7ms)
369
+  (0.1ms) SELECT COUNT(*) FROM "blogy_posts"
370
+  (1.3ms) rollback transaction
371
+  (0.1ms) begin transaction
372
+ ------------------------------------------------------
373
+ Blogy::PostsControllerTest: test_0004_should show post
374
+ ------------------------------------------------------
375
+ Processing by Blogy::PostsController#show as JSON
376
+ Parameters: {"id"=>"1003"}
377
+ Completed 500 Internal Server Error in 2ms
378
+  (0.1ms) rollback transaction
379
+  (0.1ms) begin transaction
380
+ ---------------------------------------------------------
381
+ Blogy::PostsControllerTest: test_0007_should destroy post
382
+ ---------------------------------------------------------
383
+  (0.2ms) SELECT COUNT(*) FROM "blogy_posts"
384
+ Processing by Blogy::PostsController#destroy as JSON
385
+ Parameters: {"id"=>"1004"}
386
+ Completed 500 Internal Server Error in 0ms
387
+  (0.1ms) rollback transaction
388
+  (0.1ms) begin transaction
389
+ --------------------------------------------------------
390
+ Blogy::PostsControllerTest: test_0006_should update post
391
+ --------------------------------------------------------
392
+ Processing by Blogy::PostsController#update as JSON
393
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}, "id"=>"1005"}
394
+  (0.1ms) SAVEPOINT active_record_1
395
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
396
+ Completed 500 Internal Server Error in 2ms
397
+  (0.1ms) rollback transaction
398
+  (0.1ms) begin transaction
399
+ ----------------------------------------------------
400
+ Blogy::PostsControllerTest: test_0002_should get new
401
+ ----------------------------------------------------
402
+ Processing by Blogy::PostsController#new as JSON
403
+ Completed 500 Internal Server Error in 2ms
404
+  (0.1ms) rollback transaction
405
+  (0.1ms) begin transaction
406
+ -----------------------------------------------------
407
+ Blogy::PostsControllerTest: test_0005_should get edit
408
+ -----------------------------------------------------
409
+ Processing by Blogy::PostsController#edit as JSON
410
+ Parameters: {"id"=>"1007"}
411
+ Completed 500 Internal Server Error in 2ms
412
+  (0.1ms) rollback transaction
413
+  (0.1ms) begin transaction
414
+ --------------------------
415
+ BlogyTest: test_0001_truth
416
+ --------------------------
417
+  (0.1ms) rollback transaction
418
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
419
+  (0.5ms) begin transaction
420
+ --------------------------
421
+ BlogyTest: test_0001_truth
422
+ --------------------------
423
+  (0.1ms) rollback transaction
424
+  (0.1ms) begin transaction
425
+ --------------------------------------------------------
426
+ Blogy::PostsControllerTest: test_0006_should update post
427
+ --------------------------------------------------------
428
+ Processing by Blogy::PostsController#update as JSON
429
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}, "id"=>"1001"}
430
+  (0.1ms) SAVEPOINT active_record_1
431
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
432
+ Completed 500 Internal Server Error in 2ms
433
+  (0.1ms) rollback transaction
434
+  (0.1ms) begin transaction
435
+ ------------------------------------------------------
436
+ Blogy::PostsControllerTest: test_0001_should get index
437
+ ------------------------------------------------------
438
+ Processing by Blogy::PostsController#index as JSON
439
+ Completed 500 Internal Server Error in 18ms
440
+  (0.1ms) rollback transaction
441
+  (0.1ms) begin transaction
442
+ ---------------------------------------------------------
443
+ Blogy::PostsControllerTest: test_0007_should destroy post
444
+ ---------------------------------------------------------
445
+  (0.3ms) SELECT COUNT(*) FROM "blogy_posts"
446
+ Processing by Blogy::PostsController#destroy as JSON
447
+ Parameters: {"id"=>"1003"}
448
+ Completed 500 Internal Server Error in 0ms
449
+  (0.1ms) rollback transaction
450
+  (0.1ms) begin transaction
451
+ --------------------------------------------------------
452
+ Blogy::PostsControllerTest: test_0003_should create post
453
+ --------------------------------------------------------
454
+  (0.2ms) SELECT COUNT(*) FROM "blogy_posts"
455
+ Processing by Blogy::PostsController#create as JSON
456
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}}
457
+  (0.1ms) SAVEPOINT active_record_1
458
+ SQL (0.5ms) INSERT INTO "blogy_posts" ("published", "draft", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["published", "t"], ["draft", "f"], ["created_at", "2015-02-11 00:42:51.596702"], ["updated_at", "2015-02-11 00:42:51.596702"]]
459
+  (0.1ms) RELEASE SAVEPOINT active_record_1
460
+ Redirected to http://test.host/blogy/posts/1
461
+ Completed 302 Found in 18ms (ActiveRecord: 0.7ms)
462
+  (0.1ms) SELECT COUNT(*) FROM "blogy_posts"
463
+  (2.3ms) rollback transaction
464
+  (0.1ms) begin transaction
465
+ ------------------------------------------------------
466
+ Blogy::PostsControllerTest: test_0004_should show post
467
+ ------------------------------------------------------
468
+ Processing by Blogy::PostsController#show as JSON
469
+ Parameters: {"id"=>"1005"}
470
+ Completed 500 Internal Server Error in 2ms
471
+  (0.1ms) rollback transaction
472
+  (0.1ms) begin transaction
473
+ ----------------------------------------------------
474
+ Blogy::PostsControllerTest: test_0002_should get new
475
+ ----------------------------------------------------
476
+ Processing by Blogy::PostsController#new as JSON
477
+ Completed 500 Internal Server Error in 2ms
478
+  (0.1ms) rollback transaction
479
+  (0.1ms) begin transaction
480
+ -----------------------------------------------------
481
+ Blogy::PostsControllerTest: test_0005_should get edit
482
+ -----------------------------------------------------
483
+ Processing by Blogy::PostsController#edit as JSON
484
+ Parameters: {"id"=>"1007"}
485
+ Completed 500 Internal Server Error in 2ms
486
+  (0.1ms) rollback transaction
487
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
488
+  (0.1ms) begin transaction
489
+ ------------------------------------------------------
490
+ Blogy::PostsControllerTest: test_0004_should show post
491
+ ------------------------------------------------------
492
+ Processing by Blogy::PostsController#show as JSON
493
+ Parameters: {"id"=>"1001"}
494
+ Completed 500 Internal Server Error in 18ms
495
+  (0.1ms) rollback transaction
496
+  (0.1ms) begin transaction
497
+ ----------------------------------------------------
498
+ Blogy::PostsControllerTest: test_0002_should get new
499
+ ----------------------------------------------------
500
+ Processing by Blogy::PostsController#new as JSON
501
+ Completed 500 Internal Server Error in 2ms
502
+  (0.1ms) rollback transaction
503
+  (0.1ms) begin transaction
504
+ ---------------------------------------------------------
505
+ Blogy::PostsControllerTest: test_0007_should destroy post
506
+ ---------------------------------------------------------
507
+  (0.2ms) SELECT COUNT(*) FROM "blogy_posts"
508
+ Processing by Blogy::PostsController#destroy as JSON
509
+ Parameters: {"id"=>"1003"}
510
+ Completed 500 Internal Server Error in 0ms
511
+  (0.1ms) rollback transaction
512
+  (0.1ms) begin transaction
513
+ --------------------------------------------------------
514
+ Blogy::PostsControllerTest: test_0003_should create post
515
+ --------------------------------------------------------
516
+  (2.9ms) SELECT COUNT(*) FROM "blogy_posts"
517
+ Processing by Blogy::PostsController#create as JSON
518
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}}
519
+  (0.1ms) SAVEPOINT active_record_1
520
+ SQL (0.6ms) INSERT INTO "blogy_posts" ("published", "draft", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["published", "t"], ["draft", "f"], ["created_at", "2015-02-11 00:43:18.685171"], ["updated_at", "2015-02-11 00:43:18.685171"]]
521
+  (0.1ms) RELEASE SAVEPOINT active_record_1
522
+ Redirected to http://test.host/blogy/posts/1
523
+ Completed 302 Found in 19ms (ActiveRecord: 0.7ms)
524
+  (0.1ms) SELECT COUNT(*) FROM "blogy_posts"
525
+  (1.5ms) rollback transaction
526
+  (0.1ms) begin transaction
527
+ --------------------------------------------------------
528
+ Blogy::PostsControllerTest: test_0006_should update post
529
+ --------------------------------------------------------
530
+ Processing by Blogy::PostsController#update as JSON
531
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}, "id"=>"1005"}
532
+  (0.1ms) SAVEPOINT active_record_1
533
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
534
+ Completed 500 Internal Server Error in 2ms
535
+  (0.1ms) rollback transaction
536
+  (0.1ms) begin transaction
537
+ -----------------------------------------------------
538
+ Blogy::PostsControllerTest: test_0005_should get edit
539
+ -----------------------------------------------------
540
+ Processing by Blogy::PostsController#edit as JSON
541
+ Parameters: {"id"=>"1006"}
542
+ Completed 500 Internal Server Error in 2ms
543
+  (0.1ms) rollback transaction
544
+  (0.1ms) begin transaction
545
+ ------------------------------------------------------
546
+ Blogy::PostsControllerTest: test_0001_should get index
547
+ ------------------------------------------------------
548
+ Processing by Blogy::PostsController#index as JSON
549
+ Completed 500 Internal Server Error in 3ms
550
+  (0.1ms) rollback transaction
551
+  (0.1ms) begin transaction
552
+ --------------------------
553
+ BlogyTest: test_0001_truth
554
+ --------------------------
555
+  (0.1ms) rollback transaction
556
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
557
+  (0.1ms) begin transaction
558
+ --------------------------
559
+ BlogyTest: test_0001_truth
560
+ --------------------------
561
+  (0.0ms) rollback transaction
562
+  (0.1ms) begin transaction
563
+ --------------------------------------------------------
564
+ Blogy::PostsControllerTest: test_0006_should update post
565
+ --------------------------------------------------------
566
+ Processing by Blogy::PostsController#update as JSON
567
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}, "id"=>"1001"}
568
+  (0.1ms) SAVEPOINT active_record_1
569
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
570
+ Completed 500 Internal Server Error in 2ms
571
+  (0.1ms) rollback transaction
572
+  (0.1ms) begin transaction
573
+ ------------------------------------------------------
574
+ Blogy::PostsControllerTest: test_0001_should get index
575
+ ------------------------------------------------------
576
+ Processing by Blogy::PostsController#index as JSON
577
+ Completed 500 Internal Server Error in 0ms
578
+  (0.1ms) rollback transaction
579
+  (0.1ms) begin transaction
580
+ --------------------------------------------------------
581
+ Blogy::PostsControllerTest: test_0003_should create post
582
+ --------------------------------------------------------
583
+  (0.2ms) SELECT COUNT(*) FROM "blogy_posts"
584
+ Processing by Blogy::PostsController#create as JSON
585
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}}
586
+  (0.1ms) SAVEPOINT active_record_1
587
+ SQL (0.6ms) INSERT INTO "blogy_posts" ("published", "draft", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["published", "t"], ["draft", "f"], ["created_at", "2015-02-11 00:44:53.612838"], ["updated_at", "2015-02-11 00:44:53.612838"]]
588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
589
+ Completed 500 Internal Server Error in 10ms
590
+  (1.2ms) rollback transaction
591
+  (0.1ms) begin transaction
592
+ ------------------------------------------------------
593
+ Blogy::PostsControllerTest: test_0004_should show post
594
+ ------------------------------------------------------
595
+ Processing by Blogy::PostsController#show as JSON
596
+ Parameters: {"id"=>"1004"}
597
+ Completed 500 Internal Server Error in 0ms
598
+  (0.2ms) rollback transaction
599
+  (0.1ms) begin transaction
600
+ ---------------------------------------------------------
601
+ Blogy::PostsControllerTest: test_0007_should destroy post
602
+ ---------------------------------------------------------
603
+  (0.2ms) SELECT COUNT(*) FROM "blogy_posts"
604
+ Processing by Blogy::PostsController#destroy as JSON
605
+ Parameters: {"id"=>"1005"}
606
+ Completed 500 Internal Server Error in 0ms
607
+  (0.1ms) rollback transaction
608
+  (0.1ms) begin transaction
609
+ ----------------------------------------------------
610
+ Blogy::PostsControllerTest: test_0002_should get new
611
+ ----------------------------------------------------
612
+ Processing by Blogy::PostsController#new as JSON
613
+ Completed 500 Internal Server Error in 1ms
614
+  (0.1ms) rollback transaction
615
+  (0.1ms) begin transaction
616
+ -----------------------------------------------------
617
+ Blogy::PostsControllerTest: test_0005_should get edit
618
+ -----------------------------------------------------
619
+ Processing by Blogy::PostsController#edit as JSON
620
+ Parameters: {"id"=>"1007"}
621
+ Completed 500 Internal Server Error in 0ms
622
+  (0.1ms) rollback transaction
623
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
624
+  (0.1ms) begin transaction
625
+ --------------------------------------------------------
626
+ Blogy::PostsControllerTest: test_0003_should create post
627
+ --------------------------------------------------------
628
+  (0.2ms) SELECT COUNT(*) FROM "blogy_posts"
629
+ Processing by Blogy::PostsController#create as JSON
630
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}}
631
+  (0.1ms) SAVEPOINT active_record_1
632
+ SQL (0.6ms) INSERT INTO "blogy_posts" ("published", "draft", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["published", "t"], ["draft", "f"], ["created_at", "2015-02-11 00:45:36.738427"], ["updated_at", "2015-02-11 00:45:36.738427"]]
633
+  (0.1ms) RELEASE SAVEPOINT active_record_1
634
+ Completed 201 Created in 31ms (Views: 7.3ms | ActiveRecord: 0.7ms)
635
+  (0.1ms) SELECT COUNT(*) FROM "blogy_posts"
636
+  (0.5ms) rollback transaction
637
+  (0.1ms) begin transaction
638
+ ----------------------------------------------------
639
+ Blogy::PostsControllerTest: test_0002_should get new
640
+ ----------------------------------------------------
641
+ Processing by Blogy::PostsController#new as JSON
642
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms)
643
+  (0.1ms) rollback transaction
644
+  (0.1ms) begin transaction
645
+ -----------------------------------------------------
646
+ Blogy::PostsControllerTest: test_0005_should get edit
647
+ -----------------------------------------------------
648
+ Processing by Blogy::PostsController#edit as JSON
649
+ Parameters: {"id"=>"1003"}
650
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.0ms)
651
+  (0.1ms) rollback transaction
652
+  (0.1ms) begin transaction
653
+ ------------------------------------------------------
654
+ Blogy::PostsControllerTest: test_0001_should get index
655
+ ------------------------------------------------------
656
+ Processing by Blogy::PostsController#index as JSON
657
+ Blogy::Post Load (0.3ms) SELECT "blogy_posts".* FROM "blogy_posts"
658
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.3ms)
659
+  (0.1ms) rollback transaction
660
+  (0.1ms) begin transaction
661
+ ------------------------------------------------------
662
+ Blogy::PostsControllerTest: test_0004_should show post
663
+ ------------------------------------------------------
664
+ Processing by Blogy::PostsController#show as JSON
665
+ Parameters: {"id"=>"1005"}
666
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)
667
+  (0.1ms) rollback transaction
668
+  (0.1ms) begin transaction
669
+ --------------------------------------------------------
670
+ Blogy::PostsControllerTest: test_0006_should update post
671
+ --------------------------------------------------------
672
+ Processing by Blogy::PostsController#update as JSON
673
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}, "id"=>"1006"}
674
+  (0.1ms) SAVEPOINT active_record_1
675
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
676
+ Completed 500 Internal Server Error in 2ms
677
+  (0.1ms) rollback transaction
678
+  (0.1ms) begin transaction
679
+ ---------------------------------------------------------
680
+ Blogy::PostsControllerTest: test_0007_should destroy post
681
+ ---------------------------------------------------------
682
+  (0.2ms) SELECT COUNT(*) FROM "blogy_posts"
683
+ Processing by Blogy::PostsController#destroy as JSON
684
+ Parameters: {"id"=>"1007"}
685
+ Completed 500 Internal Server Error in 0ms
686
+  (0.1ms) rollback transaction
687
+  (0.1ms) begin transaction
688
+ --------------------------
689
+ BlogyTest: test_0001_truth
690
+ --------------------------
691
+  (0.0ms) rollback transaction
692
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
693
+  (0.1ms) begin transaction
694
+ ----------------------------------------------------
695
+ Blogy::PostsControllerTest: test_0002_should get new
696
+ ----------------------------------------------------
697
+ Processing by Blogy::PostsController#new as JSON
698
+ Completed 200 OK in 14ms (Views: 0.9ms | ActiveRecord: 0.0ms)
699
+  (0.2ms) rollback transaction
700
+  (0.1ms) begin transaction
701
+ ------------------------------------------------------
702
+ Blogy::PostsControllerTest: test_0001_should get index
703
+ ------------------------------------------------------
704
+ Processing by Blogy::PostsController#index as JSON
705
+ Blogy::Post Load (0.2ms) SELECT "blogy_posts".* FROM "blogy_posts"
706
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)
707
+  (0.1ms) rollback transaction
708
+  (0.1ms) begin transaction
709
+ ------------------------------------------------------
710
+ Blogy::PostsControllerTest: test_0004_should show post
711
+ ------------------------------------------------------
712
+ Processing by Blogy::PostsController#show as JSON
713
+ Parameters: {"id"=>"1003"}
714
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)
715
+  (0.1ms) rollback transaction
716
+  (0.1ms) begin transaction
717
+ --------------------------------------------------------
718
+ Blogy::PostsControllerTest: test_0003_should create post
719
+ --------------------------------------------------------
720
+ Processing by Blogy::PostsController#create as JSON
721
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}}
722
+  (0.1ms) SAVEPOINT active_record_1
723
+ SQL (0.6ms) INSERT INTO "blogy_posts" ("published", "draft", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["published", "t"], ["draft", "f"], ["created_at", "2015-02-11 00:49:50.189493"], ["updated_at", "2015-02-11 00:49:50.189493"]]
724
+  (0.1ms) RELEASE SAVEPOINT active_record_1
725
+ Completed 201 Created in 19ms (Views: 6.4ms | ActiveRecord: 0.7ms)
726
+  (1.0ms) rollback transaction
727
+  (0.1ms) begin transaction
728
+ ---------------------------------------------------------
729
+ Blogy::PostsControllerTest: test_0007_should destroy post
730
+ ---------------------------------------------------------
731
+ Processing by Blogy::PostsController#destroy as JSON
732
+ Parameters: {"id"=>"1005"}
733
+ Completed 500 Internal Server Error in 0ms
734
+  (0.1ms) rollback transaction
735
+  (0.1ms) begin transaction
736
+ --------------------------------------------------------
737
+ Blogy::PostsControllerTest: test_0006_should update post
738
+ --------------------------------------------------------
739
+ Processing by Blogy::PostsController#update as JSON
740
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}, "id"=>"1006"}
741
+  (0.1ms) SAVEPOINT active_record_1
742
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
743
+ Completed 500 Internal Server Error in 2ms
744
+  (0.1ms) rollback transaction
745
+  (0.1ms) begin transaction
746
+ -----------------------------------------------------
747
+ Blogy::PostsControllerTest: test_0005_should get edit
748
+ -----------------------------------------------------
749
+ Processing by Blogy::PostsController#edit as JSON
750
+ Parameters: {"id"=>"1007"}
751
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.0ms)
752
+  (0.1ms) rollback transaction
753
+  (0.1ms) begin transaction
754
+ --------------------------
755
+ BlogyTest: test_0001_truth
756
+ --------------------------
757
+  (0.1ms) rollback transaction
758
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
759
+  (0.1ms) begin transaction
760
+ --------------------------
761
+ BlogyTest: test_0001_truth
762
+ --------------------------
763
+  (0.1ms) rollback transaction
764
+  (0.1ms) begin transaction
765
+ ---------------------------------------------------------
766
+ Blogy::PostsControllerTest: test_0007_should destroy post
767
+ ---------------------------------------------------------
768
+ Processing by Blogy::PostsController#destroy as JSON
769
+ Parameters: {"id"=>"1001"}
770
+ Completed 500 Internal Server Error in 1ms
771
+  (0.1ms) rollback transaction
772
+  (0.1ms) begin transaction
773
+ -----------------------------------------------------
774
+ Blogy::PostsControllerTest: test_0005_should get edit
775
+ -----------------------------------------------------
776
+ Processing by Blogy::PostsController#edit as JSON
777
+ Parameters: {"id"=>"1002"}
778
+ Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 0.0ms)
779
+  (0.1ms) rollback transaction
780
+  (0.1ms) begin transaction
781
+ --------------------------------------------------------
782
+ Blogy::PostsControllerTest: test_0006_should update post
783
+ --------------------------------------------------------
784
+ Processing by Blogy::PostsController#update as JSON
785
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}, "id"=>"1003"}
786
+  (0.1ms) SAVEPOINT active_record_1
787
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
788
+ Completed 500 Internal Server Error in 2ms
789
+  (0.1ms) rollback transaction
790
+  (0.1ms) begin transaction
791
+ --------------------------------------------------------
792
+ Blogy::PostsControllerTest: test_0003_should create post
793
+ --------------------------------------------------------
794
+ Processing by Blogy::PostsController#create as JSON
795
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}}
796
+  (0.1ms) SAVEPOINT active_record_1
797
+ SQL (0.6ms) INSERT INTO "blogy_posts" ("published", "draft", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["published", "t"], ["draft", "f"], ["created_at", "2015-02-11 00:50:58.368955"], ["updated_at", "2015-02-11 00:50:58.368955"]]
798
+  (0.1ms) RELEASE SAVEPOINT active_record_1
799
+ Completed 201 Created in 18ms (Views: 5.9ms | ActiveRecord: 0.8ms)
800
+  (1.2ms) rollback transaction
801
+  (0.1ms) begin transaction
802
+ ----------------------------------------------------
803
+ Blogy::PostsControllerTest: test_0002_should get new
804
+ ----------------------------------------------------
805
+ Processing by Blogy::PostsController#new as JSON
806
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.0ms)
807
+  (0.1ms) rollback transaction
808
+  (0.1ms) begin transaction
809
+ ------------------------------------------------------
810
+ Blogy::PostsControllerTest: test_0004_should show post
811
+ ------------------------------------------------------
812
+ Processing by Blogy::PostsController#show as JSON
813
+ Parameters: {"id"=>"1006"}
814
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)
815
+  (0.1ms) rollback transaction
816
+  (0.1ms) begin transaction
817
+ ------------------------------------------------------
818
+ Blogy::PostsControllerTest: test_0001_should get index
819
+ ------------------------------------------------------
820
+ Processing by Blogy::PostsController#index as JSON
821
+ Blogy::Post Load (0.2ms) SELECT "blogy_posts".* FROM "blogy_posts"
822
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.2ms)
823
+  (0.1ms) rollback transaction
824
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
825
+  (0.1ms) begin transaction
826
+ --------------------------------------------------------
827
+ Blogy::PostsControllerTest: test_0003_should create post
828
+ --------------------------------------------------------
829
+ Processing by Blogy::PostsController#create as JSON
830
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}}
831
+  (0.1ms) SAVEPOINT active_record_1
832
+ SQL (0.5ms) INSERT INTO "blogy_posts" ("published", "draft", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["published", "t"], ["draft", "f"], ["created_at", "2015-02-11 00:51:33.904239"], ["updated_at", "2015-02-11 00:51:33.904239"]]
833
+  (0.1ms) RELEASE SAVEPOINT active_record_1
834
+ Completed 201 Created in 40ms (Views: 12.5ms | ActiveRecord: 0.7ms)
835
+  (1.0ms) rollback transaction
836
+  (0.1ms) begin transaction
837
+ ----------------------------------------------------
838
+ Blogy::PostsControllerTest: test_0002_should get new
839
+ ----------------------------------------------------
840
+ Processing by Blogy::PostsController#new as JSON
841
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.0ms)
842
+  (0.1ms) rollback transaction
843
+  (0.1ms) begin transaction
844
+ ------------------------------------------------------
845
+ Blogy::PostsControllerTest: test_0004_should show post
846
+ ------------------------------------------------------
847
+ Processing by Blogy::PostsController#show as JSON
848
+ Parameters: {"id"=>"1003"}
849
+ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.0ms)
850
+  (0.1ms) rollback transaction
851
+  (0.1ms) begin transaction
852
+ -----------------------------------------------------
853
+ Blogy::PostsControllerTest: test_0005_should get edit
854
+ -----------------------------------------------------
855
+ Processing by Blogy::PostsController#edit as JSON
856
+ Parameters: {"id"=>"1004"}
857
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)
858
+  (0.1ms) rollback transaction
859
+  (0.1ms) begin transaction
860
+ --------------------------------------------------------
861
+ Blogy::PostsControllerTest: test_0006_should update post
862
+ --------------------------------------------------------
863
+ Processing by Blogy::PostsController#update as JSON
864
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}, "id"=>"1005"}
865
+  (0.1ms) SAVEPOINT active_record_1
866
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
867
+ Completed 500 Internal Server Error in 2ms
868
+  (0.1ms) rollback transaction
869
+  (0.1ms) begin transaction
870
+ ---------------------------------------------------------
871
+ Blogy::PostsControllerTest: test_0007_should destroy post
872
+ ---------------------------------------------------------
873
+ Processing by Blogy::PostsController#destroy as JSON
874
+ Parameters: {"id"=>"1006"}
875
+ Completed 500 Internal Server Error in 0ms
876
+  (0.1ms) rollback transaction
877
+  (0.1ms) begin transaction
878
+ ------------------------------------------------------
879
+ Blogy::PostsControllerTest: test_0001_should get index
880
+ ------------------------------------------------------
881
+ Processing by Blogy::PostsController#index as JSON
882
+ Blogy::Post Load (0.3ms) SELECT "blogy_posts".* FROM "blogy_posts"
883
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.3ms)
884
+  (0.1ms) rollback transaction
885
+  (0.1ms) begin transaction
886
+ --------------------------
887
+ BlogyTest: test_0001_truth
888
+ --------------------------
889
+  (0.1ms) rollback transaction
890
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
891
+  (0.1ms) begin transaction
892
+ ------------------------------------------------------
893
+ Blogy::PostsControllerTest: test_0001_should get index
894
+ ------------------------------------------------------
895
+ Processing by Blogy::PostsController#index as JSON
896
+ Blogy::Post Load (0.2ms) SELECT "blogy_posts".* FROM "blogy_posts"
897
+ Completed 200 OK in 13ms (Views: 0.8ms | ActiveRecord: 0.2ms)
898
+  (0.1ms) rollback transaction
899
+  (0.1ms) begin transaction
900
+ -----------------------------------------------------
901
+ Blogy::PostsControllerTest: test_0005_should get edit
902
+ -----------------------------------------------------
903
+ Processing by Blogy::PostsController#edit as JSON
904
+ Parameters: {"id"=>"1002"}
905
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)
906
+  (0.1ms) rollback transaction
907
+  (0.1ms) begin transaction
908
+ ----------------------------------------------------
909
+ Blogy::PostsControllerTest: test_0002_should get new
910
+ ----------------------------------------------------
911
+ Processing by Blogy::PostsController#new as JSON
912
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms)
913
+  (0.1ms) rollback transaction
914
+  (0.1ms) begin transaction
915
+ --------------------------------------------------------
916
+ Blogy::PostsControllerTest: test_0006_should update post
917
+ --------------------------------------------------------
918
+ Processing by Blogy::PostsController#update as JSON
919
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}, "id"=>"1004"}
920
+  (0.1ms) SAVEPOINT active_record_1
921
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
922
+ Completed 500 Internal Server Error in 2ms
923
+  (0.1ms) rollback transaction
924
+  (0.1ms) begin transaction
925
+ ------------------------------------------------------
926
+ Blogy::PostsControllerTest: test_0004_should show post
927
+ ------------------------------------------------------
928
+ Processing by Blogy::PostsController#show as JSON
929
+ Parameters: {"id"=>"1005"}
930
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)
931
+  (0.1ms) rollback transaction
932
+  (0.1ms) begin transaction
933
+ ---------------------------------------------------------
934
+ Blogy::PostsControllerTest: test_0007_should destroy post
935
+ ---------------------------------------------------------
936
+ Processing by Blogy::PostsController#destroy as JSON
937
+ Parameters: {"id"=>"1006"}
938
+ Completed 500 Internal Server Error in 0ms
939
+  (0.1ms) rollback transaction
940
+  (0.1ms) begin transaction
941
+ --------------------------------------------------------
942
+ Blogy::PostsControllerTest: test_0003_should create post
943
+ --------------------------------------------------------
944
+ Processing by Blogy::PostsController#create as JSON
945
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}}
946
+ Completed 201 Created in 10ms (Views: 5.8ms | ActiveRecord: 0.0ms)
947
+  (0.1ms) rollback transaction
948
+  (0.1ms) begin transaction
949
+ --------------------------
950
+ BlogyTest: test_0001_truth
951
+ --------------------------
952
+  (0.1ms) rollback transaction
953
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
954
+  (0.1ms) begin transaction
955
+ --------------------------
956
+ BlogyTest: test_0001_truth
957
+ --------------------------
958
+  (0.1ms) rollback transaction
959
+  (0.1ms) begin transaction
960
+ ----------------------------------------------------
961
+ Blogy::PostsControllerTest: test_0002_should get new
962
+ ----------------------------------------------------
963
+ Processing by Blogy::PostsController#new as JSON
964
+ Completed 200 OK in 15ms (Views: 0.8ms | ActiveRecord: 0.0ms)
965
+  (0.1ms) rollback transaction
966
+  (0.1ms) begin transaction
967
+ ------------------------------------------------------
968
+ Blogy::PostsControllerTest: test_0001_should get index
969
+ ------------------------------------------------------
970
+ Processing by Blogy::PostsController#index as JSON
971
+ Blogy::Post Load (0.2ms) SELECT "blogy_posts".* FROM "blogy_posts"
972
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.2ms)
973
+  (0.1ms) rollback transaction
974
+  (0.1ms) begin transaction
975
+ ---------------------------------------------------------
976
+ Blogy::PostsControllerTest: test_0007_should destroy post
977
+ ---------------------------------------------------------
978
+ Processing by Blogy::PostsController#destroy as JSON
979
+ Parameters: {"id"=>"1003"}
980
+ Completed 204 No Content in 5ms (ActiveRecord: 0.0ms)
981
+  (0.1ms) rollback transaction
982
+  (0.1ms) begin transaction
983
+ --------------------------------------------------------
984
+ Blogy::PostsControllerTest: test_0006_should update post
985
+ --------------------------------------------------------
986
+ Processing by Blogy::PostsController#update as JSON
987
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}, "id"=>"1004"}
988
+  (0.1ms) SAVEPOINT active_record_1
989
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
990
+ Completed 204 No Content in 4ms (ActiveRecord: 0.2ms)
991
+  (0.1ms) rollback transaction
992
+  (0.1ms) begin transaction
993
+ -----------------------------------------------------
994
+ Blogy::PostsControllerTest: test_0005_should get edit
995
+ -----------------------------------------------------
996
+ Processing by Blogy::PostsController#edit as JSON
997
+ Parameters: {"id"=>"1005"}
998
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.0ms)
999
+  (0.1ms) rollback transaction
1000
+  (0.1ms) begin transaction
1001
+ --------------------------------------------------------
1002
+ Blogy::PostsControllerTest: test_0003_should create post
1003
+ --------------------------------------------------------
1004
+ Processing by Blogy::PostsController#create as JSON
1005
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}}
1006
+ Completed 201 Created in 8ms (Views: 5.9ms | ActiveRecord: 0.0ms)
1007
+  (0.1ms) rollback transaction
1008
+  (0.1ms) begin transaction
1009
+ ------------------------------------------------------
1010
+ Blogy::PostsControllerTest: test_0004_should show post
1011
+ ------------------------------------------------------
1012
+ Processing by Blogy::PostsController#show as JSON
1013
+ Parameters: {"id"=>"1007"}
1014
+ Completed 200 OK in 3ms (Views: 1.3ms | ActiveRecord: 0.0ms)
1015
+  (0.1ms) rollback transaction
1016
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1017
+  (0.1ms) begin transaction
1018
+ --------------------------
1019
+ BlogyTest: test_0001_truth
1020
+ --------------------------
1021
+  (0.0ms) rollback transaction
1022
+  (0.1ms) begin transaction
1023
+ -----------------------------------------------------
1024
+ Blogy::PostsControllerTest: test_0005_should get edit
1025
+ -----------------------------------------------------
1026
+ Processing by Blogy::PostsController#edit as JSON
1027
+ Parameters: {"id"=>"1001"}
1028
+ Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 0.0ms)
1029
+  (0.1ms) rollback transaction
1030
+  (0.1ms) begin transaction
1031
+ ---------------------------------------------------------
1032
+ Blogy::PostsControllerTest: test_0007_should destroy post
1033
+ ---------------------------------------------------------
1034
+ Processing by Blogy::PostsController#destroy as JSON
1035
+ Parameters: {"id"=>"1002"}
1036
+ Completed 204 No Content in 4ms (ActiveRecord: 0.0ms)
1037
+  (0.1ms) rollback transaction
1038
+  (0.1ms) begin transaction
1039
+ ----------------------------------------------------
1040
+ Blogy::PostsControllerTest: test_0002_should get new
1041
+ ----------------------------------------------------
1042
+ Processing by Blogy::PostsController#new as JSON
1043
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1044
+  (0.1ms) rollback transaction
1045
+  (0.1ms) begin transaction
1046
+ ------------------------------------------------------
1047
+ Blogy::PostsControllerTest: test_0004_should show post
1048
+ ------------------------------------------------------
1049
+ Processing by Blogy::PostsController#show as JSON
1050
+ Parameters: {"id"=>"1004"}
1051
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.0ms)
1052
+  (0.2ms) rollback transaction
1053
+  (0.1ms) begin transaction
1054
+ --------------------------------------------------------
1055
+ Blogy::PostsControllerTest: test_0003_should create post
1056
+ --------------------------------------------------------
1057
+ Processing by Blogy::PostsController#create as JSON
1058
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}}
1059
+ Completed 201 Created in 8ms (Views: 6.0ms | ActiveRecord: 0.0ms)
1060
+  (0.1ms) rollback transaction
1061
+  (0.1ms) begin transaction
1062
+ ------------------------------------------------------
1063
+ Blogy::PostsControllerTest: test_0001_should get index
1064
+ ------------------------------------------------------
1065
+ Processing by Blogy::PostsController#index as JSON
1066
+ Blogy::Post Load (0.2ms) SELECT "blogy_posts".* FROM "blogy_posts"
1067
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.2ms)
1068
+  (0.1ms) rollback transaction
1069
+  (0.1ms) begin transaction
1070
+ --------------------------------------------------------
1071
+ Blogy::PostsControllerTest: test_0006_should update post
1072
+ --------------------------------------------------------
1073
+ Processing by Blogy::PostsController#update as JSON
1074
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "ilustration_tmp"=>nil, "published"=>true}, "id"=>"1007"}
1075
+  (0.1ms) SAVEPOINT active_record_1
1076
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1077
+ Completed 204 No Content in 4ms (ActiveRecord: 0.2ms)
1078
+  (0.1ms) rollback transaction
1079
+  (1.5ms) CREATE TABLE "blogy_post_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blogy_post_id" integer, "locale" varchar, "title" varchar, "slug" varchar, "text" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1080
+  (3.8ms) select sqlite_version(*)
1081
+  (4.6ms) CREATE INDEX "index_blogy_post_translations_on_blogy_post_id" ON "blogy_post_translations" ("blogy_post_id")
1082
+  (0.6ms) SELECT sql
1083
+ FROM sqlite_master
1084
+ WHERE name='index_blogy_post_translations_on_blogy_post_id' AND type='index'
1085
+ UNION ALL
1086
+ SELECT sql
1087
+ FROM sqlite_temp_master
1088
+ WHERE name='index_blogy_post_translations_on_blogy_post_id' AND type='index'
1089
+
1090
+  (0.9ms) CREATE INDEX "index_blogy_post_translations_on_locale" ON "blogy_post_translations" ("locale")
1091
+  (0.1ms) SELECT sql
1092
+ FROM sqlite_master
1093
+ WHERE name='index_blogy_post_translations_on_locale' AND type='index'
1094
+ UNION ALL
1095
+ SELECT sql
1096
+ FROM sqlite_temp_master
1097
+ WHERE name='index_blogy_post_translations_on_locale' AND type='index'
1098
+
1099
+  (0.1ms)  SELECT sql
1100
+ FROM sqlite_master
1101
+ WHERE name='index_blogy_post_translations_on_blogy_post_id' AND type='index'
1102
+ UNION ALL
1103
+ SELECT sql
1104
+ FROM sqlite_temp_master
1105
+ WHERE name='index_blogy_post_translations_on_blogy_post_id' AND type='index'
1106
+ 
1107
+  (0.8ms) CREATE INDEX "index_blogy_post_translations_on_slug" ON "blogy_post_translations" ("slug")
1108
+  (5.7ms) CREATE TABLE "blogy_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "published" boolean, "draft" boolean, "ilustration" varchar, "ilustration_tmp" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1109
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
1110
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1111
+  (0.2ms) SELECT version FROM "schema_migrations"
1112
+  (6.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211205643')
1113
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1114
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1115
+ Migrating to CreateBlogyPosts (20150211002506)
1116
+  (0.2ms) begin transaction
1117
+  (0.2ms) CREATE TABLE "blogy_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "published" boolean, "draft" boolean, "ilustration" varchar, "ilustration_tmp" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1118
+ SQLite3::SQLException: table "blogy_posts" already exists: CREATE TABLE "blogy_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "published" boolean, "draft" boolean, "ilustration" varchar, "ilustration_tmp" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1119
+  (0.1ms) rollback transaction
1120
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1121
+  (0.1ms) select sqlite_version(*)
1122
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1123
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1124
+ Migrating to CreateBlogyPosts (20150211002506)
1125
+  (0.1ms) begin transaction
1126
+  (0.7ms) CREATE TABLE "blogy_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "published" boolean, "draft" boolean, "ilustration" varchar, "ilustration_tmp" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1127
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211002506"]]
1128
+  (1.3ms) commit transaction
1129
+ Migrating to CreateBlogyPostTranslations (20150211205643)
1130
+  (0.1ms) begin transaction
1131
+  (0.5ms) CREATE TABLE "blogy_post_translations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "blogy_post_id" integer, "locale" varchar, "title" varchar, "slug" varchar, "text" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1132
+  (0.1ms) CREATE INDEX "index_blogy_post_translations_on_blogy_post_id" ON "blogy_post_translations" ("blogy_post_id")
1133
+  (0.1ms) SELECT sql
1134
+ FROM sqlite_master
1135
+ WHERE name='index_blogy_post_translations_on_blogy_post_id' AND type='index'
1136
+ UNION ALL
1137
+ SELECT sql
1138
+ FROM sqlite_temp_master
1139
+ WHERE name='index_blogy_post_translations_on_blogy_post_id' AND type='index'
1140
+
1141
+  (0.2ms) CREATE INDEX "index_blogy_post_translations_on_locale" ON "blogy_post_translations" ("locale")
1142
+  (0.1ms) SELECT sql
1143
+ FROM sqlite_master
1144
+ WHERE name='index_blogy_post_translations_on_locale' AND type='index'
1145
+ UNION ALL
1146
+ SELECT sql
1147
+ FROM sqlite_temp_master
1148
+ WHERE name='index_blogy_post_translations_on_locale' AND type='index'
1149
+
1150
+  (0.1ms)  SELECT sql
1151
+ FROM sqlite_master
1152
+ WHERE name='index_blogy_post_translations_on_blogy_post_id' AND type='index'
1153
+ UNION ALL
1154
+ SELECT sql
1155
+ FROM sqlite_temp_master
1156
+ WHERE name='index_blogy_post_translations_on_blogy_post_id' AND type='index'
1157
+ 
1158
+  (0.2ms) CREATE INDEX "index_blogy_post_translations_on_slug" ON "blogy_post_translations" ("slug")
1159
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211205643"]]
1160
+  (1.0ms) commit transaction
1161
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1162
+  (0.4ms) SELECT sql
1163
+ FROM sqlite_master
1164
+ WHERE name='index_blogy_post_translations_on_slug' AND type='index'
1165
+ UNION ALL
1166
+ SELECT sql
1167
+ FROM sqlite_temp_master
1168
+ WHERE name='index_blogy_post_translations_on_slug' AND type='index'
1169
+
1170
+  (0.3ms)  SELECT sql
1171
+ FROM sqlite_master
1172
+ WHERE name='index_blogy_post_translations_on_locale' AND type='index'
1173
+ UNION ALL
1174
+ SELECT sql
1175
+ FROM sqlite_temp_master
1176
+ WHERE name='index_blogy_post_translations_on_locale' AND type='index'
1177
+ 
1178
+  (0.2ms) SELECT sql
1179
+ FROM sqlite_master
1180
+ WHERE name='index_blogy_post_translations_on_blogy_post_id' AND type='index'
1181
+ UNION ALL
1182
+ SELECT sql
1183
+ FROM sqlite_temp_master
1184
+ WHERE name='index_blogy_post_translations_on_blogy_post_id' AND type='index'
1185
+
1186
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1187
+  (0.2ms) begin transaction
1188
+ ------------------------------------------------------
1189
+ Blogy::PostsControllerTest: test_0004_should show post
1190
+ ------------------------------------------------------
1191
+ Processing by Blogy::PostsController#show as JSON
1192
+ Parameters: {"id"=>"1001"}
1193
+ Completed 200 OK in 16ms (Views: 0.9ms | ActiveRecord: 0.0ms)
1194
+  (0.1ms) rollback transaction
1195
+  (0.1ms) begin transaction
1196
+ ----------------------------------------------------
1197
+ Blogy::PostsControllerTest: test_0002_should get new
1198
+ ----------------------------------------------------
1199
+ Processing by Blogy::PostsController#new as JSON
1200
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.0ms)
1201
+  (0.1ms) rollback transaction
1202
+  (0.1ms) begin transaction
1203
+ ------------------------------------------------------
1204
+ Blogy::PostsControllerTest: test_0001_should get index
1205
+ ------------------------------------------------------
1206
+ Processing by Blogy::PostsController#index as JSON
1207
+ Blogy::Post Load (0.2ms) SELECT "blogy_posts".* FROM "blogy_posts"
1208
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.2ms)
1209
+  (0.1ms) rollback transaction
1210
+  (0.1ms) begin transaction
1211
+ --------------------------------------------------------
1212
+ Blogy::PostsControllerTest: test_0006_should update post
1213
+ --------------------------------------------------------
1214
+ Processing by Blogy::PostsController#update as JSON
1215
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "published"=>true}, "id"=>"1004"}
1216
+ Completed 400 Bad Request in 0ms
1217
+  (0.2ms) rollback transaction
1218
+  (0.1ms) begin transaction
1219
+ ---------------------------------------------------------
1220
+ Blogy::PostsControllerTest: test_0007_should destroy post
1221
+ ---------------------------------------------------------
1222
+ Processing by Blogy::PostsController#destroy as JSON
1223
+ Parameters: {"id"=>"1005"}
1224
+ Completed 204 No Content in 7ms (ActiveRecord: 0.0ms)
1225
+  (0.1ms) rollback transaction
1226
+  (0.1ms) begin transaction
1227
+ -----------------------------------------------------
1228
+ Blogy::PostsControllerTest: test_0005_should get edit
1229
+ -----------------------------------------------------
1230
+ Processing by Blogy::PostsController#edit as JSON
1231
+ Parameters: {"id"=>"1006"}
1232
+ Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.0ms)
1233
+  (0.1ms) rollback transaction
1234
+  (0.1ms) begin transaction
1235
+ --------------------------------------------------------
1236
+ Blogy::PostsControllerTest: test_0003_should create post
1237
+ --------------------------------------------------------
1238
+ Processing by Blogy::PostsController#create as JSON
1239
+ Parameters: {"post"=>{"draft"=>false, "ilustration"=>nil, "published"=>true}}
1240
+ Completed 400 Bad Request in 0ms
1241
+  (0.1ms) rollback transaction
1242
+  (0.1ms) begin transaction
1243
+ --------------------------
1244
+ BlogyTest: test_0001_truth
1245
+ --------------------------
1246
+  (0.0ms) rollback transaction
1247
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1248
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1249
+  (0.1ms) begin transaction
1250
+ --------------------------------------------------------
1251
+ Blogy::PostsControllerTest: test_0006_should update post
1252
+ --------------------------------------------------------
1253
+ Processing by Blogy::PostsController#update as JSON
1254
+ Parameters: {"blogy/post"=>{"draft"=>false, "ilustration"=>nil, "published"=>true}, "id"=>"1001"}
1255
+  (0.7ms) SAVEPOINT active_record_1
1256
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1257
+ Completed 204 No Content in 24ms (ActiveRecord: 0.7ms)
1258
+  (0.2ms) rollback transaction
1259
+  (0.1ms) begin transaction
1260
+ -----------------------------------------------------
1261
+ Blogy::PostsControllerTest: test_0005_should get edit
1262
+ -----------------------------------------------------
1263
+ Processing by Blogy::PostsController#edit as JSON
1264
+ Parameters: {"id"=>"1002"}
1265
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms)
1266
+  (0.1ms) rollback transaction
1267
+  (0.1ms) begin transaction
1268
+ ------------------------------------------------------
1269
+ Blogy::PostsControllerTest: test_0004_should show post
1270
+ ------------------------------------------------------
1271
+ Processing by Blogy::PostsController#show as JSON
1272
+ Parameters: {"id"=>"1003"}
1273
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)
1274
+  (0.6ms) rollback transaction
1275
+  (0.1ms) begin transaction
1276
+ ------------------------------------------------------
1277
+ Blogy::PostsControllerTest: test_0001_should get index
1278
+ ------------------------------------------------------
1279
+ Processing by Blogy::PostsController#index as JSON
1280
+ Blogy::Post Load (0.3ms) SELECT "blogy_posts".* FROM "blogy_posts"
1281
+ Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.3ms)
1282
+  (0.1ms) rollback transaction
1283
+  (0.1ms) begin transaction
1284
+ ---------------------------------------------------------
1285
+ Blogy::PostsControllerTest: test_0007_should destroy post
1286
+ ---------------------------------------------------------
1287
+ Processing by Blogy::PostsController#destroy as JSON
1288
+ Parameters: {"id"=>"1005"}
1289
+ Completed 204 No Content in 2ms (ActiveRecord: 0.0ms)
1290
+  (0.1ms) rollback transaction
1291
+  (0.1ms) begin transaction
1292
+ ----------------------------------------------------
1293
+ Blogy::PostsControllerTest: test_0002_should get new
1294
+ ----------------------------------------------------
1295
+ Processing by Blogy::PostsController#new as JSON
1296
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.0ms)
1297
+  (0.1ms) rollback transaction
1298
+  (0.1ms) begin transaction
1299
+ --------------------------------------------------------
1300
+ Blogy::PostsControllerTest: test_0003_should create post
1301
+ --------------------------------------------------------
1302
+ Processing by Blogy::PostsController#create as JSON
1303
+ Parameters: {"blogy/post"=>{"draft"=>false, "ilustration"=>nil, "published"=>true}}
1304
+ Completed 201 Created in 11ms (Views: 8.8ms | ActiveRecord: 0.0ms)
1305
+  (0.1ms) rollback transaction
1306
+  (0.1ms) begin transaction
1307
+ --------------------------
1308
+ BlogyTest: test_0001_truth
1309
+ --------------------------
1310
+  (0.1ms) rollback transaction