attached 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/attached/version.rb +1 -1
- data/test/attached_test.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +2 -0
- data/test/dummy/log/test.log +274 -0
- data/test/dummy/public/system/audios/files/full/{17dc7038-52dc-4a06-87c9-a18d16f853b9.aac → 9a021cef-4d6a-4e85-8ad6-91080f2f8487.aac} +0 -0
- data/test/dummy/public/system/audios/files/full/{226fe84f-54ff-47b8-8f8f-5bc5c966c948.aac → a4cd4fdb-87db-4730-94ae-0eb97186cf8b.aac} +0 -0
- data/test/dummy/public/system/audios/files/large/{17dc7038-52dc-4a06-87c9-a18d16f853b9.aac → 9a021cef-4d6a-4e85-8ad6-91080f2f8487.aac} +0 -0
- data/test/dummy/public/system/audios/files/large/{226fe84f-54ff-47b8-8f8f-5bc5c966c948.aac → a4cd4fdb-87db-4730-94ae-0eb97186cf8b.aac} +0 -0
- data/test/dummy/public/system/audios/files/original/{17dc7038-52dc-4a06-87c9-a18d16f853b9.wav → 9a021cef-4d6a-4e85-8ad6-91080f2f8487.wav} +0 -0
- data/test/dummy/public/system/audios/files/original/{226fe84f-54ff-47b8-8f8f-5bc5c966c948.wav → a4cd4fdb-87db-4730-94ae-0eb97186cf8b.wav} +0 -0
- data/test/dummy/public/system/audios/files/small/{17dc7038-52dc-4a06-87c9-a18d16f853b9.aac → 9a021cef-4d6a-4e85-8ad6-91080f2f8487.aac} +0 -0
- data/test/dummy/public/system/audios/files/small/{226fe84f-54ff-47b8-8f8f-5bc5c966c948.aac → a4cd4fdb-87db-4730-94ae-0eb97186cf8b.aac} +0 -0
- data/test/dummy/public/system/images/files/full/{0398e378-0f37-4963-8d97-07faa1ffb8d0.jpg → 27701258-172d-40ca-8cf3-f22295c39beb.jpg} +0 -0
- data/test/dummy/public/system/images/files/full/{0deff38e-da37-4b4b-a2e8-134c9ff6eec1.jpg → 4f0e4668-f332-45bf-bd29-cd20cab9a1db.jpg} +0 -0
- data/test/dummy/public/system/images/files/large/{0398e378-0f37-4963-8d97-07faa1ffb8d0.jpg → 27701258-172d-40ca-8cf3-f22295c39beb.jpg} +0 -0
- data/test/dummy/public/system/images/files/large/{0deff38e-da37-4b4b-a2e8-134c9ff6eec1.jpg → 4f0e4668-f332-45bf-bd29-cd20cab9a1db.jpg} +0 -0
- data/test/dummy/public/system/images/files/original/{0398e378-0f37-4963-8d97-07faa1ffb8d0.png → 27701258-172d-40ca-8cf3-f22295c39beb.png} +0 -0
- data/test/dummy/public/system/images/files/original/{0deff38e-da37-4b4b-a2e8-134c9ff6eec1.png → 4f0e4668-f332-45bf-bd29-cd20cab9a1db.png} +0 -0
- data/test/dummy/public/system/images/files/small/{0398e378-0f37-4963-8d97-07faa1ffb8d0.jpg → 27701258-172d-40ca-8cf3-f22295c39beb.jpg} +0 -0
- data/test/dummy/public/system/images/files/small/{0deff38e-da37-4b4b-a2e8-134c9ff6eec1.jpg → 4f0e4668-f332-45bf-bd29-cd20cab9a1db.jpg} +0 -0
- data/test/dummy/public/system/images/files/thumb/{0398e378-0f37-4963-8d97-07faa1ffb8d0.jpg → 27701258-172d-40ca-8cf3-f22295c39beb.jpg} +0 -0
- data/test/dummy/public/system/images/files/thumb/{0deff38e-da37-4b4b-a2e8-134c9ff6eec1.jpg → 4f0e4668-f332-45bf-bd29-cd20cab9a1db.jpg} +0 -0
- data/test/dummy/test/functional/audios_controller_test.rb +12 -11
- data/test/dummy/test/functional/images_controller_test.rb +12 -11
- data/test/dummy/test/functional/main_controller_test.rb +2 -2
- data/test/dummy/test/unit/audio_test.rb +5 -5
- data/test/dummy/test/unit/image_test.rb +5 -5
- metadata +46 -264
- data/test/dummy/public/stylesheets/style.css +0 -11
- data/test/dummy/public/system/audios/files/full/3329b2e4-83d7-43e1-9006-a3e74ae5041d.aac +0 -0
- data/test/dummy/public/system/audios/files/full/49bedde0-54ba-4090-89ee-1f7ae0ac5751.aac +0 -0
- data/test/dummy/public/system/audios/files/full/4a7209d2-07c1-4681-9648-4b4c7351ad23.aac +0 -0
- data/test/dummy/public/system/audios/files/full/6fecf709-77b7-4813-b66f-71ff8345b1d7.aac +0 -0
- data/test/dummy/public/system/audios/files/full/7fae925c-b21c-4f62-bb3e-48b584802b2c.aac +0 -0
- data/test/dummy/public/system/audios/files/full/a5e09375-fe8d-4231-a4a0-7042c176124a.aac +0 -0
- data/test/dummy/public/system/audios/files/full/a9300bd7-74f2-431f-8fe1-08f296faae70.aac +0 -0
- data/test/dummy/public/system/audios/files/full/c056b608-3c2b-43c2-a883-fd125d209d54.aac +0 -0
- data/test/dummy/public/system/audios/files/full/cc491ac1-b41a-4a0f-a1bd-232f3fd04ad9.aac +0 -0
- data/test/dummy/public/system/audios/files/full/e7832cfe-91c1-4f09-a820-763204988b85.aac +0 -0
- data/test/dummy/public/system/audios/files/full/ec236266-a550-4706-9755-9a12db3024f4.aac +0 -0
- data/test/dummy/public/system/audios/files/full/f347b3a9-5c36-4b72-a23d-1d702ec592c7.aac +0 -0
- data/test/dummy/public/system/audios/files/large/3329b2e4-83d7-43e1-9006-a3e74ae5041d.aac +0 -0
- data/test/dummy/public/system/audios/files/large/49bedde0-54ba-4090-89ee-1f7ae0ac5751.aac +0 -0
- data/test/dummy/public/system/audios/files/large/4a7209d2-07c1-4681-9648-4b4c7351ad23.aac +0 -0
- data/test/dummy/public/system/audios/files/large/6fecf709-77b7-4813-b66f-71ff8345b1d7.aac +0 -0
- data/test/dummy/public/system/audios/files/large/7fae925c-b21c-4f62-bb3e-48b584802b2c.aac +0 -0
- data/test/dummy/public/system/audios/files/large/a5e09375-fe8d-4231-a4a0-7042c176124a.aac +0 -0
- data/test/dummy/public/system/audios/files/large/a9300bd7-74f2-431f-8fe1-08f296faae70.aac +0 -0
- data/test/dummy/public/system/audios/files/large/c056b608-3c2b-43c2-a883-fd125d209d54.aac +0 -0
- data/test/dummy/public/system/audios/files/large/cc491ac1-b41a-4a0f-a1bd-232f3fd04ad9.aac +0 -0
- data/test/dummy/public/system/audios/files/large/e7832cfe-91c1-4f09-a820-763204988b85.aac +0 -0
- data/test/dummy/public/system/audios/files/large/ec236266-a550-4706-9755-9a12db3024f4.aac +0 -0
- data/test/dummy/public/system/audios/files/large/f347b3a9-5c36-4b72-a23d-1d702ec592c7.aac +0 -0
- data/test/dummy/public/system/audios/files/original/3329b2e4-83d7-43e1-9006-a3e74ae5041d.wav +0 -0
- data/test/dummy/public/system/audios/files/original/49bedde0-54ba-4090-89ee-1f7ae0ac5751.wav +0 -0
- data/test/dummy/public/system/audios/files/original/4a7209d2-07c1-4681-9648-4b4c7351ad23.wav +0 -0
- data/test/dummy/public/system/audios/files/original/6fecf709-77b7-4813-b66f-71ff8345b1d7.wav +0 -0
- data/test/dummy/public/system/audios/files/original/7fae925c-b21c-4f62-bb3e-48b584802b2c.wav +0 -0
- data/test/dummy/public/system/audios/files/original/a5e09375-fe8d-4231-a4a0-7042c176124a.wav +0 -0
- data/test/dummy/public/system/audios/files/original/a9300bd7-74f2-431f-8fe1-08f296faae70.wav +0 -0
- data/test/dummy/public/system/audios/files/original/c056b608-3c2b-43c2-a883-fd125d209d54.wav +0 -0
- data/test/dummy/public/system/audios/files/original/cc491ac1-b41a-4a0f-a1bd-232f3fd04ad9.wav +0 -0
- data/test/dummy/public/system/audios/files/original/e7832cfe-91c1-4f09-a820-763204988b85.wav +0 -0
- data/test/dummy/public/system/audios/files/original/ec236266-a550-4706-9755-9a12db3024f4.wav +0 -0
- data/test/dummy/public/system/audios/files/original/f347b3a9-5c36-4b72-a23d-1d702ec592c7.wav +0 -0
- data/test/dummy/public/system/audios/files/small/3329b2e4-83d7-43e1-9006-a3e74ae5041d.aac +0 -0
- data/test/dummy/public/system/audios/files/small/49bedde0-54ba-4090-89ee-1f7ae0ac5751.aac +0 -0
- data/test/dummy/public/system/audios/files/small/4a7209d2-07c1-4681-9648-4b4c7351ad23.aac +0 -0
- data/test/dummy/public/system/audios/files/small/6fecf709-77b7-4813-b66f-71ff8345b1d7.aac +0 -0
- data/test/dummy/public/system/audios/files/small/7fae925c-b21c-4f62-bb3e-48b584802b2c.aac +0 -0
- data/test/dummy/public/system/audios/files/small/a5e09375-fe8d-4231-a4a0-7042c176124a.aac +0 -0
- data/test/dummy/public/system/audios/files/small/a9300bd7-74f2-431f-8fe1-08f296faae70.aac +0 -0
- data/test/dummy/public/system/audios/files/small/c056b608-3c2b-43c2-a883-fd125d209d54.aac +0 -0
- data/test/dummy/public/system/audios/files/small/cc491ac1-b41a-4a0f-a1bd-232f3fd04ad9.aac +0 -0
- data/test/dummy/public/system/audios/files/small/e7832cfe-91c1-4f09-a820-763204988b85.aac +0 -0
- data/test/dummy/public/system/audios/files/small/ec236266-a550-4706-9755-9a12db3024f4.aac +0 -0
- data/test/dummy/public/system/audios/files/small/f347b3a9-5c36-4b72-a23d-1d702ec592c7.aac +0 -0
- data/test/dummy/public/system/images/files/full/3192b7ef-cf69-4d72-9ee0-e92a9e87894f.jpg +0 -0
- data/test/dummy/public/system/images/files/full/623b4f97-a2ee-4f7a-8303-37781145b3af.jpg +0 -0
- data/test/dummy/public/system/images/files/full/77106ad8-1f7c-42de-b7ff-3c5526d1ceec.jpg +0 -0
- data/test/dummy/public/system/images/files/full/81e9e58a-9d67-4df4-877e-8559be8a0016.jpg +0 -0
- data/test/dummy/public/system/images/files/full/9f819af2-f4cc-469f-880c-77e9ae92524c.jpg +0 -0
- data/test/dummy/public/system/images/files/full/a942bfae-a9be-48c4-8853-ff69cee18e7a.jpg +0 -0
- data/test/dummy/public/system/images/files/full/b77e8578-ea4d-425e-9568-8712f868f07d.jpg +0 -0
- data/test/dummy/public/system/images/files/full/bed96328-572e-4dcd-af28-183d1a341f2f.jpg +0 -0
- data/test/dummy/public/system/images/files/full/d335b408-a3a4-41c8-aae9-e1b8c33ad2a7.jpg +0 -0
- data/test/dummy/public/system/images/files/full/de242f89-0b1b-4b99-a3a0-7ff815c88ca3.jpg +0 -0
- data/test/dummy/public/system/images/files/full/f363bd79-106d-4e91-bfdb-f9aa2d040533.jpg +0 -0
- data/test/dummy/public/system/images/files/full/f94561f8-0dd5-45cd-9ec8-f739fcedca83.jpg +0 -0
- data/test/dummy/public/system/images/files/large/3192b7ef-cf69-4d72-9ee0-e92a9e87894f.jpg +0 -0
- data/test/dummy/public/system/images/files/large/623b4f97-a2ee-4f7a-8303-37781145b3af.jpg +0 -0
- data/test/dummy/public/system/images/files/large/77106ad8-1f7c-42de-b7ff-3c5526d1ceec.jpg +0 -0
- data/test/dummy/public/system/images/files/large/81e9e58a-9d67-4df4-877e-8559be8a0016.jpg +0 -0
- data/test/dummy/public/system/images/files/large/9f819af2-f4cc-469f-880c-77e9ae92524c.jpg +0 -0
- data/test/dummy/public/system/images/files/large/a942bfae-a9be-48c4-8853-ff69cee18e7a.jpg +0 -0
- data/test/dummy/public/system/images/files/large/b77e8578-ea4d-425e-9568-8712f868f07d.jpg +0 -0
- data/test/dummy/public/system/images/files/large/bed96328-572e-4dcd-af28-183d1a341f2f.jpg +0 -0
- data/test/dummy/public/system/images/files/large/d335b408-a3a4-41c8-aae9-e1b8c33ad2a7.jpg +0 -0
- data/test/dummy/public/system/images/files/large/de242f89-0b1b-4b99-a3a0-7ff815c88ca3.jpg +0 -0
- data/test/dummy/public/system/images/files/large/f363bd79-106d-4e91-bfdb-f9aa2d040533.jpg +0 -0
- data/test/dummy/public/system/images/files/large/f94561f8-0dd5-45cd-9ec8-f739fcedca83.jpg +0 -0
- data/test/dummy/public/system/images/files/original/3192b7ef-cf69-4d72-9ee0-e92a9e87894f.png +0 -0
- data/test/dummy/public/system/images/files/original/623b4f97-a2ee-4f7a-8303-37781145b3af.png +0 -0
- data/test/dummy/public/system/images/files/original/77106ad8-1f7c-42de-b7ff-3c5526d1ceec.png +0 -0
- data/test/dummy/public/system/images/files/original/81e9e58a-9d67-4df4-877e-8559be8a0016.png +0 -0
- data/test/dummy/public/system/images/files/original/9f819af2-f4cc-469f-880c-77e9ae92524c.png +0 -0
- data/test/dummy/public/system/images/files/original/a942bfae-a9be-48c4-8853-ff69cee18e7a.png +0 -0
- data/test/dummy/public/system/images/files/original/b77e8578-ea4d-425e-9568-8712f868f07d.png +0 -0
- data/test/dummy/public/system/images/files/original/bed96328-572e-4dcd-af28-183d1a341f2f.png +0 -0
- data/test/dummy/public/system/images/files/original/d335b408-a3a4-41c8-aae9-e1b8c33ad2a7.png +0 -0
- data/test/dummy/public/system/images/files/original/de242f89-0b1b-4b99-a3a0-7ff815c88ca3.png +0 -0
- data/test/dummy/public/system/images/files/original/f363bd79-106d-4e91-bfdb-f9aa2d040533.png +0 -0
- data/test/dummy/public/system/images/files/original/f94561f8-0dd5-45cd-9ec8-f739fcedca83.png +0 -0
- data/test/dummy/public/system/images/files/small/3192b7ef-cf69-4d72-9ee0-e92a9e87894f.jpg +0 -0
- data/test/dummy/public/system/images/files/small/623b4f97-a2ee-4f7a-8303-37781145b3af.jpg +0 -0
- data/test/dummy/public/system/images/files/small/77106ad8-1f7c-42de-b7ff-3c5526d1ceec.jpg +0 -0
- data/test/dummy/public/system/images/files/small/81e9e58a-9d67-4df4-877e-8559be8a0016.jpg +0 -0
- data/test/dummy/public/system/images/files/small/9f819af2-f4cc-469f-880c-77e9ae92524c.jpg +0 -0
- data/test/dummy/public/system/images/files/small/a942bfae-a9be-48c4-8853-ff69cee18e7a.jpg +0 -0
- data/test/dummy/public/system/images/files/small/b77e8578-ea4d-425e-9568-8712f868f07d.jpg +0 -0
- data/test/dummy/public/system/images/files/small/bed96328-572e-4dcd-af28-183d1a341f2f.jpg +0 -0
- data/test/dummy/public/system/images/files/small/d335b408-a3a4-41c8-aae9-e1b8c33ad2a7.jpg +0 -0
- data/test/dummy/public/system/images/files/small/de242f89-0b1b-4b99-a3a0-7ff815c88ca3.jpg +0 -0
- data/test/dummy/public/system/images/files/small/f363bd79-106d-4e91-bfdb-f9aa2d040533.jpg +0 -0
- data/test/dummy/public/system/images/files/small/f94561f8-0dd5-45cd-9ec8-f739fcedca83.jpg +0 -0
- data/test/dummy/public/system/images/files/thumb/3192b7ef-cf69-4d72-9ee0-e92a9e87894f.jpg +0 -0
- data/test/dummy/public/system/images/files/thumb/623b4f97-a2ee-4f7a-8303-37781145b3af.jpg +0 -0
- data/test/dummy/public/system/images/files/thumb/77106ad8-1f7c-42de-b7ff-3c5526d1ceec.jpg +0 -0
- data/test/dummy/public/system/images/files/thumb/81e9e58a-9d67-4df4-877e-8559be8a0016.jpg +0 -0
- data/test/dummy/public/system/images/files/thumb/9f819af2-f4cc-469f-880c-77e9ae92524c.jpg +0 -0
- data/test/dummy/public/system/images/files/thumb/a942bfae-a9be-48c4-8853-ff69cee18e7a.jpg +0 -0
- data/test/dummy/public/system/images/files/thumb/b77e8578-ea4d-425e-9568-8712f868f07d.jpg +0 -0
- data/test/dummy/public/system/images/files/thumb/bed96328-572e-4dcd-af28-183d1a341f2f.jpg +0 -0
- data/test/dummy/public/system/images/files/thumb/d335b408-a3a4-41c8-aae9-e1b8c33ad2a7.jpg +0 -0
- data/test/dummy/public/system/images/files/thumb/de242f89-0b1b-4b99-a3a0-7ff815c88ca3.jpg +0 -0
- data/test/dummy/public/system/images/files/thumb/f363bd79-106d-4e91-bfdb-f9aa2d040533.jpg +0 -0
- data/test/dummy/public/system/images/files/thumb/f94561f8-0dd5-45cd-9ec8-f739fcedca83.jpg +0 -0
data/lib/attached/version.rb
CHANGED
data/test/attached_test.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
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
|
+
[1m[36mImage Load (0.1ms)[0m [1mSELECT "images".* FROM "images" [0m
|
595
|
+
[1m[36mAudio Load (0.1ms)[0m [1mSELECT "audios".* FROM "audios" [0m
|
data/test/dummy/log/test.log
CHANGED
@@ -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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
276
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
277
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
278
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
279
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
280
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
281
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
282
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
283
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
284
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
285
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
286
|
+
[attached] save attached
|
287
|
+
[1m[35mSQL (16.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
289
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "audios"
|
290
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
291
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "images"
|
292
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
|
293
|
+
[1m[35mAudio Load (0.3ms)[0m SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
|
294
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "audios" [0m
|
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
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
298
|
+
[attached] save attached
|
299
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "audios" ("created_at", "file_extension", "file_identifier", "file_size", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
301
|
+
Redirected to http://test.host/audios/410859158
|
302
|
+
Completed 302 Found in 804ms
|
303
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "audios" [0m
|
304
|
+
[1m[35mAudio Load (0.1ms)[0m SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
|
305
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "audios" [0m
|
306
|
+
Processing by AudiosController#destroy as HTML
|
307
|
+
Parameters: {"id"=>"410859157"}
|
308
|
+
[1m[35mAudio Load (0.1ms)[0m SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", "410859157"]]
|
309
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
310
|
+
[attached] destroy attached
|
311
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "audios" WHERE "audios"."id" = ? [["id", 410859157]]
|
312
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
313
|
+
Redirected to http://test.host/audios
|
314
|
+
Completed 302 Found in 4ms
|
315
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "audios"
|
316
|
+
[1m[36mAudio Load (0.1ms)[0m [1mSELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1[0m [["id", 410859157]]
|
317
|
+
Processing by AudiosController#edit as HTML
|
318
|
+
Parameters: {"id"=>"410859157"}
|
319
|
+
[1m[35mAudio Load (0.1ms)[0m 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
|
+
[1m[36mAudio Load (0.1ms)[0m [1mSELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1[0m [["id", 410859157]]
|
323
|
+
Processing by AudiosController#index as HTML
|
324
|
+
[1m[35mAudio Load (0.1ms)[0m SELECT "audios".* FROM "audios"
|
325
|
+
Completed 200 OK in 77ms (Views: 76.0ms | ActiveRecord: 0.1ms)
|
326
|
+
[1m[36mAudio Load (0.1ms)[0m [1mSELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mAudio Load (0.1ms)[0m SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
|
331
|
+
Processing by AudiosController#show as HTML
|
332
|
+
Parameters: {"id"=>"410859157"}
|
333
|
+
[1m[36mAudio Load (0.1ms)[0m [1mSELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1[0m [["id", "410859157"]]
|
334
|
+
Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.1ms)
|
335
|
+
[1m[35mAudio Load (0.1ms)[0m 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
|
+
[1m[36mAudio Load (0.1ms)[0m [1mSELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1[0m [["id", "410859157"]]
|
339
|
+
WARNING: Can't mass-assign protected attributes: id
|
340
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
341
|
+
[attached] save attached
|
342
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
343
|
+
Redirected to http://test.host/audios/410859157
|
344
|
+
Completed 302 Found in 7ms
|
345
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
346
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
347
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
348
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
349
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
350
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
351
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
352
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
353
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
354
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
355
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
356
|
+
[attached] save attached
|
357
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "images" ("created_at", "file_extension", "file_identifier", "file_size", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
359
|
+
[1m[36mImage Load (0.2ms)[0m [1mSELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1[0m [["id", 87884898]]
|
360
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
364
|
+
[attached] save attached
|
365
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
367
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
368
|
+
[attached] save attached
|
369
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
370
|
+
Redirected to http://test.host/images/87884899
|
371
|
+
Completed 302 Found in 223ms
|
372
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "images"
|
373
|
+
[1m[36mImage Load (0.1ms)[0m [1mSELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1[0m [["id", 87884898]]
|
374
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "images"
|
375
|
+
Processing by ImagesController#destroy as HTML
|
376
|
+
Parameters: {"id"=>"87884898"}
|
377
|
+
[1m[36mImage Load (0.1ms)[0m [1mSELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1[0m [["id", "87884898"]]
|
378
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
379
|
+
[attached] destroy attached
|
380
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "images" WHERE "images"."id" = ?[0m [["id", 87884898]]
|
381
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
382
|
+
Redirected to http://test.host/images
|
383
|
+
Completed 302 Found in 6ms
|
384
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "images" [0m
|
385
|
+
[1m[35mImage Load (0.1ms)[0m SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
|
386
|
+
Processing by ImagesController#edit as HTML
|
387
|
+
Parameters: {"id"=>"87884898"}
|
388
|
+
[1m[36mImage Load (0.1ms)[0m [1mSELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1[0m [["id", "87884898"]]
|
389
|
+
Rendered images/_form.html.erb (4.0ms)
|
390
|
+
Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.1ms)
|
391
|
+
[1m[35mImage Load (0.2ms)[0m SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
|
392
|
+
Processing by ImagesController#index as HTML
|
393
|
+
[1m[36mImage Load (0.1ms)[0m [1mSELECT "images".* FROM "images" [0m
|
394
|
+
Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms)
|
395
|
+
[1m[35mImage Load (0.1ms)[0m 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
|
+
[1m[36mImage Load (0.1ms)[0m [1mSELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1[0m [["id", 87884898]]
|
400
|
+
Processing by ImagesController#show as HTML
|
401
|
+
Parameters: {"id"=>"87884898"}
|
402
|
+
[1m[35mImage Load (0.1ms)[0m SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", "87884898"]]
|
403
|
+
Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.1ms)
|
404
|
+
[1m[36mImage Load (0.1ms)[0m [1mSELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mImage Load (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
413
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
414
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
415
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
416
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
417
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
418
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
419
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
420
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
421
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
422
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
423
|
+
[attached] save attached
|
424
|
+
[1m[35mSQL (16.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
426
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "audios"
|
427
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
428
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "images"
|
429
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
|
430
|
+
[1m[35mAudio Load (0.3ms)[0m SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
|
431
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "audios" [0m
|
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
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
435
|
+
[attached] save attached
|
436
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "audios" ("created_at", "file_extension", "file_identifier", "file_size", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
438
|
+
Redirected to http://test.host/audios/410859158
|
439
|
+
Completed 302 Found in 849ms
|
440
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "audios" [0m
|
441
|
+
[1m[35mAudio Load (0.1ms)[0m SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
|
442
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "audios" [0m
|
443
|
+
Processing by AudiosController#destroy as HTML
|
444
|
+
Parameters: {"id"=>"410859157"}
|
445
|
+
[1m[35mAudio Load (0.1ms)[0m SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", "410859157"]]
|
446
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
447
|
+
[attached] destroy attached
|
448
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "audios" WHERE "audios"."id" = ? [["id", 410859157]]
|
449
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
450
|
+
Redirected to http://test.host/audios
|
451
|
+
Completed 302 Found in 4ms
|
452
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "audios"
|
453
|
+
[1m[36mAudio Load (0.1ms)[0m [1mSELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1[0m [["id", 410859157]]
|
454
|
+
Processing by AudiosController#edit as HTML
|
455
|
+
Parameters: {"id"=>"410859157"}
|
456
|
+
[1m[35mAudio Load (0.1ms)[0m 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
|
+
[1m[36mAudio Load (0.1ms)[0m [1mSELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1[0m [["id", 410859157]]
|
460
|
+
Processing by AudiosController#index as HTML
|
461
|
+
[1m[35mAudio Load (0.2ms)[0m SELECT "audios".* FROM "audios"
|
462
|
+
Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms)
|
463
|
+
[1m[36mAudio Load (0.1ms)[0m [1mSELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mAudio Load (0.1ms)[0m SELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1 [["id", 410859157]]
|
468
|
+
Processing by AudiosController#show as HTML
|
469
|
+
Parameters: {"id"=>"410859157"}
|
470
|
+
[1m[36mAudio Load (0.1ms)[0m [1mSELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1[0m [["id", "410859157"]]
|
471
|
+
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
|
472
|
+
[1m[35mAudio Load (0.1ms)[0m 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
|
+
[1m[36mAudio Load (0.1ms)[0m [1mSELECT "audios".* FROM "audios" WHERE "audios"."id" = ? LIMIT 1[0m [["id", "410859157"]]
|
476
|
+
WARNING: Can't mass-assign protected attributes: id
|
477
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
478
|
+
[attached] save attached
|
479
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
480
|
+
Redirected to http://test.host/audios/410859157
|
481
|
+
Completed 302 Found in 7ms
|
482
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
483
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
484
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
485
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
486
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
487
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
488
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
489
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
490
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
491
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
492
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
493
|
+
[attached] save attached
|
494
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "images" ("created_at", "file_extension", "file_identifier", "file_size", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
496
|
+
[1m[36mImage Load (0.2ms)[0m [1mSELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1[0m [["id", 87884898]]
|
497
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
501
|
+
[attached] save attached
|
502
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
504
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
505
|
+
[attached] save attached
|
506
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
507
|
+
Redirected to http://test.host/images/87884899
|
508
|
+
Completed 302 Found in 217ms
|
509
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "images"
|
510
|
+
[1m[36mImage Load (0.1ms)[0m [1mSELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1[0m [["id", 87884898]]
|
511
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "images"
|
512
|
+
Processing by ImagesController#destroy as HTML
|
513
|
+
Parameters: {"id"=>"87884898"}
|
514
|
+
[1m[36mImage Load (0.1ms)[0m [1mSELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1[0m [["id", "87884898"]]
|
515
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
516
|
+
[attached] destroy attached
|
517
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "images" WHERE "images"."id" = ?[0m [["id", 87884898]]
|
518
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
519
|
+
Redirected to http://test.host/images
|
520
|
+
Completed 302 Found in 4ms
|
521
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "images" [0m
|
522
|
+
[1m[35mImage Load (0.1ms)[0m SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
|
523
|
+
Processing by ImagesController#edit as HTML
|
524
|
+
Parameters: {"id"=>"87884898"}
|
525
|
+
[1m[36mImage Load (0.1ms)[0m [1mSELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1[0m [["id", "87884898"]]
|
526
|
+
Rendered images/_form.html.erb (3.2ms)
|
527
|
+
Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.1ms)
|
528
|
+
[1m[35mImage Load (0.1ms)[0m SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", 87884898]]
|
529
|
+
Processing by ImagesController#index as HTML
|
530
|
+
[1m[36mImage Load (0.2ms)[0m [1mSELECT "images".* FROM "images" [0m
|
531
|
+
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
|
532
|
+
[1m[35mImage Load (0.1ms)[0m 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
|
+
[1m[36mImage Load (0.1ms)[0m [1mSELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1[0m [["id", 87884898]]
|
537
|
+
Processing by ImagesController#show as HTML
|
538
|
+
Parameters: {"id"=>"87884898"}
|
539
|
+
[1m[35mImage Load (0.1ms)[0m SELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1 [["id", "87884898"]]
|
540
|
+
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.1ms)
|
541
|
+
[1m[36mImage Load (0.1ms)[0m [1mSELECT "images".* FROM "images" WHERE "images"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mImage Load (0.1ms)[0m 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)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -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
|