attached 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. data/lib/attached/version.rb +1 -1
  2. data/test/attached_test.rb +1 -1
  3. data/test/dummy/db/test.sqlite3 +0 -0
  4. data/test/dummy/log/development.log +2 -0
  5. data/test/dummy/log/test.log +274 -0
  6. data/test/dummy/public/system/audios/files/full/{17dc7038-52dc-4a06-87c9-a18d16f853b9.aac → 9a021cef-4d6a-4e85-8ad6-91080f2f8487.aac} +0 -0
  7. data/test/dummy/public/system/audios/files/full/{226fe84f-54ff-47b8-8f8f-5bc5c966c948.aac → a4cd4fdb-87db-4730-94ae-0eb97186cf8b.aac} +0 -0
  8. data/test/dummy/public/system/audios/files/large/{17dc7038-52dc-4a06-87c9-a18d16f853b9.aac → 9a021cef-4d6a-4e85-8ad6-91080f2f8487.aac} +0 -0
  9. data/test/dummy/public/system/audios/files/large/{226fe84f-54ff-47b8-8f8f-5bc5c966c948.aac → a4cd4fdb-87db-4730-94ae-0eb97186cf8b.aac} +0 -0
  10. data/test/dummy/public/system/audios/files/original/{17dc7038-52dc-4a06-87c9-a18d16f853b9.wav → 9a021cef-4d6a-4e85-8ad6-91080f2f8487.wav} +0 -0
  11. data/test/dummy/public/system/audios/files/original/{226fe84f-54ff-47b8-8f8f-5bc5c966c948.wav → a4cd4fdb-87db-4730-94ae-0eb97186cf8b.wav} +0 -0
  12. data/test/dummy/public/system/audios/files/small/{17dc7038-52dc-4a06-87c9-a18d16f853b9.aac → 9a021cef-4d6a-4e85-8ad6-91080f2f8487.aac} +0 -0
  13. data/test/dummy/public/system/audios/files/small/{226fe84f-54ff-47b8-8f8f-5bc5c966c948.aac → a4cd4fdb-87db-4730-94ae-0eb97186cf8b.aac} +0 -0
  14. data/test/dummy/public/system/images/files/full/{0398e378-0f37-4963-8d97-07faa1ffb8d0.jpg → 27701258-172d-40ca-8cf3-f22295c39beb.jpg} +0 -0
  15. data/test/dummy/public/system/images/files/full/{0deff38e-da37-4b4b-a2e8-134c9ff6eec1.jpg → 4f0e4668-f332-45bf-bd29-cd20cab9a1db.jpg} +0 -0
  16. data/test/dummy/public/system/images/files/large/{0398e378-0f37-4963-8d97-07faa1ffb8d0.jpg → 27701258-172d-40ca-8cf3-f22295c39beb.jpg} +0 -0
  17. data/test/dummy/public/system/images/files/large/{0deff38e-da37-4b4b-a2e8-134c9ff6eec1.jpg → 4f0e4668-f332-45bf-bd29-cd20cab9a1db.jpg} +0 -0
  18. data/test/dummy/public/system/images/files/original/{0398e378-0f37-4963-8d97-07faa1ffb8d0.png → 27701258-172d-40ca-8cf3-f22295c39beb.png} +0 -0
  19. data/test/dummy/public/system/images/files/original/{0deff38e-da37-4b4b-a2e8-134c9ff6eec1.png → 4f0e4668-f332-45bf-bd29-cd20cab9a1db.png} +0 -0
  20. data/test/dummy/public/system/images/files/small/{0398e378-0f37-4963-8d97-07faa1ffb8d0.jpg → 27701258-172d-40ca-8cf3-f22295c39beb.jpg} +0 -0
  21. data/test/dummy/public/system/images/files/small/{0deff38e-da37-4b4b-a2e8-134c9ff6eec1.jpg → 4f0e4668-f332-45bf-bd29-cd20cab9a1db.jpg} +0 -0
  22. data/test/dummy/public/system/images/files/thumb/{0398e378-0f37-4963-8d97-07faa1ffb8d0.jpg → 27701258-172d-40ca-8cf3-f22295c39beb.jpg} +0 -0
  23. data/test/dummy/public/system/images/files/thumb/{0deff38e-da37-4b4b-a2e8-134c9ff6eec1.jpg → 4f0e4668-f332-45bf-bd29-cd20cab9a1db.jpg} +0 -0
  24. data/test/dummy/test/functional/audios_controller_test.rb +12 -11
  25. data/test/dummy/test/functional/images_controller_test.rb +12 -11
  26. data/test/dummy/test/functional/main_controller_test.rb +2 -2
  27. data/test/dummy/test/unit/audio_test.rb +5 -5
  28. data/test/dummy/test/unit/image_test.rb +5 -5
  29. metadata +46 -264
  30. data/test/dummy/public/stylesheets/style.css +0 -11
  31. data/test/dummy/public/system/audios/files/full/3329b2e4-83d7-43e1-9006-a3e74ae5041d.aac +0 -0
  32. data/test/dummy/public/system/audios/files/full/49bedde0-54ba-4090-89ee-1f7ae0ac5751.aac +0 -0
  33. data/test/dummy/public/system/audios/files/full/4a7209d2-07c1-4681-9648-4b4c7351ad23.aac +0 -0
  34. data/test/dummy/public/system/audios/files/full/6fecf709-77b7-4813-b66f-71ff8345b1d7.aac +0 -0
  35. data/test/dummy/public/system/audios/files/full/7fae925c-b21c-4f62-bb3e-48b584802b2c.aac +0 -0
  36. data/test/dummy/public/system/audios/files/full/a5e09375-fe8d-4231-a4a0-7042c176124a.aac +0 -0
  37. data/test/dummy/public/system/audios/files/full/a9300bd7-74f2-431f-8fe1-08f296faae70.aac +0 -0
  38. data/test/dummy/public/system/audios/files/full/c056b608-3c2b-43c2-a883-fd125d209d54.aac +0 -0
  39. data/test/dummy/public/system/audios/files/full/cc491ac1-b41a-4a0f-a1bd-232f3fd04ad9.aac +0 -0
  40. data/test/dummy/public/system/audios/files/full/e7832cfe-91c1-4f09-a820-763204988b85.aac +0 -0
  41. data/test/dummy/public/system/audios/files/full/ec236266-a550-4706-9755-9a12db3024f4.aac +0 -0
  42. data/test/dummy/public/system/audios/files/full/f347b3a9-5c36-4b72-a23d-1d702ec592c7.aac +0 -0
  43. data/test/dummy/public/system/audios/files/large/3329b2e4-83d7-43e1-9006-a3e74ae5041d.aac +0 -0
  44. data/test/dummy/public/system/audios/files/large/49bedde0-54ba-4090-89ee-1f7ae0ac5751.aac +0 -0
  45. data/test/dummy/public/system/audios/files/large/4a7209d2-07c1-4681-9648-4b4c7351ad23.aac +0 -0
  46. data/test/dummy/public/system/audios/files/large/6fecf709-77b7-4813-b66f-71ff8345b1d7.aac +0 -0
  47. data/test/dummy/public/system/audios/files/large/7fae925c-b21c-4f62-bb3e-48b584802b2c.aac +0 -0
  48. data/test/dummy/public/system/audios/files/large/a5e09375-fe8d-4231-a4a0-7042c176124a.aac +0 -0
  49. data/test/dummy/public/system/audios/files/large/a9300bd7-74f2-431f-8fe1-08f296faae70.aac +0 -0
  50. data/test/dummy/public/system/audios/files/large/c056b608-3c2b-43c2-a883-fd125d209d54.aac +0 -0
  51. data/test/dummy/public/system/audios/files/large/cc491ac1-b41a-4a0f-a1bd-232f3fd04ad9.aac +0 -0
  52. data/test/dummy/public/system/audios/files/large/e7832cfe-91c1-4f09-a820-763204988b85.aac +0 -0
  53. data/test/dummy/public/system/audios/files/large/ec236266-a550-4706-9755-9a12db3024f4.aac +0 -0
  54. data/test/dummy/public/system/audios/files/large/f347b3a9-5c36-4b72-a23d-1d702ec592c7.aac +0 -0
  55. data/test/dummy/public/system/audios/files/original/3329b2e4-83d7-43e1-9006-a3e74ae5041d.wav +0 -0
  56. data/test/dummy/public/system/audios/files/original/49bedde0-54ba-4090-89ee-1f7ae0ac5751.wav +0 -0
  57. data/test/dummy/public/system/audios/files/original/4a7209d2-07c1-4681-9648-4b4c7351ad23.wav +0 -0
  58. data/test/dummy/public/system/audios/files/original/6fecf709-77b7-4813-b66f-71ff8345b1d7.wav +0 -0
  59. data/test/dummy/public/system/audios/files/original/7fae925c-b21c-4f62-bb3e-48b584802b2c.wav +0 -0
  60. data/test/dummy/public/system/audios/files/original/a5e09375-fe8d-4231-a4a0-7042c176124a.wav +0 -0
  61. data/test/dummy/public/system/audios/files/original/a9300bd7-74f2-431f-8fe1-08f296faae70.wav +0 -0
  62. data/test/dummy/public/system/audios/files/original/c056b608-3c2b-43c2-a883-fd125d209d54.wav +0 -0
  63. data/test/dummy/public/system/audios/files/original/cc491ac1-b41a-4a0f-a1bd-232f3fd04ad9.wav +0 -0
  64. data/test/dummy/public/system/audios/files/original/e7832cfe-91c1-4f09-a820-763204988b85.wav +0 -0
  65. data/test/dummy/public/system/audios/files/original/ec236266-a550-4706-9755-9a12db3024f4.wav +0 -0
  66. data/test/dummy/public/system/audios/files/original/f347b3a9-5c36-4b72-a23d-1d702ec592c7.wav +0 -0
  67. data/test/dummy/public/system/audios/files/small/3329b2e4-83d7-43e1-9006-a3e74ae5041d.aac +0 -0
  68. data/test/dummy/public/system/audios/files/small/49bedde0-54ba-4090-89ee-1f7ae0ac5751.aac +0 -0
  69. data/test/dummy/public/system/audios/files/small/4a7209d2-07c1-4681-9648-4b4c7351ad23.aac +0 -0
  70. data/test/dummy/public/system/audios/files/small/6fecf709-77b7-4813-b66f-71ff8345b1d7.aac +0 -0
  71. data/test/dummy/public/system/audios/files/small/7fae925c-b21c-4f62-bb3e-48b584802b2c.aac +0 -0
  72. data/test/dummy/public/system/audios/files/small/a5e09375-fe8d-4231-a4a0-7042c176124a.aac +0 -0
  73. data/test/dummy/public/system/audios/files/small/a9300bd7-74f2-431f-8fe1-08f296faae70.aac +0 -0
  74. data/test/dummy/public/system/audios/files/small/c056b608-3c2b-43c2-a883-fd125d209d54.aac +0 -0
  75. data/test/dummy/public/system/audios/files/small/cc491ac1-b41a-4a0f-a1bd-232f3fd04ad9.aac +0 -0
  76. data/test/dummy/public/system/audios/files/small/e7832cfe-91c1-4f09-a820-763204988b85.aac +0 -0
  77. data/test/dummy/public/system/audios/files/small/ec236266-a550-4706-9755-9a12db3024f4.aac +0 -0
  78. data/test/dummy/public/system/audios/files/small/f347b3a9-5c36-4b72-a23d-1d702ec592c7.aac +0 -0
  79. data/test/dummy/public/system/images/files/full/3192b7ef-cf69-4d72-9ee0-e92a9e87894f.jpg +0 -0
  80. data/test/dummy/public/system/images/files/full/623b4f97-a2ee-4f7a-8303-37781145b3af.jpg +0 -0
  81. data/test/dummy/public/system/images/files/full/77106ad8-1f7c-42de-b7ff-3c5526d1ceec.jpg +0 -0
  82. data/test/dummy/public/system/images/files/full/81e9e58a-9d67-4df4-877e-8559be8a0016.jpg +0 -0
  83. data/test/dummy/public/system/images/files/full/9f819af2-f4cc-469f-880c-77e9ae92524c.jpg +0 -0
  84. data/test/dummy/public/system/images/files/full/a942bfae-a9be-48c4-8853-ff69cee18e7a.jpg +0 -0
  85. data/test/dummy/public/system/images/files/full/b77e8578-ea4d-425e-9568-8712f868f07d.jpg +0 -0
  86. data/test/dummy/public/system/images/files/full/bed96328-572e-4dcd-af28-183d1a341f2f.jpg +0 -0
  87. data/test/dummy/public/system/images/files/full/d335b408-a3a4-41c8-aae9-e1b8c33ad2a7.jpg +0 -0
  88. data/test/dummy/public/system/images/files/full/de242f89-0b1b-4b99-a3a0-7ff815c88ca3.jpg +0 -0
  89. data/test/dummy/public/system/images/files/full/f363bd79-106d-4e91-bfdb-f9aa2d040533.jpg +0 -0
  90. data/test/dummy/public/system/images/files/full/f94561f8-0dd5-45cd-9ec8-f739fcedca83.jpg +0 -0
  91. data/test/dummy/public/system/images/files/large/3192b7ef-cf69-4d72-9ee0-e92a9e87894f.jpg +0 -0
  92. data/test/dummy/public/system/images/files/large/623b4f97-a2ee-4f7a-8303-37781145b3af.jpg +0 -0
  93. data/test/dummy/public/system/images/files/large/77106ad8-1f7c-42de-b7ff-3c5526d1ceec.jpg +0 -0
  94. data/test/dummy/public/system/images/files/large/81e9e58a-9d67-4df4-877e-8559be8a0016.jpg +0 -0
  95. data/test/dummy/public/system/images/files/large/9f819af2-f4cc-469f-880c-77e9ae92524c.jpg +0 -0
  96. data/test/dummy/public/system/images/files/large/a942bfae-a9be-48c4-8853-ff69cee18e7a.jpg +0 -0
  97. data/test/dummy/public/system/images/files/large/b77e8578-ea4d-425e-9568-8712f868f07d.jpg +0 -0
  98. data/test/dummy/public/system/images/files/large/bed96328-572e-4dcd-af28-183d1a341f2f.jpg +0 -0
  99. data/test/dummy/public/system/images/files/large/d335b408-a3a4-41c8-aae9-e1b8c33ad2a7.jpg +0 -0
  100. data/test/dummy/public/system/images/files/large/de242f89-0b1b-4b99-a3a0-7ff815c88ca3.jpg +0 -0
  101. data/test/dummy/public/system/images/files/large/f363bd79-106d-4e91-bfdb-f9aa2d040533.jpg +0 -0
  102. data/test/dummy/public/system/images/files/large/f94561f8-0dd5-45cd-9ec8-f739fcedca83.jpg +0 -0
  103. data/test/dummy/public/system/images/files/original/3192b7ef-cf69-4d72-9ee0-e92a9e87894f.png +0 -0
  104. data/test/dummy/public/system/images/files/original/623b4f97-a2ee-4f7a-8303-37781145b3af.png +0 -0
  105. data/test/dummy/public/system/images/files/original/77106ad8-1f7c-42de-b7ff-3c5526d1ceec.png +0 -0
  106. data/test/dummy/public/system/images/files/original/81e9e58a-9d67-4df4-877e-8559be8a0016.png +0 -0
  107. data/test/dummy/public/system/images/files/original/9f819af2-f4cc-469f-880c-77e9ae92524c.png +0 -0
  108. data/test/dummy/public/system/images/files/original/a942bfae-a9be-48c4-8853-ff69cee18e7a.png +0 -0
  109. data/test/dummy/public/system/images/files/original/b77e8578-ea4d-425e-9568-8712f868f07d.png +0 -0
  110. data/test/dummy/public/system/images/files/original/bed96328-572e-4dcd-af28-183d1a341f2f.png +0 -0
  111. data/test/dummy/public/system/images/files/original/d335b408-a3a4-41c8-aae9-e1b8c33ad2a7.png +0 -0
  112. data/test/dummy/public/system/images/files/original/de242f89-0b1b-4b99-a3a0-7ff815c88ca3.png +0 -0
  113. data/test/dummy/public/system/images/files/original/f363bd79-106d-4e91-bfdb-f9aa2d040533.png +0 -0
  114. data/test/dummy/public/system/images/files/original/f94561f8-0dd5-45cd-9ec8-f739fcedca83.png +0 -0
  115. data/test/dummy/public/system/images/files/small/3192b7ef-cf69-4d72-9ee0-e92a9e87894f.jpg +0 -0
  116. data/test/dummy/public/system/images/files/small/623b4f97-a2ee-4f7a-8303-37781145b3af.jpg +0 -0
  117. data/test/dummy/public/system/images/files/small/77106ad8-1f7c-42de-b7ff-3c5526d1ceec.jpg +0 -0
  118. data/test/dummy/public/system/images/files/small/81e9e58a-9d67-4df4-877e-8559be8a0016.jpg +0 -0
  119. data/test/dummy/public/system/images/files/small/9f819af2-f4cc-469f-880c-77e9ae92524c.jpg +0 -0
  120. data/test/dummy/public/system/images/files/small/a942bfae-a9be-48c4-8853-ff69cee18e7a.jpg +0 -0
  121. data/test/dummy/public/system/images/files/small/b77e8578-ea4d-425e-9568-8712f868f07d.jpg +0 -0
  122. data/test/dummy/public/system/images/files/small/bed96328-572e-4dcd-af28-183d1a341f2f.jpg +0 -0
  123. data/test/dummy/public/system/images/files/small/d335b408-a3a4-41c8-aae9-e1b8c33ad2a7.jpg +0 -0
  124. data/test/dummy/public/system/images/files/small/de242f89-0b1b-4b99-a3a0-7ff815c88ca3.jpg +0 -0
  125. data/test/dummy/public/system/images/files/small/f363bd79-106d-4e91-bfdb-f9aa2d040533.jpg +0 -0
  126. data/test/dummy/public/system/images/files/small/f94561f8-0dd5-45cd-9ec8-f739fcedca83.jpg +0 -0
  127. data/test/dummy/public/system/images/files/thumb/3192b7ef-cf69-4d72-9ee0-e92a9e87894f.jpg +0 -0
  128. data/test/dummy/public/system/images/files/thumb/623b4f97-a2ee-4f7a-8303-37781145b3af.jpg +0 -0
  129. data/test/dummy/public/system/images/files/thumb/77106ad8-1f7c-42de-b7ff-3c5526d1ceec.jpg +0 -0
  130. data/test/dummy/public/system/images/files/thumb/81e9e58a-9d67-4df4-877e-8559be8a0016.jpg +0 -0
  131. data/test/dummy/public/system/images/files/thumb/9f819af2-f4cc-469f-880c-77e9ae92524c.jpg +0 -0
  132. data/test/dummy/public/system/images/files/thumb/a942bfae-a9be-48c4-8853-ff69cee18e7a.jpg +0 -0
  133. data/test/dummy/public/system/images/files/thumb/b77e8578-ea4d-425e-9568-8712f868f07d.jpg +0 -0
  134. data/test/dummy/public/system/images/files/thumb/bed96328-572e-4dcd-af28-183d1a341f2f.jpg +0 -0
  135. data/test/dummy/public/system/images/files/thumb/d335b408-a3a4-41c8-aae9-e1b8c33ad2a7.jpg +0 -0
  136. data/test/dummy/public/system/images/files/thumb/de242f89-0b1b-4b99-a3a0-7ff815c88ca3.jpg +0 -0
  137. data/test/dummy/public/system/images/files/thumb/f363bd79-106d-4e91-bfdb-f9aa2d040533.jpg +0 -0
  138. data/test/dummy/public/system/images/files/thumb/f94561f8-0dd5-45cd-9ec8-f739fcedca83.jpg +0 -0
@@ -1,3 +1,3 @@
1
1
  module Attached
2
- VERSION = "0.4.7"
2
+ VERSION = "0.4.8"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class AttachedTest < ActiveSupport::TestCase
4
- test "attached is contained in a module" do
4
+ test "attached is a module" do
5
5
  assert_kind_of Module, Attached
6
6
  end
7
7
  end
Binary file
@@ -591,3 +591,5 @@ Served asset /main.js - 304 Not Modified (0ms)
591
591
 
592
592
  Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-10-21 03:10:39 -0700
593
593
  Served asset /application.js - 304 Not Modified (0ms)
594
+ Image Load (0.1ms) SELECT "images".* FROM "images" 
595
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" 
@@ -272,3 +272,277 @@ Redirected to http://test.host/images/87884898
272
272
  Completed 302 Found in 2ms
273
273
  Processing by MainController#index as HTML
274
274
  Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)
275
+  (0.1ms) SAVEPOINT active_record_1
276
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
277
+  (0.1ms) SAVEPOINT active_record_1
278
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
279
+  (0.1ms) SAVEPOINT active_record_1
280
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
281
+  (0.1ms) SAVEPOINT active_record_1
282
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
283
+  (0.1ms) SAVEPOINT active_record_1
284
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
285
+  (0.2ms) SAVEPOINT active_record_1
286
+ [attached] save attached
287
+ SQL (16.8ms) INSERT INTO "audios" ("created_at", "file_extension", "file_identifier", "file_size", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 23 Oct 2011 05:34:03 UTC +00:00], ["file_extension", ".wav"], ["file_identifier", "6574f79c-1e40-4bf4-8c78-02dbfc3cbaef"], ["file_size", 1055276], ["name", nil], ["updated_at", Sun, 23 Oct 2011 05:34:03 UTC +00:00]]
288
+  (0.1ms) RELEASE SAVEPOINT active_record_1
289
+ Fixture Delete (0.2ms) DELETE FROM "audios"
290
+ Fixture Insert (0.1ms) INSERT INTO "audios" ("name", "file_identifier", "file_extension", "file_size", "created_at", "updated_at", "id") VALUES ('Audio', '7f110c2f-5474-dcbf-bd79-b284b489cb7a', '.wav', 399085, '2011-10-23 05:34:03', '2011-10-23 05:34:03', 410859157)
291
+ Fixture Delete (0.5ms) DELETE FROM "images"
292
+ Fixture Insert (0.2ms) INSERT INTO "images" ("name", "file_identifier", "file_extension", "file_size", "created_at", "updated_at", "id") VALUES ('Image', '7f110c2f-5474-dcbf-bd79-b284b489cb7a', '.png', 399085, '2011-10-23 05:34:03', '2011-10-23 05:34:03', 87884898)
293
+ Audio Load (0.3ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
294
+  (0.1ms) SELECT COUNT(*) FROM "audios" 
295
+ Processing by AudiosController#create as HTML
296
+ Parameters: {"audio"=>{"name"=>"Audio", "file"=>#<Rack::Test::UploadedFile:0x007fcd7d490410 @content_type="audio/wav", @original_filename="audio.wav", @tempfile=#<File:/var/folders/8p/7bk_0rpx5v36zjy9_3ws57sc0000gn/T/audio.wav20111022-33738-ra0pxe>>}}
297
+  (0.2ms) SAVEPOINT active_record_1
298
+ [attached] save attached
299
+ SQL (0.6ms) INSERT INTO "audios" ("created_at", "file_extension", "file_identifier", "file_size", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 23 Oct 2011 05:34:04 UTC +00:00], ["file_extension", ".wav"], ["file_identifier", "f0479214-9946-40ae-8403-0630f781ecfb"], ["file_size", 1055276], ["name", "Audio"], ["updated_at", Sun, 23 Oct 2011 05:34:04 UTC +00:00]]
300
+  (0.1ms) RELEASE SAVEPOINT active_record_1
301
+ Redirected to http://test.host/audios/410859158
302
+ Completed 302 Found in 804ms
303
+  (0.2ms) SELECT COUNT(*) FROM "audios" 
304
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
305
+  (0.1ms) SELECT COUNT(*) FROM "audios" 
306
+ Processing by AudiosController#destroy as HTML
307
+ Parameters: {"id"=>"410859157"}
308
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", "410859157"]]
309
+  (0.0ms) SAVEPOINT active_record_1
310
+ [attached] destroy attached
311
+ SQL (0.3ms) DELETE FROM "audios" WHERE "audios"."id" = ? [["id", 410859157]]
312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
313
+ Redirected to http://test.host/audios
314
+ Completed 302 Found in 4ms
315
+  (0.1ms) SELECT COUNT(*) FROM "audios"
316
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
317
+ Processing by AudiosController#edit as HTML
318
+ Parameters: {"id"=>"410859157"}
319
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", "410859157"]]
320
+ Rendered audios/_form.html.erb (3.7ms)
321
+ Completed 200 OK in 33ms (Views: 31.6ms | ActiveRecord: 0.1ms)
322
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
323
+ Processing by AudiosController#index as HTML
324
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios"
325
+ Completed 200 OK in 77ms (Views: 76.0ms | ActiveRecord: 0.1ms)
326
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
327
+ Processing by AudiosController#new as HTML
328
+ Rendered audios/_form.html.erb (2.1ms)
329
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
330
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
331
+ Processing by AudiosController#show as HTML
332
+ Parameters: {"id"=>"410859157"}
333
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", "410859157"]]
334
+ Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.1ms)
335
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
336
+ Processing by AudiosController#update as HTML
337
+ Parameters: {"audio"=>{"id"=>"410859157", "name"=>"Audio", "file_identifier"=>"7f110c2f-5474-dcbf-bd79-b284b489cb7a", "file_extension"=>".wav", "file_size"=>"399085", "created_at"=>"2011-10-23 05:34:03 UTC", "updated_at"=>"2011-10-23 05:34:03 UTC"}, "id"=>"410859157"}
338
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", "410859157"]]
339
+ WARNING: Can't mass-assign protected attributes: id
340
+  (0.1ms) SAVEPOINT active_record_1
341
+ [attached] save attached
342
+  (0.0ms) RELEASE SAVEPOINT active_record_1
343
+ Redirected to http://test.host/audios/410859157
344
+ Completed 302 Found in 7ms
345
+  (0.2ms) SAVEPOINT active_record_1
346
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
347
+  (0.0ms) SAVEPOINT active_record_1
348
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
349
+  (0.1ms) SAVEPOINT active_record_1
350
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
351
+  (0.1ms) SAVEPOINT active_record_1
352
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
353
+  (0.1ms) SAVEPOINT active_record_1
354
+  (0.6ms) ROLLBACK TO SAVEPOINT active_record_1
355
+  (0.1ms) SAVEPOINT active_record_1
356
+ [attached] save attached
357
+ SQL (0.8ms) INSERT INTO "images" ("created_at", "file_extension", "file_identifier", "file_size", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 23 Oct 2011 05:34:04 UTC +00:00], ["file_extension", ".png"], ["file_identifier", "576f6b78-2412-4a09-9195-66bfd0ffae02"], ["file_size", 399085], ["name", nil], ["updated_at", Sun, 23 Oct 2011 05:34:04 UTC +00:00]]
358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
359
+ Image Load (0.2ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
360
+  (0.1ms) SELECT COUNT(*) FROM "images"
361
+ Processing by ImagesController#create as HTML
362
+ Parameters: {"image"=>{"name"=>"Image", "file"=>#<Rack::Test::UploadedFile:0x007fcd79fd1eb8 @content_type="image/png", @original_filename="image.png", @tempfile=#<File:/var/folders/8p/7bk_0rpx5v36zjy9_3ws57sc0000gn/T/image.png20111022-33738-gglrf2>>}}
363
+  (0.2ms) SAVEPOINT active_record_1
364
+ [attached] save attached
365
+ SQL (0.6ms) INSERT INTO "images" ("created_at", "file_extension", "file_identifier", "file_size", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 23 Oct 2011 05:34:05 UTC +00:00], ["file_extension", ".png"], ["file_identifier", "d792858a-75e1-4d68-948f-3d4d22fe69ee"], ["file_size", 399085], ["name", "Image"], ["updated_at", Sun, 23 Oct 2011 05:34:05 UTC +00:00]]
366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
367
+  (0.0ms) SAVEPOINT active_record_1
368
+ [attached] save attached
369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
370
+ Redirected to http://test.host/images/87884899
371
+ Completed 302 Found in 223ms
372
+  (0.1ms) SELECT COUNT(*) FROM "images"
373
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
374
+  (0.1ms) SELECT COUNT(*) FROM "images"
375
+ Processing by ImagesController#destroy as HTML
376
+ Parameters: {"id"=>"87884898"}
377
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", "87884898"]]
378
+  (0.0ms) SAVEPOINT active_record_1
379
+ [attached] destroy attached
380
+ SQL (0.3ms) DELETE FROM "images" WHERE "images"."id" = ? [["id", 87884898]]
381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
382
+ Redirected to http://test.host/images
383
+ Completed 302 Found in 6ms
384
+  (0.2ms) SELECT COUNT(*) FROM "images" 
385
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
386
+ Processing by ImagesController#edit as HTML
387
+ Parameters: {"id"=>"87884898"}
388
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", "87884898"]]
389
+ Rendered images/_form.html.erb (4.0ms)
390
+ Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.1ms)
391
+ Image Load (0.2ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
392
+ Processing by ImagesController#index as HTML
393
+ Image Load (0.1ms) SELECT "images".* FROM "images" 
394
+ Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms)
395
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
396
+ Processing by ImagesController#new as HTML
397
+ Rendered images/_form.html.erb (3.1ms)
398
+ Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
399
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
400
+ Processing by ImagesController#show as HTML
401
+ Parameters: {"id"=>"87884898"}
402
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", "87884898"]]
403
+ Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.1ms)
404
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
405
+ Processing by ImagesController#update as HTML
406
+ Parameters: {"image"=>{"id"=>"87884898", "name"=>"Image", "file_identifier"=>"7f110c2f-5474-dcbf-bd79-b284b489cb7a", "file_extension"=>".png", "file_size"=>"399085", "created_at"=>"2011-10-23 05:34:03 UTC", "updated_at"=>"2011-10-23 05:34:03 UTC"}, "id"=>"87884898"}
407
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", "87884898"]]
408
+ Redirected to http://test.host/images/87884898
409
+ Completed 302 Found in 3ms
410
+ Processing by MainController#index as HTML
411
+ Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)
412
+  (0.3ms) SAVEPOINT active_record_1
413
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
414
+  (0.0ms) SAVEPOINT active_record_1
415
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
416
+  (0.1ms) SAVEPOINT active_record_1
417
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
418
+  (0.1ms) SAVEPOINT active_record_1
419
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
420
+  (0.1ms) SAVEPOINT active_record_1
421
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
422
+  (0.1ms) SAVEPOINT active_record_1
423
+ [attached] save attached
424
+ SQL (16.8ms) INSERT INTO "audios" ("created_at", "file_extension", "file_identifier", "file_size", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 23 Oct 2011 06:31:21 UTC +00:00], ["file_extension", ".wav"], ["file_identifier", "a4cd4fdb-87db-4730-94ae-0eb97186cf8b"], ["file_size", 1055276], ["name", nil], ["updated_at", Sun, 23 Oct 2011 06:31:21 UTC +00:00]]
425
+  (0.1ms) RELEASE SAVEPOINT active_record_1
426
+ Fixture Delete (0.2ms) DELETE FROM "audios"
427
+ Fixture Insert (0.1ms) INSERT INTO "audios" ("name", "file_identifier", "file_extension", "file_size", "created_at", "updated_at", "id") VALUES ('Audio', '7f110c2f-5474-dcbf-bd79-b284b489cb7a', '.wav', 399085, '2011-10-23 06:31:21', '2011-10-23 06:31:21', 410859157)
428
+ Fixture Delete (0.4ms) DELETE FROM "images"
429
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "file_identifier", "file_extension", "file_size", "created_at", "updated_at", "id") VALUES ('Image', '7f110c2f-5474-dcbf-bd79-b284b489cb7a', '.png', 399085, '2011-10-23 06:31:21', '2011-10-23 06:31:21', 87884898)
430
+ Audio Load (0.3ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
431
+  (0.1ms) SELECT COUNT(*) FROM "audios" 
432
+ Processing by AudiosController#create as HTML
433
+ Parameters: {"audio"=>{"name"=>"Audio", "file"=>#<Rack::Test::UploadedFile:0x007fda49fcce90 @content_type="audio/wav", @original_filename="audio.wav", @tempfile=#<File:/var/folders/8p/7bk_0rpx5v36zjy9_3ws57sc0000gn/T/audio.wav20111022-54513-ntykkf>>}}
434
+  (0.3ms) SAVEPOINT active_record_1
435
+ [attached] save attached
436
+ SQL (0.6ms) INSERT INTO "audios" ("created_at", "file_extension", "file_identifier", "file_size", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 23 Oct 2011 06:31:22 UTC +00:00], ["file_extension", ".wav"], ["file_identifier", "9a021cef-4d6a-4e85-8ad6-91080f2f8487"], ["file_size", 1055276], ["name", "Audio"], ["updated_at", Sun, 23 Oct 2011 06:31:22 UTC +00:00]]
437
+  (0.1ms) RELEASE SAVEPOINT active_record_1
438
+ Redirected to http://test.host/audios/410859158
439
+ Completed 302 Found in 849ms
440
+  (0.1ms) SELECT COUNT(*) FROM "audios" 
441
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
442
+  (0.1ms) SELECT COUNT(*) FROM "audios" 
443
+ Processing by AudiosController#destroy as HTML
444
+ Parameters: {"id"=>"410859157"}
445
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", "410859157"]]
446
+  (0.0ms) SAVEPOINT active_record_1
447
+ [attached] destroy attached
448
+ SQL (0.3ms) DELETE FROM "audios" WHERE "audios"."id" = ? [["id", 410859157]]
449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
450
+ Redirected to http://test.host/audios
451
+ Completed 302 Found in 4ms
452
+  (0.1ms) SELECT COUNT(*) FROM "audios"
453
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
454
+ Processing by AudiosController#edit as HTML
455
+ Parameters: {"id"=>"410859157"}
456
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", "410859157"]]
457
+ Rendered audios/_form.html.erb (3.5ms)
458
+ Completed 200 OK in 29ms (Views: 27.6ms | ActiveRecord: 0.1ms)
459
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
460
+ Processing by AudiosController#index as HTML
461
+ Audio Load (0.2ms) SELECT "audios".* FROM "audios"
462
+ Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms)
463
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
464
+ Processing by AudiosController#new as HTML
465
+ Rendered audios/_form.html.erb (3.0ms)
466
+ Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms)
467
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
468
+ Processing by AudiosController#show as HTML
469
+ Parameters: {"id"=>"410859157"}
470
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", "410859157"]]
471
+ Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
472
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
473
+ Processing by AudiosController#update as HTML
474
+ Parameters: {"audio"=>{"id"=>"410859157", "name"=>"Audio", "file_identifier"=>"7f110c2f-5474-dcbf-bd79-b284b489cb7a", "file_extension"=>".wav", "file_size"=>"399085", "created_at"=>"2011-10-23 06:31:21 UTC", "updated_at"=>"2011-10-23 06:31:21 UTC"}, "id"=>"410859157"}
475
+ Audio Load (0.1ms) SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", "410859157"]]
476
+ WARNING: Can't mass-assign protected attributes: id
477
+  (0.1ms) SAVEPOINT active_record_1
478
+ [attached] save attached
479
+  (0.0ms) RELEASE SAVEPOINT active_record_1
480
+ Redirected to http://test.host/audios/410859157
481
+ Completed 302 Found in 7ms
482
+  (0.4ms) SAVEPOINT active_record_1
483
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
484
+  (0.0ms) SAVEPOINT active_record_1
485
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
486
+  (0.1ms) SAVEPOINT active_record_1
487
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
488
+  (0.1ms) SAVEPOINT active_record_1
489
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
490
+  (0.1ms) SAVEPOINT active_record_1
491
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
492
+  (0.2ms) SAVEPOINT active_record_1
493
+ [attached] save attached
494
+ SQL (1.2ms) INSERT INTO "images" ("created_at", "file_extension", "file_identifier", "file_size", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 23 Oct 2011 06:31:23 UTC +00:00], ["file_extension", ".png"], ["file_identifier", "27701258-172d-40ca-8cf3-f22295c39beb"], ["file_size", 399085], ["name", nil], ["updated_at", Sun, 23 Oct 2011 06:31:23 UTC +00:00]]
495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
496
+ Image Load (0.2ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
497
+  (0.1ms) SELECT COUNT(*) FROM "images"
498
+ Processing by ImagesController#create as HTML
499
+ Parameters: {"image"=>{"name"=>"Image", "file"=>#<Rack::Test::UploadedFile:0x007fda4a9ced08 @content_type="image/png", @original_filename="image.png", @tempfile=#<File:/var/folders/8p/7bk_0rpx5v36zjy9_3ws57sc0000gn/T/image.png20111022-54513-1ob0l6m>>}}
500
+  (0.2ms) SAVEPOINT active_record_1
501
+ [attached] save attached
502
+ SQL (0.6ms) INSERT INTO "images" ("created_at", "file_extension", "file_identifier", "file_size", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 23 Oct 2011 06:31:23 UTC +00:00], ["file_extension", ".png"], ["file_identifier", "4f0e4668-f332-45bf-bd29-cd20cab9a1db"], ["file_size", 399085], ["name", "Image"], ["updated_at", Sun, 23 Oct 2011 06:31:23 UTC +00:00]]
503
+  (0.1ms) RELEASE SAVEPOINT active_record_1
504
+  (0.0ms) SAVEPOINT active_record_1
505
+ [attached] save attached
506
+  (0.1ms) RELEASE SAVEPOINT active_record_1
507
+ Redirected to http://test.host/images/87884899
508
+ Completed 302 Found in 217ms
509
+  (0.1ms) SELECT COUNT(*) FROM "images"
510
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
511
+  (0.1ms) SELECT COUNT(*) FROM "images"
512
+ Processing by ImagesController#destroy as HTML
513
+ Parameters: {"id"=>"87884898"}
514
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", "87884898"]]
515
+  (0.0ms) SAVEPOINT active_record_1
516
+ [attached] destroy attached
517
+ SQL (0.3ms) DELETE FROM "images" WHERE "images"."id" = ? [["id", 87884898]]
518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
519
+ Redirected to http://test.host/images
520
+ Completed 302 Found in 4ms
521
+  (0.1ms) SELECT COUNT(*) FROM "images" 
522
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
523
+ Processing by ImagesController#edit as HTML
524
+ Parameters: {"id"=>"87884898"}
525
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", "87884898"]]
526
+ Rendered images/_form.html.erb (3.2ms)
527
+ Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.1ms)
528
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
529
+ Processing by ImagesController#index as HTML
530
+ Image Load (0.2ms) SELECT "images".* FROM "images" 
531
+ Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
532
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
533
+ Processing by ImagesController#new as HTML
534
+ Rendered images/_form.html.erb (2.0ms)
535
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)
536
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
537
+ Processing by ImagesController#show as HTML
538
+ Parameters: {"id"=>"87884898"}
539
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", "87884898"]]
540
+ Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.1ms)
541
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
542
+ Processing by ImagesController#update as HTML
543
+ Parameters: {"image"=>{"id"=>"87884898", "name"=>"Image", "file_identifier"=>"7f110c2f-5474-dcbf-bd79-b284b489cb7a", "file_extension"=>".png", "file_size"=>"399085", "created_at"=>"2011-10-23 06:31:21 UTC", "updated_at"=>"2011-10-23 06:31:21 UTC"}, "id"=>"87884898"}
544
+ Image Load (0.1ms) SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", "87884898"]]
545
+ Redirected to http://test.host/images/87884898
546
+ Completed 302 Found in 4ms
547
+ Processing by MainController#index as HTML
548
+ Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)
@@ -1,53 +1,54 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class AudiosControllerTest < ActionController::TestCase
4
-
4
+
5
5
  fixtures :all
6
-
6
+
7
7
  setup do
8
8
  @audio = audios(:audio)
9
9
  @file = fixture_file_upload("/audios/audio.wav", "audio/wav", :binary)
10
10
  end
11
-
11
+
12
12
  test "should get index" do
13
13
  get :index
14
14
  assert_response :success
15
15
  assert_not_nil assigns(:audios)
16
16
  end
17
-
17
+
18
18
  test "should get new" do
19
19
  get :new
20
20
  assert_response :success
21
21
  end
22
-
22
+
23
23
  test "should create audio" do
24
24
  assert_difference('Audio.count') do
25
25
  post :create, :audio => { :name => @audio.name, :file => @file }
26
26
  end
27
-
27
+
28
28
  assert_redirected_to audio_path(assigns(:audio))
29
29
  end
30
-
30
+
31
31
  test "should show audio" do
32
32
  get :show, :id => @audio.id
33
33
  assert_response :success
34
34
  end
35
-
35
+
36
36
  test "should get edit" do
37
37
  get :edit, :id => @audio.id
38
38
  assert_response :success
39
39
  end
40
-
40
+
41
41
  test "should update audio" do
42
42
  put :update, :id => @audio.id, :audio => @audio.attributes
43
43
  assert_redirected_to audio_path(assigns(:audio))
44
44
  end
45
-
45
+
46
46
  test "should destroy audio" do
47
47
  assert_difference('Audio.count', -1) do
48
48
  delete :destroy, :id => @audio.id
49
49
  end
50
-
50
+
51
51
  assert_redirected_to audios_path
52
52
  end
53
+
53
54
  end
@@ -1,53 +1,54 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class ImagesControllerTest < ActionController::TestCase
4
-
4
+
5
5
  fixtures :all
6
-
6
+
7
7
  setup do
8
8
  @image = images(:image)
9
9
  @file = fixture_file_upload("/images/image.png", "image/png", :binary)
10
10
  end
11
-
11
+
12
12
  test "should get index" do
13
13
  get :index
14
14
  assert_response :success
15
15
  assert_not_nil assigns(:images)
16
16
  end
17
-
17
+
18
18
  test "should get new" do
19
19
  get :new
20
20
  assert_response :success
21
21
  end
22
-
22
+
23
23
  test "should create image" do
24
24
  assert_difference('Image.count') do
25
25
  post :create, :image => { :name => @image.name, :file => @file }
26
26
  end
27
-
27
+
28
28
  assert_redirected_to image_path(assigns(:image))
29
29
  end
30
-
30
+
31
31
  test "should show image" do
32
32
  get :show, :id => @image.id
33
33
  assert_response :success
34
34
  end
35
-
35
+
36
36
  test "should get edit" do
37
37
  get :edit, :id => @image.id
38
38
  assert_response :success
39
39
  end
40
-
40
+
41
41
  test "should update image" do
42
42
  put :update, :id => @image.id, :image => @image.attributes
43
43
  assert_redirected_to image_path(assigns(:image))
44
44
  end
45
-
45
+
46
46
  test "should destroy image" do
47
47
  assert_difference('Image.count', -1) do
48
48
  delete :destroy, :id => @image.id
49
49
  end
50
-
50
+
51
51
  assert_redirected_to images_path
52
52
  end
53
+
53
54
  end