attachs 0.3.2 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.rdoc +7 -1
- data/lib/attachs/active_record/base.rb +41 -46
- data/lib/attachs/storages/local.rb +8 -3
- data/lib/attachs/storages/s3.rb +21 -10
- data/lib/attachs/types/file.rb +16 -8
- data/lib/attachs/types/image.rb +27 -9
- data/lib/attachs/validators/attachment_content_type_validator.rb +3 -3
- data/lib/attachs/validators/attachment_presence_validator.rb +2 -2
- data/lib/attachs/validators/attachment_size_validator.rb +2 -8
- data/lib/attachs/validators/base.rb +1 -1
- data/lib/attachs/version.rb +1 -1
- data/lib/tasks/attachs_tasks.rake +4 -3
- data/test/dummy/app/models/all_attached.rb +1 -1
- data/test/dummy/app/models/private_file_attached.rb +3 -0
- data/test/dummy/app/models/private_image_attached.rb +3 -0
- data/test/dummy/config/application.rb +3 -2
- data/test/dummy/config/database.yml +1 -1
- data/test/dummy/log/test.log +3867 -0
- data/test/dummy/tmp/uploads/files/13898788260004868.txt +1 -0
- data/test/local_file_record_test.rb +11 -0
- data/test/test_helper.rb +2 -2
- metadata +9 -7
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
@@ -5,7 +5,7 @@ module Attachs
|
|
5
5
|
protected
|
6
6
|
|
7
7
|
def add_error(record, attribute, type, options={})
|
8
|
-
record.errors[attribute] << (options[:message] || I18n.t(type, options))
|
8
|
+
record.errors[attribute] << (options[:message] || I18n.t("errors.messages.#{type}", options))
|
9
9
|
end
|
10
10
|
|
11
11
|
end
|
data/lib/attachs/version.rb
CHANGED
@@ -8,8 +8,9 @@ module Attachs
|
|
8
8
|
model.attachments.each do |attr, options|
|
9
9
|
if options[:type] == :image
|
10
10
|
presets.each do |preset|
|
11
|
-
image = record.send(attr)
|
12
|
-
|
11
|
+
if image = record.send(attr)
|
12
|
+
yield image, preset
|
13
|
+
end
|
13
14
|
end
|
14
15
|
end
|
15
16
|
end
|
@@ -33,7 +34,7 @@ namespace :attachs do
|
|
33
34
|
desc 'Clean preset'
|
34
35
|
task clean: :environment do
|
35
36
|
Attachs::Task.iterate_images do |image, preset|
|
36
|
-
puts "Deleting preset #{image.url(preset)}."
|
37
|
+
puts "Deleting preset #{image.url(preset)}."
|
37
38
|
image.delete_preset preset
|
38
39
|
end
|
39
40
|
puts "Presets cleaned successfully."
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class AllAttached < ActiveRecord::Base
|
2
2
|
has_attached_file :file_presence, :file_content_type, :file_size, :file_all
|
3
3
|
has_attached_file :file_default, default: 'file.txt'
|
4
|
-
has_attached_image :image_presence, :image_content_type, :image_size, :image_all, presets:
|
4
|
+
has_attached_image :image_presence, :image_content_type, :image_size, :image_all, presets: :big
|
5
5
|
has_attached_image :image_default, presets: [:big, :small], default: 'image.jpg'
|
6
6
|
validates :file_presence, attachment_presence: true
|
7
7
|
validates :file_content_type, attachment_content_type: { in: ['txt'] }
|
@@ -18,8 +18,9 @@ module Dummy
|
|
18
18
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
19
19
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
20
20
|
# config.i18n.default_locale = :de
|
21
|
-
|
22
|
-
|
21
|
+
I18n.enforce_available_locales = false
|
22
|
+
|
23
|
+
config.attachs.default_presets = :small
|
23
24
|
config.attachs.presets = {
|
24
25
|
small: { method: :fit, width: 120, height: 120 },
|
25
26
|
big: { method: :fill, width: 1024, height: 768 }
|
data/test/dummy/log/test.log
CHANGED
@@ -9310,5 +9310,3872 @@ LocalValidatorsTest: test_should_check_the_file_content_type
|
|
9310
9310
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9311
9311
|
----------------------------------------------------
|
9312
9312
|
LocalValidatorsTest: test_should_check_the_file_size
|
9313
|
+
----------------------------------------------------
|
9314
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9315
|
+
[1m[36m (1.0ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
9316
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9317
|
+
[1m[36m (1.1ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
9318
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9319
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
9320
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9321
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
9322
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9323
|
+
-------------------------------------------------------------------------
|
9324
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
9325
|
+
-------------------------------------------------------------------------
|
9326
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9327
|
+
[1m[35mSQL (3.5ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 30 Nov 2013 16:39:02 UTC +00:00], ["file", "13858295424334670.txt"], ["updated_at", Sat, 30 Nov 2013 16:39:02 UTC +00:00]]
|
9328
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9329
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9330
|
+
[1m[36mSQL (0.8ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
9331
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9332
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
9333
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9334
|
+
-------------------------------------------------------------------------
|
9335
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
9336
|
+
-------------------------------------------------------------------------
|
9337
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9338
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9339
|
+
-------------------------------------------------------------------
|
9340
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
9341
|
+
-------------------------------------------------------------------
|
9342
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9343
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9344
|
+
---------------------------------------------------------------------------
|
9345
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
9346
|
+
---------------------------------------------------------------------------
|
9347
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9348
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9349
|
+
----------------------------------------------
|
9350
|
+
LocalGenerateTest: test_should_generate_preset
|
9351
|
+
----------------------------------------------
|
9352
|
+
Started GET "/uploads/images/small/13858295424587310.jpg" for 127.0.0.1 at 2013-11-30 14:39:02 -0200
|
9353
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
9354
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13858295424587310"}
|
9355
|
+
Redirected to http://www.example.com/uploads/images/small/13858295424587310.jpg
|
9356
|
+
Completed 302 Found in 57ms (ActiveRecord: 0.0ms)
|
9357
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9358
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9359
|
+
---------------------------------------------------------------------
|
9360
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
9361
|
+
---------------------------------------------------------------------
|
9362
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9363
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 30 Nov 2013 16:39:02 UTC +00:00], ["image", "13858295426999302.jpg"], ["updated_at", Sat, 30 Nov 2013 16:39:02 UTC +00:00]]
|
9364
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9365
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9366
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
9367
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9368
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
9369
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9370
|
+
---------------------------------------------------------------
|
9371
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
9372
|
+
---------------------------------------------------------------
|
9373
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9374
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9375
|
+
--------------------------------------------------------------------
|
9376
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
9377
|
+
--------------------------------------------------------------------
|
9378
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9379
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9380
|
+
---------------------------------------------------------------------------------------------
|
9381
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
9382
|
+
---------------------------------------------------------------------------------------------
|
9383
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9384
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 30 Nov 2013 16:39:03 UTC +00:00], ["file", "13858295431517210.jpg"], ["updated_at", Sat, 30 Nov 2013 16:39:03 UTC +00:00]]
|
9385
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9386
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9387
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13858295431552848.txt"], ["updated_at", Sat, 30 Nov 2013 16:39:03 UTC +00:00]]
|
9388
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9389
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9390
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
9391
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9392
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
9393
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9394
|
+
-----------------------------------------------------------------------------------
|
9395
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
9396
|
+
-----------------------------------------------------------------------------------
|
9397
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9398
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sat, 30 Nov 2013 16:39:03 UTC +00:00], ["updated_at", Sat, 30 Nov 2013 16:39:03 UTC +00:00]]
|
9399
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9400
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9401
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
9402
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9403
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9404
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sat, 30 Nov 2013 16:39:03 UTC +00:00], ["updated_at", Sat, 30 Nov 2013 16:39:03 UTC +00:00]]
|
9405
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9406
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9407
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
9408
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9409
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
9410
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9411
|
+
-------------------------------------------------------------------
|
9412
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
9413
|
+
-------------------------------------------------------------------
|
9414
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9415
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9416
|
+
---------------------------------------------------------
|
9417
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
9418
|
+
---------------------------------------------------------
|
9419
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9420
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9421
|
+
------------------------------------------------------------
|
9422
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
9423
|
+
------------------------------------------------------------
|
9424
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
9425
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9426
|
+
----------------------------------------------------
|
9427
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
9428
|
+
----------------------------------------------------
|
9429
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9430
|
+
[1m[36m (1.6ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
9431
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9432
|
+
[1m[36m (1.0ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
9433
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9434
|
+
[1m[36m (1.1ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
9435
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9436
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
9437
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9438
|
+
-------------------------------------------------------------------------
|
9439
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
9440
|
+
-------------------------------------------------------------------------
|
9441
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
9442
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9443
|
+
-------------------------------------------------------------------------
|
9444
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
9445
|
+
-------------------------------------------------------------------------
|
9446
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9447
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9448
|
+
-------------------------------------------------------------------
|
9449
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
9450
|
+
-------------------------------------------------------------------
|
9451
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9452
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9453
|
+
---------------------------------------------------------------------------
|
9454
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
9455
|
+
---------------------------------------------------------------------------
|
9456
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9457
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9458
|
+
----------------------------------------------
|
9459
|
+
LocalGenerateTest: test_should_generate_preset
|
9460
|
+
----------------------------------------------
|
9461
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9462
|
+
---------------------------------------------------------------------
|
9463
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
9464
|
+
---------------------------------------------------------------------
|
9465
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9466
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9467
|
+
---------------------------------------------------------------
|
9468
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
9469
|
+
---------------------------------------------------------------
|
9470
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9471
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9472
|
+
--------------------------------------------------------------------
|
9473
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
9474
|
+
--------------------------------------------------------------------
|
9475
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9476
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9477
|
+
---------------------------------------------------------------------------------------------
|
9478
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
9479
|
+
---------------------------------------------------------------------------------------------
|
9480
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9481
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9482
|
+
-----------------------------------------------------------------------------------
|
9483
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
9484
|
+
-----------------------------------------------------------------------------------
|
9485
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_2
|
9486
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_2[0m
|
9487
|
+
undefined method `each' for nil:NilClass
|
9488
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9489
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9490
|
+
-------------------------------------------------------------------
|
9491
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
9492
|
+
-------------------------------------------------------------------
|
9493
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9494
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9495
|
+
---------------------------------------------------------
|
9496
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
9497
|
+
---------------------------------------------------------
|
9498
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9499
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9500
|
+
------------------------------------------------------------
|
9501
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
9502
|
+
------------------------------------------------------------
|
9503
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9504
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9505
|
+
----------------------------------------------------
|
9506
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
9507
|
+
----------------------------------------------------
|
9508
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9509
|
+
[1m[36m (3.7ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
9510
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9511
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
9512
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9513
|
+
[1m[36m (0.6ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
9514
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9515
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
9516
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9517
|
+
-------------------------------------------------------------------------
|
9518
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
9519
|
+
-------------------------------------------------------------------------
|
9520
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9521
|
+
[1m[35mSQL (4.7ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 12:34:09 UTC +00:00], ["file", "13897892493401448.txt"], ["updated_at", Wed, 15 Jan 2014 12:34:09 UTC +00:00]]
|
9522
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9523
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9524
|
+
[1m[36mSQL (1.2ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
9525
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9526
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
9527
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9528
|
+
-------------------------------------------------------------------------
|
9529
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
9530
|
+
-------------------------------------------------------------------------
|
9531
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9532
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9533
|
+
-------------------------------------------------------------------
|
9534
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
9535
|
+
-------------------------------------------------------------------
|
9536
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9537
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9538
|
+
---------------------------------------------------------------------------
|
9539
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
9540
|
+
---------------------------------------------------------------------------
|
9541
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9542
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9543
|
+
----------------------------------------------
|
9544
|
+
LocalGenerateTest: test_should_generate_preset
|
9545
|
+
----------------------------------------------
|
9546
|
+
Started GET "/uploads/images/small/13897892493661452.jpg" for 127.0.0.1 at 2014-01-15 10:34:09 -0200
|
9547
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
9548
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13897892493661452"}
|
9549
|
+
Redirected to http://www.example.com/uploads/images/small/13897892493661452.jpg
|
9550
|
+
Completed 302 Found in 67ms (ActiveRecord: 0.0ms)
|
9551
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9552
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9553
|
+
---------------------------------------------------------------------
|
9554
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
9555
|
+
---------------------------------------------------------------------
|
9556
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9557
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 12:34:09 UTC +00:00], ["image", "13897892496417920.jpg"], ["updated_at", Wed, 15 Jan 2014 12:34:09 UTC +00:00]]
|
9558
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9559
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9560
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
9561
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9562
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
9563
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9564
|
+
---------------------------------------------------------------
|
9565
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
9566
|
+
---------------------------------------------------------------
|
9567
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9568
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9569
|
+
--------------------------------------------------------------------
|
9570
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
9571
|
+
--------------------------------------------------------------------
|
9572
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9573
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9574
|
+
---------------------------------------------------------------------------------------------
|
9575
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
9576
|
+
---------------------------------------------------------------------------------------------
|
9577
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9578
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 12:34:10 UTC +00:00], ["file", "13897892501275620.jpg"], ["updated_at", Wed, 15 Jan 2014 12:34:10 UTC +00:00]]
|
9579
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9580
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9581
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13897892501308290.txt"], ["updated_at", Wed, 15 Jan 2014 12:34:10 UTC +00:00]]
|
9582
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9583
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9584
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
9585
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9586
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
9587
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9588
|
+
-----------------------------------------------------------------------------------
|
9589
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
9590
|
+
-----------------------------------------------------------------------------------
|
9591
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9592
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 15 Jan 2014 12:34:10 UTC +00:00], ["updated_at", Wed, 15 Jan 2014 12:34:10 UTC +00:00]]
|
9593
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9594
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9595
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
9596
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9597
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9598
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Wed, 15 Jan 2014 12:34:10 UTC +00:00], ["updated_at", Wed, 15 Jan 2014 12:34:10 UTC +00:00]]
|
9599
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9600
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9601
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
9602
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9603
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
9604
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9605
|
+
-------------------------------------------------------------------
|
9606
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
9607
|
+
-------------------------------------------------------------------
|
9608
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9609
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9610
|
+
---------------------------------------------------------
|
9611
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
9612
|
+
---------------------------------------------------------
|
9613
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
9614
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9615
|
+
------------------------------------------------------------
|
9616
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
9617
|
+
------------------------------------------------------------
|
9618
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
9619
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9620
|
+
----------------------------------------------------
|
9621
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
9622
|
+
----------------------------------------------------
|
9623
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9624
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
9625
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9626
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
9627
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
9628
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
9629
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
9630
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130820222534')[0m
|
9631
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9632
|
+
-------------------------------------------------------------------------
|
9633
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
9634
|
+
-------------------------------------------------------------------------
|
9635
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9636
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9637
|
+
-------------------------------------------------------------------------
|
9638
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
9639
|
+
-------------------------------------------------------------------------
|
9640
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9641
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9642
|
+
-------------------------------------------------------------------
|
9643
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
9644
|
+
-------------------------------------------------------------------
|
9645
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9646
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9647
|
+
---------------------------------------------------------------------------
|
9648
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
9649
|
+
---------------------------------------------------------------------------
|
9650
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9651
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9652
|
+
----------------------------------------------
|
9653
|
+
LocalGenerateTest: test_should_generate_preset
|
9654
|
+
----------------------------------------------
|
9655
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9656
|
+
---------------------------------------------------------------------
|
9657
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
9658
|
+
---------------------------------------------------------------------
|
9659
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9660
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9661
|
+
---------------------------------------------------------------
|
9662
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
9663
|
+
---------------------------------------------------------------
|
9664
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9665
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9666
|
+
--------------------------------------------------------------------
|
9667
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
9668
|
+
--------------------------------------------------------------------
|
9669
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9670
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9671
|
+
---------------------------------------------------------------------------------------------
|
9672
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
9673
|
+
---------------------------------------------------------------------------------------------
|
9674
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9675
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9676
|
+
-----------------------------------------------------------------------------------
|
9677
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
9678
|
+
-----------------------------------------------------------------------------------
|
9679
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_2
|
9680
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_2[0m
|
9681
|
+
undefined method `each' for nil:NilClass
|
9682
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9683
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9684
|
+
-------------------------------------------------------------------
|
9685
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
9686
|
+
-------------------------------------------------------------------
|
9687
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9688
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9689
|
+
---------------------------------------------------------
|
9690
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
9691
|
+
---------------------------------------------------------
|
9692
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9693
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9694
|
+
------------------------------------------------------------
|
9695
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
9696
|
+
------------------------------------------------------------
|
9697
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9698
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9699
|
+
----------------------------------------------------
|
9700
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
9701
|
+
----------------------------------------------------
|
9702
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9703
|
+
[1m[36m (3.6ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
9704
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9705
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
9706
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9707
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
9708
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9709
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
9710
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9711
|
+
-------------------------------------------------------------------------
|
9712
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
9713
|
+
-------------------------------------------------------------------------
|
9714
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9715
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9716
|
+
-------------------------------------------------------------------------
|
9717
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
9718
|
+
-------------------------------------------------------------------------
|
9719
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9720
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9721
|
+
-------------------------------------------------------------------
|
9722
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
9723
|
+
-------------------------------------------------------------------
|
9724
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9725
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9726
|
+
---------------------------------------------------------------------------
|
9727
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
9728
|
+
---------------------------------------------------------------------------
|
9729
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9730
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9731
|
+
----------------------------------------------
|
9732
|
+
LocalGenerateTest: test_should_generate_preset
|
9733
|
+
----------------------------------------------
|
9734
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9735
|
+
---------------------------------------------------------------------
|
9736
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
9737
|
+
---------------------------------------------------------------------
|
9738
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9739
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9740
|
+
---------------------------------------------------------------
|
9741
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
9742
|
+
---------------------------------------------------------------
|
9743
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9744
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9745
|
+
--------------------------------------------------------------------
|
9746
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
9747
|
+
--------------------------------------------------------------------
|
9748
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9749
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9750
|
+
---------------------------------------------------------------------------------------------
|
9751
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
9752
|
+
---------------------------------------------------------------------------------------------
|
9753
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9754
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9755
|
+
-----------------------------------------------------------------------------------
|
9756
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
9757
|
+
-----------------------------------------------------------------------------------
|
9758
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_2
|
9759
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_2[0m
|
9760
|
+
undefined method `each' for nil:NilClass
|
9761
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9762
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9763
|
+
-------------------------------------------------------------------
|
9764
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
9765
|
+
-------------------------------------------------------------------
|
9766
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9767
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9768
|
+
---------------------------------------------------------
|
9769
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
9770
|
+
---------------------------------------------------------
|
9771
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9772
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9773
|
+
------------------------------------------------------------
|
9774
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
9775
|
+
------------------------------------------------------------
|
9776
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9777
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9778
|
+
----------------------------------------------------
|
9779
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
9780
|
+
----------------------------------------------------
|
9781
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9782
|
+
[1m[36m (3.4ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
9783
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9784
|
+
[1m[36m (0.9ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
9785
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9786
|
+
[1m[36m (0.9ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
9787
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9788
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
9789
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9790
|
+
-------------------------------------------------------------------------
|
9791
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
9792
|
+
-------------------------------------------------------------------------
|
9793
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9794
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9795
|
+
-------------------------------------------------------------------------
|
9796
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
9797
|
+
-------------------------------------------------------------------------
|
9798
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9799
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9800
|
+
-------------------------------------------------------------------
|
9801
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
9802
|
+
-------------------------------------------------------------------
|
9803
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9804
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9805
|
+
---------------------------------------------------------------------------
|
9806
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
9807
|
+
---------------------------------------------------------------------------
|
9808
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9809
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9810
|
+
----------------------------------------------
|
9811
|
+
LocalGenerateTest: test_should_generate_preset
|
9812
|
+
----------------------------------------------
|
9813
|
+
Started GET "/uploads/images/small/13898763802535630.jpg" for 127.0.0.1 at 2014-01-16 10:46:20 -0200
|
9814
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
9815
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898763802535630"}
|
9816
|
+
Redirected to http://www.example.com/uploads/images/small/13898763802535630.jpg
|
9817
|
+
Completed 302 Found in 67ms (ActiveRecord: 0.0ms)
|
9818
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9819
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9820
|
+
---------------------------------------------------------------------
|
9821
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
9822
|
+
---------------------------------------------------------------------
|
9823
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9824
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9825
|
+
---------------------------------------------------------------
|
9826
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
9827
|
+
---------------------------------------------------------------
|
9828
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9829
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9830
|
+
--------------------------------------------------------------------
|
9831
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
9832
|
+
--------------------------------------------------------------------
|
9833
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9834
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9835
|
+
---------------------------------------------------------------------------------------------
|
9836
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
9837
|
+
---------------------------------------------------------------------------------------------
|
9838
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9839
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9840
|
+
-----------------------------------------------------------------------------------
|
9841
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
9842
|
+
-----------------------------------------------------------------------------------
|
9843
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9844
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9845
|
+
undefined method `each' for nil:NilClass
|
9846
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9847
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9848
|
+
-------------------------------------------------------------------
|
9849
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
9850
|
+
-------------------------------------------------------------------
|
9851
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9852
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9853
|
+
---------------------------------------------------------
|
9854
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
9855
|
+
---------------------------------------------------------
|
9856
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9857
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9858
|
+
------------------------------------------------------------
|
9859
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
9860
|
+
------------------------------------------------------------
|
9861
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9862
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9863
|
+
----------------------------------------------------
|
9864
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
9865
|
+
----------------------------------------------------
|
9866
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9867
|
+
[1m[36m (3.8ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
9868
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9869
|
+
[1m[36m (1.2ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
9870
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9871
|
+
[1m[36m (0.9ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
9872
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9873
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
9874
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9875
|
+
-------------------------------------------------------------------------
|
9876
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
9877
|
+
-------------------------------------------------------------------------
|
9878
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9879
|
+
[1m[35mSQL (3.8ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:47:02 UTC +00:00], ["file", "13898764220305228.txt"], ["updated_at", Thu, 16 Jan 2014 12:47:02 UTC +00:00]]
|
9880
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
9881
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
9882
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9883
|
+
-------------------------------------------------------------------------
|
9884
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
9885
|
+
-------------------------------------------------------------------------
|
9886
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9887
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9888
|
+
-------------------------------------------------------------------
|
9889
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
9890
|
+
-------------------------------------------------------------------
|
9891
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9892
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9893
|
+
---------------------------------------------------------------------------
|
9894
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
9895
|
+
---------------------------------------------------------------------------
|
9896
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
9897
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9898
|
+
----------------------------------------------
|
9899
|
+
LocalGenerateTest: test_should_generate_preset
|
9900
|
+
----------------------------------------------
|
9901
|
+
Started GET "/uploads/images/small/13898764220519080.jpg" for 127.0.0.1 at 2014-01-16 10:47:02 -0200
|
9902
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
9903
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898764220519080"}
|
9904
|
+
Redirected to http://www.example.com/uploads/images/small/13898764220519080.jpg
|
9905
|
+
Completed 302 Found in 64ms (ActiveRecord: 0.0ms)
|
9906
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9907
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9908
|
+
---------------------------------------------------------------------
|
9909
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
9910
|
+
---------------------------------------------------------------------
|
9911
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9912
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 16 Jan 2014 12:47:02 UTC +00:00], ["image", "13898764222582540.jpg"], ["updated_at", Thu, 16 Jan 2014 12:47:02 UTC +00:00]]
|
9913
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
9914
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
9915
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9916
|
+
---------------------------------------------------------------
|
9917
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
9918
|
+
---------------------------------------------------------------
|
9919
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9920
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9921
|
+
--------------------------------------------------------------------
|
9922
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
9923
|
+
--------------------------------------------------------------------
|
9924
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9925
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9926
|
+
---------------------------------------------------------------------------------------------
|
9927
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
9928
|
+
---------------------------------------------------------------------------------------------
|
9929
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9930
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:47:02 UTC +00:00], ["file", "13898764227344740.jpg"], ["updated_at", Thu, 16 Jan 2014 12:47:02 UTC +00:00]]
|
9931
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
9932
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
9933
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9934
|
+
-----------------------------------------------------------------------------------
|
9935
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
9936
|
+
-----------------------------------------------------------------------------------
|
9937
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9938
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
9939
|
+
undefined method `each' for nil:NilClass
|
9940
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9941
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9942
|
+
-------------------------------------------------------------------
|
9943
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
9944
|
+
-------------------------------------------------------------------
|
9945
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9946
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9947
|
+
---------------------------------------------------------
|
9948
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
9949
|
+
---------------------------------------------------------
|
9950
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
9951
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9952
|
+
------------------------------------------------------------
|
9953
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
9954
|
+
------------------------------------------------------------
|
9955
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
9956
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9957
|
+
----------------------------------------------------
|
9958
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
9959
|
+
----------------------------------------------------
|
9960
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
9961
|
+
[1m[36m (3.1ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
9962
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9963
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
9964
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9965
|
+
[1m[36m (0.9ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
9966
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9967
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
9968
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9969
|
+
-------------------------------------------------------------------------
|
9970
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
9971
|
+
-------------------------------------------------------------------------
|
9972
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9973
|
+
[1m[35mSQL (2.2ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:49:24 UTC +00:00], ["file", "13898765640366380.txt"], ["updated_at", Thu, 16 Jan 2014 12:49:24 UTC +00:00]]
|
9974
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
9975
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
9976
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9977
|
+
-------------------------------------------------------------------------
|
9978
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
9979
|
+
-------------------------------------------------------------------------
|
9980
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9981
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9982
|
+
-------------------------------------------------------------------
|
9983
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
9984
|
+
-------------------------------------------------------------------
|
9985
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9986
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9987
|
+
---------------------------------------------------------------------------
|
9988
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
9989
|
+
---------------------------------------------------------------------------
|
9990
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9991
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9992
|
+
----------------------------------------------
|
9993
|
+
LocalGenerateTest: test_should_generate_preset
|
9994
|
+
----------------------------------------------
|
9995
|
+
Started GET "/uploads/images/small/13898765640569200.jpg" for 127.0.0.1 at 2014-01-16 10:49:24 -0200
|
9996
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
9997
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898765640569200"}
|
9998
|
+
Redirected to http://www.example.com/uploads/images/small/13898765640569200.jpg
|
9999
|
+
Completed 302 Found in 63ms (ActiveRecord: 0.0ms)
|
10000
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10001
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10002
|
+
---------------------------------------------------------------------
|
10003
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
10004
|
+
---------------------------------------------------------------------
|
10005
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10006
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 16 Jan 2014 12:49:24 UTC +00:00], ["image", "13898765642657010.jpg"], ["updated_at", Thu, 16 Jan 2014 12:49:24 UTC +00:00]]
|
10007
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
10008
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
10009
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10010
|
+
---------------------------------------------------------------
|
10011
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
10012
|
+
---------------------------------------------------------------
|
10013
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10014
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10015
|
+
--------------------------------------------------------------------
|
10016
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
10017
|
+
--------------------------------------------------------------------
|
10018
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
10019
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10020
|
+
---------------------------------------------------------------------------------------------
|
10021
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
10022
|
+
---------------------------------------------------------------------------------------------
|
10023
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10024
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:49:24 UTC +00:00], ["file", "13898765647395990.jpg"], ["updated_at", Thu, 16 Jan 2014 12:49:24 UTC +00:00]]
|
10025
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
10026
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
10027
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10028
|
+
-----------------------------------------------------------------------------------
|
10029
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
10030
|
+
-----------------------------------------------------------------------------------
|
10031
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10032
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
10033
|
+
undefined method `each' for nil:NilClass
|
10034
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10035
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10036
|
+
-------------------------------------------------------------------
|
10037
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
10038
|
+
-------------------------------------------------------------------
|
10039
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10040
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10041
|
+
---------------------------------------------------------
|
10042
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
10043
|
+
---------------------------------------------------------
|
10044
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10045
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10046
|
+
------------------------------------------------------------
|
10047
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
10048
|
+
------------------------------------------------------------
|
10049
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10050
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10051
|
+
----------------------------------------------------
|
10052
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
10053
|
+
----------------------------------------------------
|
10054
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10055
|
+
[1m[36m (3.1ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
10056
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10057
|
+
[1m[36m (1.0ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
10058
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10059
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
10060
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10061
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
10062
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10063
|
+
-------------------------------------------------------------------------
|
10064
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
10065
|
+
-------------------------------------------------------------------------
|
10066
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10067
|
+
[1m[35mSQL (2.1ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:50:09 UTC +00:00], ["file", "13898766094877598.txt"], ["updated_at", Thu, 16 Jan 2014 12:50:09 UTC +00:00]]
|
10068
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
10069
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
10070
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10071
|
+
-------------------------------------------------------------------------
|
10072
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
10073
|
+
-------------------------------------------------------------------------
|
10074
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10075
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10076
|
+
-------------------------------------------------------------------
|
10077
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
10078
|
+
-------------------------------------------------------------------
|
10079
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10080
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10081
|
+
---------------------------------------------------------------------------
|
10082
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
10083
|
+
---------------------------------------------------------------------------
|
10084
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10085
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10086
|
+
----------------------------------------------
|
10087
|
+
LocalGenerateTest: test_should_generate_preset
|
10088
|
+
----------------------------------------------
|
10089
|
+
Started GET "/uploads/images/small/13898766095066580.jpg" for 127.0.0.1 at 2014-01-16 10:50:09 -0200
|
10090
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
10091
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898766095066580"}
|
10092
|
+
Redirected to http://www.example.com/uploads/images/small/13898766095066580.jpg
|
10093
|
+
Completed 302 Found in 65ms (ActiveRecord: 0.0ms)
|
10094
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10095
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10096
|
+
---------------------------------------------------------------------
|
10097
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
10098
|
+
---------------------------------------------------------------------
|
10099
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10100
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 16 Jan 2014 12:50:09 UTC +00:00], ["image", "13898766097238910.jpg"], ["updated_at", Thu, 16 Jan 2014 12:50:09 UTC +00:00]]
|
10101
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
10102
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
10103
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10104
|
+
---------------------------------------------------------------
|
10105
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
10106
|
+
---------------------------------------------------------------
|
10107
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10108
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10109
|
+
--------------------------------------------------------------------
|
10110
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
10111
|
+
--------------------------------------------------------------------
|
10112
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10113
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10114
|
+
---------------------------------------------------------------------------------------------
|
10115
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
10116
|
+
---------------------------------------------------------------------------------------------
|
10117
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10118
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:50:10 UTC +00:00], ["file", "13898766101992900.jpg"], ["updated_at", Thu, 16 Jan 2014 12:50:10 UTC +00:00]]
|
10119
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
10120
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
10121
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10122
|
+
-----------------------------------------------------------------------------------
|
10123
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
10124
|
+
-----------------------------------------------------------------------------------
|
10125
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10126
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 12:50:10 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 12:50:10 UTC +00:00]]
|
10127
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
10128
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
10129
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10130
|
+
-------------------------------------------------------------------
|
10131
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
10132
|
+
-------------------------------------------------------------------
|
10133
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10134
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10135
|
+
---------------------------------------------------------
|
10136
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
10137
|
+
---------------------------------------------------------
|
10138
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
10139
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10140
|
+
------------------------------------------------------------
|
10141
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
10142
|
+
------------------------------------------------------------
|
10143
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
10144
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10145
|
+
----------------------------------------------------
|
10146
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
10147
|
+
----------------------------------------------------
|
10148
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
10149
|
+
[1m[36m (3.4ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
10150
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10151
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
10152
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10153
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
10154
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10155
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
10156
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10157
|
+
-------------------------------------------------------------------------
|
10158
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
10159
|
+
-------------------------------------------------------------------------
|
10160
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10161
|
+
[1m[35mSQL (2.5ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:51:06 UTC +00:00], ["file", "13898766663288488.txt"], ["updated_at", Thu, 16 Jan 2014 12:51:06 UTC +00:00]]
|
10162
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10163
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10164
|
+
[1m[36mSQL (0.9ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
10165
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10166
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
10167
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10168
|
+
-------------------------------------------------------------------------
|
10169
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
10170
|
+
-------------------------------------------------------------------------
|
10171
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10172
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10173
|
+
-------------------------------------------------------------------
|
10174
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
10175
|
+
-------------------------------------------------------------------
|
10176
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10177
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10178
|
+
---------------------------------------------------------------------------
|
10179
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
10180
|
+
---------------------------------------------------------------------------
|
10181
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
10182
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10183
|
+
----------------------------------------------
|
10184
|
+
LocalGenerateTest: test_should_generate_preset
|
10185
|
+
----------------------------------------------
|
10186
|
+
Started GET "/uploads/images/small/13898766663501508.jpg" for 127.0.0.1 at 2014-01-16 10:51:06 -0200
|
10187
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
10188
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898766663501508"}
|
10189
|
+
Redirected to http://www.example.com/uploads/images/small/13898766663501508.jpg
|
10190
|
+
Completed 302 Found in 65ms (ActiveRecord: 0.0ms)
|
10191
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10192
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10193
|
+
---------------------------------------------------------------------
|
10194
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
10195
|
+
---------------------------------------------------------------------
|
10196
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10197
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:51:06 UTC +00:00], ["image", "13898766665637870.jpg"], ["updated_at", Thu, 16 Jan 2014 12:51:06 UTC +00:00]]
|
10198
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10199
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10200
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
10201
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10202
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
10203
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10204
|
+
---------------------------------------------------------------
|
10205
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
10206
|
+
---------------------------------------------------------------
|
10207
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10208
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10209
|
+
--------------------------------------------------------------------
|
10210
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
10211
|
+
--------------------------------------------------------------------
|
10212
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10213
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10214
|
+
---------------------------------------------------------------------------------------------
|
10215
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
10216
|
+
---------------------------------------------------------------------------------------------
|
10217
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10218
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:51:07 UTC +00:00], ["file", "13898766670331320.jpg"], ["updated_at", Thu, 16 Jan 2014 12:51:07 UTC +00:00]]
|
10219
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10220
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10221
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13898766670367450.txt"], ["updated_at", Thu, 16 Jan 2014 12:51:07 UTC +00:00]]
|
10222
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10223
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10224
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
10225
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10226
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
10227
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10228
|
+
-----------------------------------------------------------------------------------
|
10229
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
10230
|
+
-----------------------------------------------------------------------------------
|
10231
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10232
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 12:51:07 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 12:51:07 UTC +00:00]]
|
10233
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10234
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10235
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
10236
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10237
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10238
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 12:51:07 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 12:51:07 UTC +00:00]]
|
10239
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10240
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10241
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
10242
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10243
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
10244
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10245
|
+
-------------------------------------------------------------------
|
10246
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
10247
|
+
-------------------------------------------------------------------
|
10248
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10249
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10250
|
+
---------------------------------------------------------
|
10251
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
10252
|
+
---------------------------------------------------------
|
10253
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10254
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10255
|
+
------------------------------------------------------------
|
10256
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
10257
|
+
------------------------------------------------------------
|
10258
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10259
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10260
|
+
----------------------------------------------------
|
10261
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
10262
|
+
----------------------------------------------------
|
10263
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10264
|
+
[1m[36m (2.9ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
10265
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10266
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
10267
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10268
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
10269
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10270
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
10271
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10272
|
+
-------------------------------------------------------------------------
|
10273
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
10274
|
+
-------------------------------------------------------------------------
|
10275
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10276
|
+
[1m[35mSQL (2.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:55:09 UTC +00:00], ["file", "13898769092861372.txt"], ["updated_at", Thu, 16 Jan 2014 12:55:09 UTC +00:00]]
|
10277
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10278
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10279
|
+
[1m[36mSQL (0.9ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
10280
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10281
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
10282
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10283
|
+
-------------------------------------------------------------------------
|
10284
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
10285
|
+
-------------------------------------------------------------------------
|
10286
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10287
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10288
|
+
-------------------------------------------------------------------
|
10289
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
10290
|
+
-------------------------------------------------------------------
|
10291
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10292
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10293
|
+
---------------------------------------------------------------------------
|
10294
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
10295
|
+
---------------------------------------------------------------------------
|
10296
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10297
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10298
|
+
----------------------------------------------
|
10299
|
+
LocalGenerateTest: test_should_generate_preset
|
10300
|
+
----------------------------------------------
|
10301
|
+
Started GET "/uploads/images/small/13898769093086000.jpg" for 127.0.0.1 at 2014-01-16 10:55:09 -0200
|
10302
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
10303
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898769093086000"}
|
10304
|
+
Redirected to http://www.example.com/uploads/images/small/13898769093086000.jpg
|
10305
|
+
Completed 302 Found in 65ms (ActiveRecord: 0.0ms)
|
10306
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
10307
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10308
|
+
---------------------------------------------------------------------
|
10309
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
10310
|
+
---------------------------------------------------------------------
|
10311
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10312
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:55:09 UTC +00:00], ["image", "13898769095197902.jpg"], ["updated_at", Thu, 16 Jan 2014 12:55:09 UTC +00:00]]
|
10313
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10314
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10315
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
10316
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10317
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
10318
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10319
|
+
---------------------------------------------------------------
|
10320
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
10321
|
+
---------------------------------------------------------------
|
10322
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10323
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10324
|
+
--------------------------------------------------------------------
|
10325
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
10326
|
+
--------------------------------------------------------------------
|
10327
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10328
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10329
|
+
---------------------------------------------------------------------------------------------
|
10330
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
10331
|
+
---------------------------------------------------------------------------------------------
|
10332
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10333
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:55:09 UTC +00:00], ["file", "13898769099908870.jpg"], ["updated_at", Thu, 16 Jan 2014 12:55:09 UTC +00:00]]
|
10334
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10335
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10336
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13898769099942532.txt"], ["updated_at", Thu, 16 Jan 2014 12:55:09 UTC +00:00]]
|
10337
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10338
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10339
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
10340
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10341
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
10342
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10343
|
+
-----------------------------------------------------------------------------------
|
10344
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
10345
|
+
-----------------------------------------------------------------------------------
|
10346
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10347
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 12:55:10 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 12:55:10 UTC +00:00]]
|
10348
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10349
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10350
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
10351
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10352
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10353
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 12:55:10 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 12:55:10 UTC +00:00]]
|
10354
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10355
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10356
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
10357
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10358
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
10359
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10360
|
+
-------------------------------------------------------------------
|
10361
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
10362
|
+
-------------------------------------------------------------------
|
10363
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10364
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10365
|
+
---------------------------------------------------------
|
10366
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
10367
|
+
---------------------------------------------------------
|
10368
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10369
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10370
|
+
------------------------------------------------------------
|
10371
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
10372
|
+
------------------------------------------------------------
|
10373
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10374
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10375
|
+
----------------------------------------------------
|
10376
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
10377
|
+
----------------------------------------------------
|
10378
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10379
|
+
[1m[36m (11.9ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
10380
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10381
|
+
[1m[36m (0.9ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
10382
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10383
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
10384
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10385
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
10386
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10387
|
+
-------------------------------------------------------------------------
|
10388
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
10389
|
+
-------------------------------------------------------------------------
|
10390
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10391
|
+
[1m[35mSQL (2.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:56:21 UTC +00:00], ["file", "13898769816380868.txt"], ["updated_at", Thu, 16 Jan 2014 12:56:21 UTC +00:00]]
|
10392
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10393
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10394
|
+
[1m[36mSQL (0.8ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
10395
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10396
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
10397
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10398
|
+
-------------------------------------------------------------------------
|
10399
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
10400
|
+
-------------------------------------------------------------------------
|
10401
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10402
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10403
|
+
-------------------------------------------------------------------
|
10404
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
10405
|
+
-------------------------------------------------------------------
|
10406
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10407
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10408
|
+
---------------------------------------------------------------------------
|
10409
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
10410
|
+
---------------------------------------------------------------------------
|
10411
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
10412
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10413
|
+
----------------------------------------------
|
10414
|
+
LocalGenerateTest: test_should_generate_preset
|
10415
|
+
----------------------------------------------
|
10416
|
+
Started GET "/uploads/images/small/13898769816600190.jpg" for 127.0.0.1 at 2014-01-16 10:56:21 -0200
|
10417
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
10418
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898769816600190"}
|
10419
|
+
Redirected to http://www.example.com/uploads/images/small/13898769816600190.jpg
|
10420
|
+
Completed 302 Found in 70ms (ActiveRecord: 0.0ms)
|
10421
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10422
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10423
|
+
---------------------------------------------------------------------
|
10424
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
10425
|
+
---------------------------------------------------------------------
|
10426
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10427
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:56:22 UTC +00:00], ["image", "13898769818732790.jpg"], ["updated_at", Thu, 16 Jan 2014 12:56:22 UTC +00:00]]
|
10428
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10429
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10430
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
10431
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10432
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
10433
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10434
|
+
---------------------------------------------------------------
|
10435
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
10436
|
+
---------------------------------------------------------------
|
10437
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10438
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10439
|
+
--------------------------------------------------------------------
|
10440
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
10441
|
+
--------------------------------------------------------------------
|
10442
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10443
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10444
|
+
---------------------------------------------------------------------------------------------
|
10445
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
10446
|
+
---------------------------------------------------------------------------------------------
|
10447
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10448
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:56:22 UTC +00:00], ["file", "13898769823495260.jpg"], ["updated_at", Thu, 16 Jan 2014 12:56:22 UTC +00:00]]
|
10449
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10450
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10451
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13898769823532742.txt"], ["updated_at", Thu, 16 Jan 2014 12:56:22 UTC +00:00]]
|
10452
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10453
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10454
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
10455
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10456
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
10457
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10458
|
+
-----------------------------------------------------------------------------------
|
10459
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
10460
|
+
-----------------------------------------------------------------------------------
|
10461
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10462
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 12:56:22 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 12:56:22 UTC +00:00]]
|
10463
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10464
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10465
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
10466
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10467
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10468
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 12:56:22 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 12:56:22 UTC +00:00]]
|
10469
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10470
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10471
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
10472
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10473
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
10474
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10475
|
+
-------------------------------------------------------------------
|
10476
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
10477
|
+
-------------------------------------------------------------------
|
10478
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
10479
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10480
|
+
---------------------------------------------------------
|
10481
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
10482
|
+
---------------------------------------------------------
|
10483
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10484
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10485
|
+
------------------------------------------------------------
|
10486
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
10487
|
+
------------------------------------------------------------
|
10488
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10489
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10490
|
+
----------------------------------------------------
|
10491
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
10492
|
+
----------------------------------------------------
|
10493
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10494
|
+
[1m[36m (3.5ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
10495
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10496
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
10497
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10498
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
10499
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10500
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
10501
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10502
|
+
-------------------------------------------------------------------------
|
10503
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
10504
|
+
-------------------------------------------------------------------------
|
10505
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10506
|
+
[1m[35mSQL (2.5ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:57:22 UTC +00:00], ["file", "13898770426132380.txt"], ["updated_at", Thu, 16 Jan 2014 12:57:22 UTC +00:00]]
|
10507
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10508
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10509
|
+
[1m[36mSQL (0.9ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
10510
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10511
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
10512
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10513
|
+
-------------------------------------------------------------------------
|
10514
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
10515
|
+
-------------------------------------------------------------------------
|
10516
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10517
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10518
|
+
-------------------------------------------------------------------
|
10519
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
10520
|
+
-------------------------------------------------------------------
|
10521
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10522
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10523
|
+
---------------------------------------------------------------------------
|
10524
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
10525
|
+
---------------------------------------------------------------------------
|
10526
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
10527
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10528
|
+
----------------------------------------------
|
10529
|
+
LocalGenerateTest: test_should_generate_preset
|
10530
|
+
----------------------------------------------
|
10531
|
+
Started GET "/uploads/images/small/13898770426344750.jpg" for 127.0.0.1 at 2014-01-16 10:57:22 -0200
|
10532
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
10533
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898770426344750"}
|
10534
|
+
Redirected to http://www.example.com/uploads/images/small/13898770426344750.jpg
|
10535
|
+
Completed 302 Found in 65ms (ActiveRecord: 0.0ms)
|
10536
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
10537
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10538
|
+
---------------------------------------------------------------------
|
10539
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
10540
|
+
---------------------------------------------------------------------
|
10541
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10542
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:57:23 UTC +00:00], ["image", "13898770428456740.jpg"], ["updated_at", Thu, 16 Jan 2014 12:57:23 UTC +00:00]]
|
10543
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10544
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10545
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
10546
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10547
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
10548
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10549
|
+
---------------------------------------------------------------
|
10550
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
10551
|
+
---------------------------------------------------------------
|
10552
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10553
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10554
|
+
--------------------------------------------------------------------
|
10555
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
10556
|
+
--------------------------------------------------------------------
|
10557
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10558
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10559
|
+
---------------------------------------------------------------------------------------------
|
10560
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
10561
|
+
---------------------------------------------------------------------------------------------
|
10562
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10563
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 12:57:23 UTC +00:00], ["file", "13898770433269720.jpg"], ["updated_at", Thu, 16 Jan 2014 12:57:23 UTC +00:00]]
|
10564
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10565
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10566
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13898770433301730.txt"], ["updated_at", Thu, 16 Jan 2014 12:57:23 UTC +00:00]]
|
10567
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10568
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10569
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
10570
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10571
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
10572
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10573
|
+
-----------------------------------------------------------------------------------
|
10574
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
10575
|
+
-----------------------------------------------------------------------------------
|
10576
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10577
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 12:57:23 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 12:57:23 UTC +00:00]]
|
10578
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10579
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10580
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
10581
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10582
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10583
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 12:57:23 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 12:57:23 UTC +00:00]]
|
10584
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10585
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10586
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
10587
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10588
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
10589
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10590
|
+
-------------------------------------------------------------------
|
10591
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
10592
|
+
-------------------------------------------------------------------
|
10593
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10594
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10595
|
+
---------------------------------------------------------
|
10596
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
10597
|
+
---------------------------------------------------------
|
10598
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10599
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10600
|
+
------------------------------------------------------------
|
10601
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
10602
|
+
------------------------------------------------------------
|
10603
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10604
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10605
|
+
----------------------------------------------------
|
10606
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
10607
|
+
----------------------------------------------------
|
10608
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10609
|
+
[1m[36m (3.5ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
10610
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10611
|
+
[1m[36m (1.0ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
10612
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10613
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
10614
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10615
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
10616
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10617
|
+
-------------------------------------------------------------------------
|
10618
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
10619
|
+
-------------------------------------------------------------------------
|
10620
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10621
|
+
[1m[35mSQL (2.5ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:00:12 UTC +00:00], ["file", "13898772127974210.txt"], ["updated_at", Thu, 16 Jan 2014 13:00:12 UTC +00:00]]
|
10622
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10623
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10624
|
+
[1m[36mSQL (0.9ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
10625
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10626
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
10627
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10628
|
+
-------------------------------------------------------------------------
|
10629
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
10630
|
+
-------------------------------------------------------------------------
|
10631
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10632
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10633
|
+
-------------------------------------------------------------------
|
10634
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
10635
|
+
-------------------------------------------------------------------
|
10636
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
10637
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10638
|
+
---------------------------------------------------------------------------
|
10639
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
10640
|
+
---------------------------------------------------------------------------
|
10641
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
10642
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10643
|
+
----------------------------------------------
|
10644
|
+
LocalGenerateTest: test_should_generate_preset
|
10645
|
+
----------------------------------------------
|
10646
|
+
Started GET "/uploads/images/small/13898772128186810.jpg" for 127.0.0.1 at 2014-01-16 11:00:12 -0200
|
10647
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
10648
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898772128186810"}
|
10649
|
+
Redirected to http://www.example.com/uploads/images/small/13898772128186810.jpg
|
10650
|
+
Completed 302 Found in 64ms (ActiveRecord: 0.0ms)
|
10651
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10652
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10653
|
+
---------------------------------------------------------------------
|
10654
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
10655
|
+
---------------------------------------------------------------------
|
10656
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10657
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:00:13 UTC +00:00], ["image", "13898772130268888.jpg"], ["updated_at", Thu, 16 Jan 2014 13:00:13 UTC +00:00]]
|
10658
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10659
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10660
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
10661
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10662
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
10663
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10664
|
+
---------------------------------------------------------------
|
10665
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
10666
|
+
---------------------------------------------------------------
|
10667
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10668
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10669
|
+
--------------------------------------------------------------------
|
10670
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
10671
|
+
--------------------------------------------------------------------
|
10672
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
10673
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10674
|
+
---------------------------------------------------------------------------------------------
|
10675
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
10676
|
+
---------------------------------------------------------------------------------------------
|
10677
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10678
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:00:13 UTC +00:00], ["file", "13898772135084578.jpg"], ["updated_at", Thu, 16 Jan 2014 13:00:13 UTC +00:00]]
|
10679
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10680
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10681
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13898772135117900.txt"], ["updated_at", Thu, 16 Jan 2014 13:00:13 UTC +00:00]]
|
10682
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10683
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10684
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
10685
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10686
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
10687
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10688
|
+
-----------------------------------------------------------------------------------
|
10689
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
10690
|
+
-----------------------------------------------------------------------------------
|
10691
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10692
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:00:13 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:00:13 UTC +00:00]]
|
10693
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10694
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10695
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
10696
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10697
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10698
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:00:13 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:00:13 UTC +00:00]]
|
10699
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10700
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10701
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
10702
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10703
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
10704
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10705
|
+
-------------------------------------------------------------------
|
10706
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
10707
|
+
-------------------------------------------------------------------
|
10708
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10709
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10710
|
+
---------------------------------------------------------
|
10711
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
10712
|
+
---------------------------------------------------------
|
10713
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10714
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10715
|
+
------------------------------------------------------------
|
10716
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
10717
|
+
------------------------------------------------------------
|
10718
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10719
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10720
|
+
----------------------------------------------------
|
10721
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
10722
|
+
----------------------------------------------------
|
10723
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10724
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10725
|
+
----------------------------------------------------------------------
|
10726
|
+
S3FileRecordTest: test_should_maintain_properties_and_delete_correctly
|
10727
|
+
----------------------------------------------------------------------
|
10728
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10729
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10730
|
+
----------------------------------------------------------------------
|
10731
|
+
S3FileStringTest: test_should_maintain_properties_and_delete_correctly
|
10732
|
+
----------------------------------------------------------------------
|
10733
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10734
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10735
|
+
----------------------------------------------------------------
|
10736
|
+
S3FileUploadTest: test_file_should_exists_and_mantain_properties
|
10737
|
+
----------------------------------------------------------------
|
10738
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10739
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10740
|
+
------------------------------------------------------------------------
|
10741
|
+
S3FileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
10742
|
+
------------------------------------------------------------------------
|
10743
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10744
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10745
|
+
-----------------------------------------------------------------
|
10746
|
+
S3ImageRecordTest: test_should_save/destory_main_image_and_thumbs
|
10747
|
+
-----------------------------------------------------------------
|
10748
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10749
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10750
|
+
-----------------------------------------------------------------
|
10751
|
+
S3ImageStringTest: test_should_save/destory_main_image_and_thumbs
|
10752
|
+
-----------------------------------------------------------------
|
10753
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10754
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10755
|
+
-----------------------------------------------------------------
|
10756
|
+
S3ImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
10757
|
+
-----------------------------------------------------------------
|
10758
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10759
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10760
|
+
------------------------------------------------------------------------------------------
|
10761
|
+
S3RecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
10762
|
+
------------------------------------------------------------------------------------------
|
10763
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10764
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10765
|
+
--------------------------------------------------------------------------------
|
10766
|
+
S3RecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
10767
|
+
--------------------------------------------------------------------------------
|
10768
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10769
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10770
|
+
----------------------------------------------------------------
|
10771
|
+
S3ValidatorsTest: test_should_check_all_the_validations_together
|
10772
|
+
----------------------------------------------------------------
|
10773
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10774
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10775
|
+
------------------------------------------------------
|
10776
|
+
S3ValidatorsTest: test_should_check_if_file_is_present
|
10777
|
+
------------------------------------------------------
|
10778
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10779
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10780
|
+
---------------------------------------------------------
|
10781
|
+
S3ValidatorsTest: test_should_check_the_file_content_type
|
10782
|
+
---------------------------------------------------------
|
10783
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10784
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10785
|
+
-------------------------------------------------
|
10786
|
+
S3ValidatorsTest: test_should_check_the_file_size
|
10787
|
+
-------------------------------------------------
|
10788
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10789
|
+
[1m[36m (3.0ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
10790
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10791
|
+
[1m[36m (0.9ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
10792
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10793
|
+
[1m[36m (0.9ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
10794
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10795
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
10796
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10797
|
+
-------------------------------------------------------------------------
|
10798
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
10799
|
+
-------------------------------------------------------------------------
|
10800
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10801
|
+
[1m[35mSQL (2.1ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:02:08 UTC +00:00], ["file", "13898773286146460.txt"], ["updated_at", Thu, 16 Jan 2014 13:02:08 UTC +00:00]]
|
10802
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10803
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10804
|
+
[1m[36mSQL (0.9ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
10805
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10806
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
10807
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10808
|
+
-------------------------------------------------------------------------
|
10809
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
10810
|
+
-------------------------------------------------------------------------
|
10811
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10812
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10813
|
+
-------------------------------------------------------------------
|
10814
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
10815
|
+
-------------------------------------------------------------------
|
10816
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10817
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10818
|
+
---------------------------------------------------------------------------
|
10819
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
10820
|
+
---------------------------------------------------------------------------
|
10821
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
10822
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10823
|
+
----------------------------------------------
|
10824
|
+
LocalGenerateTest: test_should_generate_preset
|
10825
|
+
----------------------------------------------
|
10826
|
+
Started GET "/uploads/images/small/13898773286345280.jpg" for 127.0.0.1 at 2014-01-16 11:02:08 -0200
|
10827
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
10828
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898773286345280"}
|
10829
|
+
Redirected to http://www.example.com/uploads/images/small/13898773286345280.jpg
|
10830
|
+
Completed 302 Found in 65ms (ActiveRecord: 0.0ms)
|
10831
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10832
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10833
|
+
---------------------------------------------------------------------
|
10834
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
10835
|
+
---------------------------------------------------------------------
|
10836
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10837
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:02:09 UTC +00:00], ["image", "13898773288423062.jpg"], ["updated_at", Thu, 16 Jan 2014 13:02:09 UTC +00:00]]
|
10838
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10839
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10840
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
10841
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10842
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
10843
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10844
|
+
---------------------------------------------------------------
|
10845
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
10846
|
+
---------------------------------------------------------------
|
10847
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
10848
|
+
[1m[35m (0.0ms)[0m begin transaction
|
10849
|
+
--------------------------------------------------------------------
|
10850
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
10851
|
+
--------------------------------------------------------------------
|
10852
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
10853
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10854
|
+
---------------------------------------------------------------------------------------------
|
10855
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
10856
|
+
---------------------------------------------------------------------------------------------
|
10857
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10858
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:02:09 UTC +00:00], ["file", "13898773293160320.jpg"], ["updated_at", Thu, 16 Jan 2014 13:02:09 UTC +00:00]]
|
10859
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10860
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10861
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13898773293193820.txt"], ["updated_at", Thu, 16 Jan 2014 13:02:09 UTC +00:00]]
|
10862
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10863
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10864
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
10865
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10866
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
10867
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10868
|
+
-----------------------------------------------------------------------------------
|
10869
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
10870
|
+
-----------------------------------------------------------------------------------
|
10871
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10872
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:02:09 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:02:09 UTC +00:00]]
|
10873
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10874
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10875
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
10876
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10877
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10878
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:02:09 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:02:09 UTC +00:00]]
|
10879
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10880
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10881
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
10882
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10883
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
10884
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10885
|
+
-------------------------------------------------------------------
|
10886
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
10887
|
+
-------------------------------------------------------------------
|
10888
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10889
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
10890
|
+
---------------------------------------------------------
|
10891
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
10892
|
+
---------------------------------------------------------
|
10893
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10894
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10895
|
+
------------------------------------------------------------
|
10896
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
10897
|
+
------------------------------------------------------------
|
10898
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10899
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10900
|
+
----------------------------------------------------
|
10901
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
10902
|
+
----------------------------------------------------
|
10903
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10904
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10905
|
+
----------------------------------------------------------------------
|
10906
|
+
S3FileRecordTest: test_should_maintain_properties_and_delete_correctly
|
10907
|
+
----------------------------------------------------------------------
|
10908
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10909
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
10910
|
+
undefined method `each' for nil:NilClass
|
10911
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10912
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10913
|
+
----------------------------------------------------------------------
|
10914
|
+
S3FileStringTest: test_should_maintain_properties_and_delete_correctly
|
10915
|
+
----------------------------------------------------------------------
|
10916
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10917
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10918
|
+
----------------------------------------------------------------
|
10919
|
+
S3FileUploadTest: test_file_should_exists_and_mantain_properties
|
10920
|
+
----------------------------------------------------------------
|
10921
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10922
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10923
|
+
------------------------------------------------------------------------
|
10924
|
+
S3FileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
10925
|
+
------------------------------------------------------------------------
|
10926
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10927
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10928
|
+
-----------------------------------------------------------------
|
10929
|
+
S3ImageRecordTest: test_should_save/destory_main_image_and_thumbs
|
10930
|
+
-----------------------------------------------------------------
|
10931
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10932
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
10933
|
+
undefined method `each' for nil:NilClass
|
10934
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10935
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10936
|
+
-----------------------------------------------------------------
|
10937
|
+
S3ImageStringTest: test_should_save/destory_main_image_and_thumbs
|
10938
|
+
-----------------------------------------------------------------
|
10939
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10940
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10941
|
+
-----------------------------------------------------------------
|
10942
|
+
S3ImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
10943
|
+
-----------------------------------------------------------------
|
10944
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10945
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10946
|
+
------------------------------------------------------------------------------------------
|
10947
|
+
S3RecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
10948
|
+
------------------------------------------------------------------------------------------
|
10949
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
10950
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
10951
|
+
undefined method `each' for nil:NilClass
|
10952
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10953
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10954
|
+
--------------------------------------------------------------------------------
|
10955
|
+
S3RecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
10956
|
+
--------------------------------------------------------------------------------
|
10957
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10958
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
10959
|
+
undefined method `each' for nil:NilClass
|
10960
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10961
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10962
|
+
----------------------------------------------------------------
|
10963
|
+
S3ValidatorsTest: test_should_check_all_the_validations_together
|
10964
|
+
----------------------------------------------------------------
|
10965
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10966
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10967
|
+
------------------------------------------------------
|
10968
|
+
S3ValidatorsTest: test_should_check_if_file_is_present
|
10969
|
+
------------------------------------------------------
|
10970
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10971
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10972
|
+
---------------------------------------------------------
|
10973
|
+
S3ValidatorsTest: test_should_check_the_file_content_type
|
10974
|
+
---------------------------------------------------------
|
10975
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10976
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10977
|
+
-------------------------------------------------
|
10978
|
+
S3ValidatorsTest: test_should_check_the_file_size
|
10979
|
+
-------------------------------------------------
|
10980
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
10981
|
+
[1m[36m (3.4ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
10982
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10983
|
+
[1m[36m (0.9ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
10984
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10985
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
10986
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
10987
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
10988
|
+
[1m[35m (0.1ms)[0m begin transaction
|
10989
|
+
-------------------------------------------------------------------------
|
10990
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
10991
|
+
-------------------------------------------------------------------------
|
10992
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
10993
|
+
[1m[35mSQL (2.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:03:27 UTC +00:00], ["file", "13898774070591900.txt"], ["updated_at", Thu, 16 Jan 2014 13:03:27 UTC +00:00]]
|
10994
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
10995
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
10996
|
+
[1m[36mSQL (0.8ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
10997
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
10998
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
10999
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11000
|
+
-------------------------------------------------------------------------
|
11001
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
11002
|
+
-------------------------------------------------------------------------
|
11003
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11004
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11005
|
+
-------------------------------------------------------------------
|
11006
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
11007
|
+
-------------------------------------------------------------------
|
11008
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11009
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11010
|
+
---------------------------------------------------------------------------
|
11011
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
11012
|
+
---------------------------------------------------------------------------
|
11013
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11014
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11015
|
+
----------------------------------------------
|
11016
|
+
LocalGenerateTest: test_should_generate_preset
|
11017
|
+
----------------------------------------------
|
11018
|
+
Started GET "/uploads/images/small/13898774070805812.jpg" for 127.0.0.1 at 2014-01-16 11:03:27 -0200
|
11019
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
11020
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898774070805812"}
|
11021
|
+
Redirected to http://www.example.com/uploads/images/small/13898774070805812.jpg
|
11022
|
+
Completed 302 Found in 69ms (ActiveRecord: 0.0ms)
|
11023
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11024
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11025
|
+
---------------------------------------------------------------------
|
11026
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
11027
|
+
---------------------------------------------------------------------
|
11028
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11029
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:03:27 UTC +00:00], ["image", "13898774072977988.jpg"], ["updated_at", Thu, 16 Jan 2014 13:03:27 UTC +00:00]]
|
11030
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11031
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11032
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
11033
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11034
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
11035
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11036
|
+
---------------------------------------------------------------
|
11037
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
11038
|
+
---------------------------------------------------------------
|
11039
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11040
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11041
|
+
--------------------------------------------------------------------
|
11042
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
11043
|
+
--------------------------------------------------------------------
|
11044
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
11045
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11046
|
+
---------------------------------------------------------------------------------------------
|
11047
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
11048
|
+
---------------------------------------------------------------------------------------------
|
11049
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11050
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:03:27 UTC +00:00], ["file", "13898774077688962.jpg"], ["updated_at", Thu, 16 Jan 2014 13:03:27 UTC +00:00]]
|
11051
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11052
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11053
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13898774077731972.txt"], ["updated_at", Thu, 16 Jan 2014 13:03:27 UTC +00:00]]
|
11054
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11055
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11056
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
11057
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11058
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
11059
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11060
|
+
-----------------------------------------------------------------------------------
|
11061
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
11062
|
+
-----------------------------------------------------------------------------------
|
11063
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11064
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:03:27 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:03:27 UTC +00:00]]
|
11065
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11066
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11067
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
11068
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11069
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11070
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:03:27 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:03:27 UTC +00:00]]
|
11071
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11072
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11073
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
11074
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11075
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
11076
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11077
|
+
-------------------------------------------------------------------
|
11078
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
11079
|
+
-------------------------------------------------------------------
|
11080
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11081
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11082
|
+
---------------------------------------------------------
|
11083
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
11084
|
+
---------------------------------------------------------
|
11085
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11086
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11087
|
+
------------------------------------------------------------
|
11088
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
11089
|
+
------------------------------------------------------------
|
11090
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11091
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11092
|
+
----------------------------------------------------
|
11093
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
11094
|
+
----------------------------------------------------
|
11095
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11096
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11097
|
+
----------------------------------------------------------------------
|
11098
|
+
S3FileRecordTest: test_should_maintain_properties_and_delete_correctly
|
11099
|
+
----------------------------------------------------------------------
|
11100
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11101
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:03:30 UTC +00:00], ["file", "13898774078817642.txt"], ["updated_at", Thu, 16 Jan 2014 13:03:30 UTC +00:00]]
|
11102
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11103
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11104
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
11105
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11106
|
+
[1m[35m (3.0ms)[0m rollback transaction
|
11107
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11108
|
+
----------------------------------------------------------------------
|
11109
|
+
S3FileStringTest: test_should_maintain_properties_and_delete_correctly
|
11110
|
+
----------------------------------------------------------------------
|
11111
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11112
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11113
|
+
----------------------------------------------------------------
|
11114
|
+
S3FileUploadTest: test_file_should_exists_and_mantain_properties
|
11115
|
+
----------------------------------------------------------------
|
11116
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11117
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11118
|
+
------------------------------------------------------------------------
|
11119
|
+
S3FileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
11120
|
+
------------------------------------------------------------------------
|
11121
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
11122
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11123
|
+
-----------------------------------------------------------------
|
11124
|
+
S3ImageRecordTest: test_should_save/destory_main_image_and_thumbs
|
11125
|
+
-----------------------------------------------------------------
|
11126
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11127
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:03:38 UTC +00:00], ["image", "13898774154441978.jpg"], ["updated_at", Thu, 16 Jan 2014 13:03:38 UTC +00:00]]
|
11128
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11129
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11130
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
11131
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11132
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
11133
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11134
|
+
-----------------------------------------------------------------
|
11135
|
+
S3ImageStringTest: test_should_save/destory_main_image_and_thumbs
|
11136
|
+
-----------------------------------------------------------------
|
11137
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11138
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11139
|
+
-----------------------------------------------------------------
|
11140
|
+
S3ImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
11141
|
+
-----------------------------------------------------------------
|
11142
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11143
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11144
|
+
------------------------------------------------------------------------------------------
|
11145
|
+
S3RecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
11146
|
+
------------------------------------------------------------------------------------------
|
11147
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11148
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:04:20 UTC +00:00], ["file", "13898774586139068.jpg"], ["updated_at", Thu, 16 Jan 2014 13:04:20 UTC +00:00]]
|
11149
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11150
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11151
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898774621353380.txt"], ["updated_at", Thu, 16 Jan 2014 13:04:45 UTC +00:00]]
|
11152
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11153
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11154
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
11155
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11156
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
11157
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11158
|
+
--------------------------------------------------------------------------------
|
11159
|
+
S3RecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
11160
|
+
--------------------------------------------------------------------------------
|
11161
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11162
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 16 Jan 2014 13:04:48 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:04:48 UTC +00:00]]
|
11163
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11164
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11165
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
11166
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11167
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11168
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 16 Jan 2014 13:04:53 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:04:53 UTC +00:00]]
|
11169
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11170
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11171
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
11172
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11173
|
+
[1m[36m (2.8ms)[0m [1mrollback transaction[0m
|
11174
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11175
|
+
----------------------------------------------------------------
|
11176
|
+
S3ValidatorsTest: test_should_check_all_the_validations_together
|
11177
|
+
----------------------------------------------------------------
|
11178
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11179
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11180
|
+
------------------------------------------------------
|
11181
|
+
S3ValidatorsTest: test_should_check_if_file_is_present
|
11182
|
+
------------------------------------------------------
|
11183
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11184
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11185
|
+
---------------------------------------------------------
|
11186
|
+
S3ValidatorsTest: test_should_check_the_file_content_type
|
11187
|
+
---------------------------------------------------------
|
11188
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11189
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11190
|
+
-------------------------------------------------
|
11191
|
+
S3ValidatorsTest: test_should_check_the_file_size
|
11192
|
+
-------------------------------------------------
|
11193
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11194
|
+
[1m[36m (3.4ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
11195
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11196
|
+
[1m[36m (0.9ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
11197
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11198
|
+
[1m[36m (0.7ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
11199
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11200
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
11201
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11202
|
+
-------------------------------------------------------------------------
|
11203
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
11204
|
+
-------------------------------------------------------------------------
|
11205
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11206
|
+
[1m[35mSQL (2.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:05:57 UTC +00:00], ["file", "13898775570575870.txt"], ["updated_at", Thu, 16 Jan 2014 13:05:57 UTC +00:00]]
|
11207
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11208
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11209
|
+
[1m[36mSQL (0.9ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
11210
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11211
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
11212
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11213
|
+
-------------------------------------------------------------------------
|
11214
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
11215
|
+
-------------------------------------------------------------------------
|
11216
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11217
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11218
|
+
-------------------------------------------------------------------
|
11219
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
11220
|
+
-------------------------------------------------------------------
|
11221
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11222
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11223
|
+
---------------------------------------------------------------------------
|
11224
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
11225
|
+
---------------------------------------------------------------------------
|
11226
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11227
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11228
|
+
----------------------------------------------
|
11229
|
+
LocalGenerateTest: test_should_generate_preset
|
11230
|
+
----------------------------------------------
|
11231
|
+
Started GET "/uploads/images/small/13898775570794518.jpg" for 127.0.0.1 at 2014-01-16 11:05:57 -0200
|
11232
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
11233
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898775570794518"}
|
11234
|
+
Redirected to http://www.example.com/uploads/images/small/13898775570794518.jpg
|
11235
|
+
Completed 302 Found in 69ms (ActiveRecord: 0.0ms)
|
11236
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11237
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11238
|
+
---------------------------------------------------------------------
|
11239
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
11240
|
+
---------------------------------------------------------------------
|
11241
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11242
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:05:57 UTC +00:00], ["image", "13898775572947090.jpg"], ["updated_at", Thu, 16 Jan 2014 13:05:57 UTC +00:00]]
|
11243
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11244
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11245
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
11246
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11247
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
11248
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11249
|
+
---------------------------------------------------------------
|
11250
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
11251
|
+
---------------------------------------------------------------
|
11252
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11253
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11254
|
+
--------------------------------------------------------------------
|
11255
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
11256
|
+
--------------------------------------------------------------------
|
11257
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
11258
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11259
|
+
---------------------------------------------------------------------------------------------
|
11260
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
11261
|
+
---------------------------------------------------------------------------------------------
|
11262
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11263
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:05:57 UTC +00:00], ["file", "13898775577745610.jpg"], ["updated_at", Thu, 16 Jan 2014 13:05:57 UTC +00:00]]
|
11264
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11265
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11266
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13898775577781730.txt"], ["updated_at", Thu, 16 Jan 2014 13:05:57 UTC +00:00]]
|
11267
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11268
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11269
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
11270
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11271
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
11272
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11273
|
+
-----------------------------------------------------------------------------------
|
11274
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
11275
|
+
-----------------------------------------------------------------------------------
|
11276
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11277
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:05:57 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:05:57 UTC +00:00]]
|
11278
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11279
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11280
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
11281
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11282
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11283
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:05:57 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:05:57 UTC +00:00]]
|
11284
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11285
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11286
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
11287
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11288
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
11289
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11290
|
+
-------------------------------------------------------------------
|
11291
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
11292
|
+
-------------------------------------------------------------------
|
11293
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11294
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11295
|
+
---------------------------------------------------------
|
11296
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
11297
|
+
---------------------------------------------------------
|
11298
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11299
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11300
|
+
------------------------------------------------------------
|
11301
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
11302
|
+
------------------------------------------------------------
|
11303
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11304
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11305
|
+
----------------------------------------------------
|
11306
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
11307
|
+
----------------------------------------------------
|
11308
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11309
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11310
|
+
----------------------------------------------------------------------
|
11311
|
+
S3FileRecordTest: test_should_maintain_properties_and_delete_correctly
|
11312
|
+
----------------------------------------------------------------------
|
11313
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11314
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:05:59 UTC +00:00], ["file", "13898775578821308.txt"], ["updated_at", Thu, 16 Jan 2014 13:05:59 UTC +00:00]]
|
11315
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11316
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11317
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
11318
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11319
|
+
[1m[35m (2.7ms)[0m rollback transaction
|
11320
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11321
|
+
----------------------------------------------------------------------
|
11322
|
+
S3FileStringTest: test_should_maintain_properties_and_delete_correctly
|
11323
|
+
----------------------------------------------------------------------
|
11324
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
11325
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11326
|
+
----------------------------------------------------------------
|
11327
|
+
S3FileUploadTest: test_file_should_exists_and_mantain_properties
|
11328
|
+
----------------------------------------------------------------
|
11329
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11330
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11331
|
+
------------------------------------------------------------------------
|
11332
|
+
S3FileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
11333
|
+
------------------------------------------------------------------------
|
11334
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11335
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11336
|
+
-----------------------------------------------------------------
|
11337
|
+
S3ImageRecordTest: test_should_save/destory_main_image_and_thumbs
|
11338
|
+
-----------------------------------------------------------------
|
11339
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11340
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:06:09 UTC +00:00], ["image", "13898775665630090.jpg"], ["updated_at", Thu, 16 Jan 2014 13:06:09 UTC +00:00]]
|
11341
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11342
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11343
|
+
[1m[35mSQL (0.8ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
11344
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11345
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
11346
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11347
|
+
-----------------------------------------------------------------
|
11348
|
+
S3ImageStringTest: test_should_save/destory_main_image_and_thumbs
|
11349
|
+
-----------------------------------------------------------------
|
11350
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11351
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11352
|
+
-----------------------------------------------------------------
|
11353
|
+
S3ImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
11354
|
+
-----------------------------------------------------------------
|
11355
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
11356
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11357
|
+
------------------------------------------------------------------------------------------
|
11358
|
+
S3RecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
11359
|
+
------------------------------------------------------------------------------------------
|
11360
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11361
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:07:43 UTC +00:00], ["file", "13898776399561270.jpg"], ["updated_at", Thu, 16 Jan 2014 13:07:43 UTC +00:00]]
|
11362
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11363
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11364
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898776650602530.txt"], ["updated_at", Thu, 16 Jan 2014 13:08:07 UTC +00:00]]
|
11365
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11366
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11367
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
11368
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11369
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
11370
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11371
|
+
--------------------------------------------------------------------------------
|
11372
|
+
S3RecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
11373
|
+
--------------------------------------------------------------------------------
|
11374
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11375
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 16 Jan 2014 13:08:09 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:08:09 UTC +00:00]]
|
11376
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11377
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11378
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
11379
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11380
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11381
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 16 Jan 2014 13:08:11 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:08:11 UTC +00:00]]
|
11382
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11383
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11384
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
11385
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11386
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
11387
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11388
|
+
----------------------------------------------------------------
|
11389
|
+
S3ValidatorsTest: test_should_check_all_the_validations_together
|
11390
|
+
----------------------------------------------------------------
|
11391
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11392
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11393
|
+
------------------------------------------------------
|
11394
|
+
S3ValidatorsTest: test_should_check_if_file_is_present
|
11395
|
+
------------------------------------------------------
|
11396
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11397
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11398
|
+
---------------------------------------------------------
|
11399
|
+
S3ValidatorsTest: test_should_check_the_file_content_type
|
11400
|
+
---------------------------------------------------------
|
11401
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11402
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11403
|
+
-------------------------------------------------
|
11404
|
+
S3ValidatorsTest: test_should_check_the_file_size
|
11405
|
+
-------------------------------------------------
|
11406
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11407
|
+
[1m[36m (1.2ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
11408
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11409
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
11410
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11411
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
11412
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11413
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
11414
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11415
|
+
----------------------------------------------------------------
|
11416
|
+
LocalFileRecordTest: test_should_delete_using_delete_attr_method
|
11417
|
+
----------------------------------------------------------------
|
11418
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11419
|
+
[1m[35mSQL (3.7ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:27:06 UTC +00:00], ["file", "13898788260004868.txt"], ["updated_at", Thu, 16 Jan 2014 13:27:06 UTC +00:00]]
|
11420
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11421
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
11422
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11423
|
+
-------------------------------------------------------------------------
|
11424
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
11425
|
+
-------------------------------------------------------------------------
|
11426
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11427
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:27:06 UTC +00:00], ["file", "13898788260155460.txt"], ["updated_at", Thu, 16 Jan 2014 13:27:06 UTC +00:00]]
|
11428
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11429
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11430
|
+
[1m[35mSQL (0.9ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
11431
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11432
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
11433
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11434
|
+
-------------------------------------------------------------------------
|
11435
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
11436
|
+
-------------------------------------------------------------------------
|
11437
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11438
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11439
|
+
-------------------------------------------------------------------
|
11440
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
11441
|
+
-------------------------------------------------------------------
|
11442
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11443
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11444
|
+
---------------------------------------------------------------------------
|
11445
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
11446
|
+
---------------------------------------------------------------------------
|
11447
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11448
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11449
|
+
----------------------------------------------
|
11450
|
+
LocalGenerateTest: test_should_generate_preset
|
11451
|
+
----------------------------------------------
|
11452
|
+
Started GET "/uploads/images/small/13898788260295190.jpg" for 127.0.0.1 at 2014-01-16 11:27:06 -0200
|
11453
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
11454
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898788260295190"}
|
11455
|
+
Redirected to http://www.example.com/uploads/images/small/13898788260295190.jpg
|
11456
|
+
Completed 302 Found in 69ms (ActiveRecord: 0.0ms)
|
11457
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11458
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11459
|
+
---------------------------------------------------------------------
|
11460
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
11461
|
+
---------------------------------------------------------------------
|
11462
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11463
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:27:06 UTC +00:00], ["image", "13898788262600830.jpg"], ["updated_at", Thu, 16 Jan 2014 13:27:06 UTC +00:00]]
|
11464
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11465
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11466
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
11467
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11468
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
11469
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11470
|
+
---------------------------------------------------------------
|
11471
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
11472
|
+
---------------------------------------------------------------
|
11473
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11474
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11475
|
+
--------------------------------------------------------------------
|
11476
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
11477
|
+
--------------------------------------------------------------------
|
11478
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11479
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11480
|
+
---------------------------------------------------------------------------------------------
|
11481
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
11482
|
+
---------------------------------------------------------------------------------------------
|
11483
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11484
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:27:06 UTC +00:00], ["file", "13898788267419760.jpg"], ["updated_at", Thu, 16 Jan 2014 13:27:06 UTC +00:00]]
|
11485
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11486
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11487
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898788267454068.txt"], ["updated_at", Thu, 16 Jan 2014 13:27:06 UTC +00:00]]
|
11488
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11489
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11490
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
11491
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11492
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
11493
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11494
|
+
-----------------------------------------------------------------------------------
|
11495
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
11496
|
+
-----------------------------------------------------------------------------------
|
11497
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11498
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 16 Jan 2014 13:27:06 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:27:06 UTC +00:00]]
|
11499
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11500
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11501
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
11502
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11503
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11504
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 16 Jan 2014 13:27:06 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:27:06 UTC +00:00]]
|
11505
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11506
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11507
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
11508
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11509
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
11510
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11511
|
+
-------------------------------------------------------------------
|
11512
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
11513
|
+
-------------------------------------------------------------------
|
11514
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11515
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11516
|
+
---------------------------------------------------------
|
11517
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
11518
|
+
---------------------------------------------------------
|
11519
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11520
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11521
|
+
------------------------------------------------------------
|
11522
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
11523
|
+
------------------------------------------------------------
|
11524
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11525
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11526
|
+
----------------------------------------------------
|
11527
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
11528
|
+
----------------------------------------------------
|
11529
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11530
|
+
[1m[36m (2.9ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
11531
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11532
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
11533
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11534
|
+
[1m[36m (0.9ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
11535
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11536
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
11537
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11538
|
+
----------------------------------------------------------------
|
11539
|
+
LocalFileRecordTest: test_should_delete_using_delete_attr_method
|
11540
|
+
----------------------------------------------------------------
|
11541
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11542
|
+
[1m[35mSQL (2.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:28:06 UTC +00:00], ["file", "13898788868801842.txt"], ["updated_at", Thu, 16 Jan 2014 13:28:06 UTC +00:00]]
|
11543
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11544
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11545
|
+
[1m[36mSQL (1.0ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", nil], ["updated_at", Thu, 16 Jan 2014 13:28:06 UTC +00:00]]
|
11546
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11547
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
11548
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11549
|
+
-------------------------------------------------------------------------
|
11550
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
11551
|
+
-------------------------------------------------------------------------
|
11552
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11553
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:28:06 UTC +00:00], ["file", "13898788868956302.txt"], ["updated_at", Thu, 16 Jan 2014 13:28:06 UTC +00:00]]
|
11554
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11555
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11556
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
11557
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11558
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
11559
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11560
|
+
-------------------------------------------------------------------------
|
11561
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
11562
|
+
-------------------------------------------------------------------------
|
11563
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11564
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11565
|
+
-------------------------------------------------------------------
|
11566
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
11567
|
+
-------------------------------------------------------------------
|
11568
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11569
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11570
|
+
---------------------------------------------------------------------------
|
11571
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
11572
|
+
---------------------------------------------------------------------------
|
11573
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11574
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11575
|
+
----------------------------------------------
|
11576
|
+
LocalGenerateTest: test_should_generate_preset
|
11577
|
+
----------------------------------------------
|
11578
|
+
Started GET "/uploads/images/small/13898788869077608.jpg" for 127.0.0.1 at 2014-01-16 11:28:07 -0200
|
11579
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
11580
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898788869077608"}
|
11581
|
+
Redirected to http://www.example.com/uploads/images/small/13898788869077608.jpg
|
11582
|
+
Completed 302 Found in 66ms (ActiveRecord: 0.0ms)
|
11583
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11584
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11585
|
+
---------------------------------------------------------------------
|
11586
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
11587
|
+
---------------------------------------------------------------------
|
11588
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11589
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:28:07 UTC +00:00], ["image", "13898788871245460.jpg"], ["updated_at", Thu, 16 Jan 2014 13:28:07 UTC +00:00]]
|
11590
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11591
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11592
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
11593
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11594
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
11595
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11596
|
+
---------------------------------------------------------------
|
11597
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
11598
|
+
---------------------------------------------------------------
|
11599
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11600
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11601
|
+
--------------------------------------------------------------------
|
11602
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
11603
|
+
--------------------------------------------------------------------
|
11604
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11605
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11606
|
+
---------------------------------------------------------------------------------------------
|
11607
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
11608
|
+
---------------------------------------------------------------------------------------------
|
11609
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11610
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:28:07 UTC +00:00], ["file", "13898788876071028.jpg"], ["updated_at", Thu, 16 Jan 2014 13:28:07 UTC +00:00]]
|
11611
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11612
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11613
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13898788876105830.txt"], ["updated_at", Thu, 16 Jan 2014 13:28:07 UTC +00:00]]
|
11614
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11615
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11616
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
11617
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11618
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
11619
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11620
|
+
-----------------------------------------------------------------------------------
|
11621
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
11622
|
+
-----------------------------------------------------------------------------------
|
11623
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11624
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:28:07 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:28:07 UTC +00:00]]
|
11625
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11626
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11627
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
11628
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11629
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11630
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:28:07 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:28:07 UTC +00:00]]
|
11631
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11632
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11633
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
11634
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11635
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
11636
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11637
|
+
-------------------------------------------------------------------
|
11638
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
11639
|
+
-------------------------------------------------------------------
|
11640
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11641
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11642
|
+
---------------------------------------------------------
|
11643
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
11644
|
+
---------------------------------------------------------
|
11645
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11646
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11647
|
+
------------------------------------------------------------
|
11648
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
11649
|
+
------------------------------------------------------------
|
11650
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11651
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11652
|
+
----------------------------------------------------
|
11653
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
11654
|
+
----------------------------------------------------
|
11655
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11656
|
+
[1m[36m (3.4ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
11657
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11658
|
+
[1m[36m (0.9ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
11659
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11660
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
11661
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11662
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
11663
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11664
|
+
----------------------------------------------------------------
|
11665
|
+
LocalFileRecordTest: test_should_delete_using_delete_attr_method
|
11666
|
+
----------------------------------------------------------------
|
11667
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11668
|
+
[1m[35mSQL (2.5ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:30:44 UTC +00:00], ["file", "13898790447286320.txt"], ["updated_at", Thu, 16 Jan 2014 13:30:44 UTC +00:00]]
|
11669
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11670
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11671
|
+
[1m[36mSQL (1.0ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", nil], ["updated_at", Thu, 16 Jan 2014 13:30:44 UTC +00:00]]
|
11672
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11673
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
11674
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11675
|
+
-------------------------------------------------------------------------
|
11676
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
11677
|
+
-------------------------------------------------------------------------
|
11678
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11679
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:30:44 UTC +00:00], ["file", "13898790447448762.txt"], ["updated_at", Thu, 16 Jan 2014 13:30:44 UTC +00:00]]
|
11680
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11681
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11682
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
11683
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11684
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
11685
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11686
|
+
-------------------------------------------------------------------------
|
11687
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
11688
|
+
-------------------------------------------------------------------------
|
11689
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11690
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11691
|
+
-------------------------------------------------------------------
|
11692
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
11693
|
+
-------------------------------------------------------------------
|
11694
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11695
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11696
|
+
---------------------------------------------------------------------------
|
11697
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
11698
|
+
---------------------------------------------------------------------------
|
11699
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11700
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11701
|
+
----------------------------------------------
|
11702
|
+
LocalGenerateTest: test_should_generate_preset
|
11703
|
+
----------------------------------------------
|
11704
|
+
Started GET "/uploads/images/small/13898790447572120.jpg" for 127.0.0.1 at 2014-01-16 11:30:44 -0200
|
11705
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
11706
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898790447572120"}
|
11707
|
+
Redirected to http://www.example.com/uploads/images/small/13898790447572120.jpg
|
11708
|
+
Completed 302 Found in 65ms (ActiveRecord: 0.0ms)
|
11709
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11710
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11711
|
+
---------------------------------------------------------------------
|
11712
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
11713
|
+
---------------------------------------------------------------------
|
11714
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11715
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:30:45 UTC +00:00], ["image", "13898790449677188.jpg"], ["updated_at", Thu, 16 Jan 2014 13:30:45 UTC +00:00]]
|
11716
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11717
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11718
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
11719
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11720
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
11721
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11722
|
+
---------------------------------------------------------------
|
11723
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
11724
|
+
---------------------------------------------------------------
|
11725
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11726
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11727
|
+
--------------------------------------------------------------------
|
11728
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
11729
|
+
--------------------------------------------------------------------
|
11730
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11731
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11732
|
+
---------------------------------------------------------------------------------------------
|
11733
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
11734
|
+
---------------------------------------------------------------------------------------------
|
11735
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11736
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:30:45 UTC +00:00], ["file", "13898790454479260.jpg"], ["updated_at", Thu, 16 Jan 2014 13:30:45 UTC +00:00]]
|
11737
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11738
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11739
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13898790454514480.txt"], ["updated_at", Thu, 16 Jan 2014 13:30:45 UTC +00:00]]
|
11740
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11741
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11742
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
11743
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11744
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
11745
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11746
|
+
-----------------------------------------------------------------------------------
|
11747
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
11748
|
+
-----------------------------------------------------------------------------------
|
11749
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11750
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:30:45 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:30:45 UTC +00:00]]
|
11751
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11752
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11753
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
11754
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11755
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11756
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:30:45 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:30:45 UTC +00:00]]
|
11757
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11758
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11759
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
11760
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11761
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
11762
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11763
|
+
-------------------------------------------------------------------
|
11764
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
11765
|
+
-------------------------------------------------------------------
|
11766
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11767
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11768
|
+
---------------------------------------------------------
|
11769
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
11770
|
+
---------------------------------------------------------
|
11771
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11772
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11773
|
+
------------------------------------------------------------
|
11774
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
11775
|
+
------------------------------------------------------------
|
11776
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11777
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11778
|
+
----------------------------------------------------
|
11779
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
11780
|
+
----------------------------------------------------
|
11781
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11782
|
+
[1m[36m (3.0ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
11783
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11784
|
+
[1m[36m (0.9ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
11785
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11786
|
+
[1m[36m (0.8ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
11787
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11788
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
11789
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11790
|
+
--------------------------------------------------------------------------
|
11791
|
+
LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
|
11792
|
+
--------------------------------------------------------------------------
|
11793
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11794
|
+
[1m[35mSQL (2.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:34:56 UTC +00:00], ["file", "13898792967735580.txt"], ["updated_at", Thu, 16 Jan 2014 13:34:56 UTC +00:00]]
|
11795
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11796
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11797
|
+
[1m[36mSQL (1.1ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", nil], ["updated_at", Thu, 16 Jan 2014 13:34:56 UTC +00:00]]
|
11798
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11799
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
11800
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11801
|
+
-------------------------------------------------------------------------
|
11802
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
11803
|
+
-------------------------------------------------------------------------
|
11804
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11805
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:34:56 UTC +00:00], ["file", "13898792967899662.txt"], ["updated_at", Thu, 16 Jan 2014 13:34:56 UTC +00:00]]
|
11806
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11807
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11808
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
11809
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11810
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
11811
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11812
|
+
-------------------------------------------------------------------------
|
11813
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
11814
|
+
-------------------------------------------------------------------------
|
11815
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11816
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11817
|
+
-------------------------------------------------------------------
|
11818
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
11819
|
+
-------------------------------------------------------------------
|
11820
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11821
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11822
|
+
---------------------------------------------------------------------------
|
11823
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
11824
|
+
---------------------------------------------------------------------------
|
11825
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
11826
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11827
|
+
----------------------------------------------
|
11828
|
+
LocalGenerateTest: test_should_generate_preset
|
11829
|
+
----------------------------------------------
|
11830
|
+
Started GET "/uploads/images/small/13898792968022148.jpg" for 127.0.0.1 at 2014-01-16 11:34:56 -0200
|
11831
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
11832
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898792968022148"}
|
11833
|
+
Redirected to http://www.example.com/uploads/images/small/13898792968022148.jpg
|
11834
|
+
Completed 302 Found in 65ms (ActiveRecord: 0.0ms)
|
11835
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11836
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11837
|
+
---------------------------------------------------------------------
|
11838
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
11839
|
+
---------------------------------------------------------------------
|
11840
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11841
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:34:57 UTC +00:00], ["image", "13898792970147462.jpg"], ["updated_at", Thu, 16 Jan 2014 13:34:57 UTC +00:00]]
|
11842
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11843
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11844
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
11845
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11846
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
11847
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11848
|
+
---------------------------------------------------------------
|
11849
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
11850
|
+
---------------------------------------------------------------
|
11851
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11852
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11853
|
+
--------------------------------------------------------------------
|
11854
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
11855
|
+
--------------------------------------------------------------------
|
11856
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11857
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11858
|
+
---------------------------------------------------------------------------------------------
|
11859
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
11860
|
+
---------------------------------------------------------------------------------------------
|
11861
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11862
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:34:57 UTC +00:00], ["file", "13898792974987760.jpg"], ["updated_at", Thu, 16 Jan 2014 13:34:57 UTC +00:00]]
|
11863
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11864
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11865
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13898792975021340.txt"], ["updated_at", Thu, 16 Jan 2014 13:34:57 UTC +00:00]]
|
11866
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11867
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11868
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
11869
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11870
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
11871
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11872
|
+
-----------------------------------------------------------------------------------
|
11873
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
11874
|
+
-----------------------------------------------------------------------------------
|
11875
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11876
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:34:57 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:34:57 UTC +00:00]]
|
11877
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11878
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11879
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
11880
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11881
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
11882
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:34:57 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:34:57 UTC +00:00]]
|
11883
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11884
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11885
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
11886
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11887
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
11888
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11889
|
+
-------------------------------------------------------------------
|
11890
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
11891
|
+
-------------------------------------------------------------------
|
11892
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11893
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11894
|
+
---------------------------------------------------------
|
11895
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
11896
|
+
---------------------------------------------------------
|
11897
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11898
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11899
|
+
------------------------------------------------------------
|
11900
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
11901
|
+
------------------------------------------------------------
|
11902
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11903
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11904
|
+
----------------------------------------------------
|
11905
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
11906
|
+
----------------------------------------------------
|
11907
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11908
|
+
[1m[36m (2.7ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
11909
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11910
|
+
[1m[36m (1.2ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
11911
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11912
|
+
[1m[36m (1.1ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
11913
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
11914
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
11915
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11916
|
+
--------------------------------------------------------------------------
|
11917
|
+
LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
|
11918
|
+
--------------------------------------------------------------------------
|
11919
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11920
|
+
[1m[35mSQL (2.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:35:55 UTC +00:00], ["file", "13898793550563322.txt"], ["updated_at", Thu, 16 Jan 2014 13:35:55 UTC +00:00]]
|
11921
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11922
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11923
|
+
[1m[36mSQL (0.9ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", nil], ["updated_at", Thu, 16 Jan 2014 13:35:55 UTC +00:00]]
|
11924
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11925
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
11926
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11927
|
+
-------------------------------------------------------------------------
|
11928
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
11929
|
+
-------------------------------------------------------------------------
|
11930
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11931
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:35:55 UTC +00:00], ["file", "13898793550716460.txt"], ["updated_at", Thu, 16 Jan 2014 13:35:55 UTC +00:00]]
|
11932
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11933
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11934
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
11935
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11936
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
11937
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11938
|
+
-------------------------------------------------------------------------
|
11939
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
11940
|
+
-------------------------------------------------------------------------
|
11941
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11942
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11943
|
+
-------------------------------------------------------------------
|
11944
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
11945
|
+
-------------------------------------------------------------------
|
11946
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11947
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11948
|
+
---------------------------------------------------------------------------
|
11949
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
11950
|
+
---------------------------------------------------------------------------
|
11951
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11952
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11953
|
+
----------------------------------------------
|
11954
|
+
LocalGenerateTest: test_should_generate_preset
|
11955
|
+
----------------------------------------------
|
11956
|
+
Started GET "/uploads/images/small/13898793550887890.jpg" for 127.0.0.1 at 2014-01-16 11:35:55 -0200
|
11957
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
11958
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898793550887890"}
|
11959
|
+
Redirected to http://www.example.com/uploads/images/small/13898793550887890.jpg
|
11960
|
+
Completed 302 Found in 66ms (ActiveRecord: 0.0ms)
|
11961
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11962
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11963
|
+
---------------------------------------------------------------------
|
11964
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
11965
|
+
---------------------------------------------------------------------
|
11966
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11967
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:35:55 UTC +00:00], ["image", "13898793552999820.jpg"], ["updated_at", Thu, 16 Jan 2014 13:35:55 UTC +00:00]]
|
11968
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11969
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11970
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
11971
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
11972
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
11973
|
+
[1m[35m (0.1ms)[0m begin transaction
|
11974
|
+
---------------------------------------------------------------
|
11975
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
11976
|
+
---------------------------------------------------------------
|
11977
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11978
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11979
|
+
--------------------------------------------------------------------
|
11980
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
11981
|
+
--------------------------------------------------------------------
|
11982
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
11983
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11984
|
+
---------------------------------------------------------------------------------------------
|
11985
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
11986
|
+
---------------------------------------------------------------------------------------------
|
11987
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
11988
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 13:35:55 UTC +00:00], ["file", "13898793557876890.jpg"], ["updated_at", Thu, 16 Jan 2014 13:35:55 UTC +00:00]]
|
11989
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11990
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
11991
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13898793557912152.txt"], ["updated_at", Thu, 16 Jan 2014 13:35:55 UTC +00:00]]
|
11992
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
11993
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
11994
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
11995
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
11996
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
11997
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
11998
|
+
-----------------------------------------------------------------------------------
|
11999
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
12000
|
+
-----------------------------------------------------------------------------------
|
12001
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12002
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:35:55 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:35:55 UTC +00:00]]
|
12003
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12004
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12005
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
12006
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12007
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12008
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 13:35:55 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 13:35:55 UTC +00:00]]
|
12009
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12010
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12011
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
12012
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12013
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
12014
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12015
|
+
-------------------------------------------------------------------
|
12016
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
12017
|
+
-------------------------------------------------------------------
|
12018
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12019
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12020
|
+
---------------------------------------------------------
|
12021
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
12022
|
+
---------------------------------------------------------
|
12023
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12024
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12025
|
+
------------------------------------------------------------
|
12026
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
12027
|
+
------------------------------------------------------------
|
12028
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12029
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12030
|
+
----------------------------------------------------
|
12031
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
12032
|
+
----------------------------------------------------
|
12033
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12034
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12035
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
12036
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12037
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
12038
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
12039
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
12040
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130820222534')[0m
|
12041
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12042
|
+
--------------------------------------------------------------------------
|
12043
|
+
LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
|
12044
|
+
--------------------------------------------------------------------------
|
12045
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12046
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12047
|
+
-------------------------------------------------------------------------
|
12048
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
12049
|
+
-------------------------------------------------------------------------
|
12050
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12051
|
+
[1m[35mSQL (2.8ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:20:31 UTC +00:00], ["file", #<Rack::Test::UploadedFile:0x007fab5458e498 @content_type="text/plain", @original_filename="file.txt", @tempfile=#<Tempfile:/var/folders/1p/2k6rgdc14v10td4l5kcng7_80000gs/T/file.txt20140116-3156-yw1dbf>>], ["updated_at", Thu, 16 Jan 2014 14:20:31 UTC +00:00]]
|
12052
|
+
TypeError: can't cast Rack::Test::UploadedFile to string: INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)
|
12053
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
12054
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12055
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12056
|
+
-------------------------------------------------------------------------
|
12057
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
12058
|
+
-------------------------------------------------------------------------
|
12059
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12060
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12061
|
+
-------------------------------------------------------------------
|
12062
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
12063
|
+
-------------------------------------------------------------------
|
12064
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12065
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12066
|
+
---------------------------------------------------------------------------
|
12067
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
12068
|
+
---------------------------------------------------------------------------
|
12069
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12070
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12071
|
+
----------------------------------------------
|
12072
|
+
LocalGenerateTest: test_should_generate_preset
|
12073
|
+
----------------------------------------------
|
12074
|
+
Started GET "/uploads/images/small/13898820312171530.jpg" for 127.0.0.1 at 2014-01-16 12:20:31 -0200
|
12075
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
12076
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898820312171530"}
|
12077
|
+
Redirected to http://www.example.com/uploads/images/small/13898820312171530.jpg
|
12078
|
+
Completed 302 Found in 64ms (ActiveRecord: 0.0ms)
|
12079
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
12080
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12081
|
+
---------------------------------------------------------------------
|
12082
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
12083
|
+
---------------------------------------------------------------------
|
12084
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12085
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12086
|
+
---------------------------------------------------------------
|
12087
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
12088
|
+
---------------------------------------------------------------
|
12089
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12090
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12091
|
+
--------------------------------------------------------------------
|
12092
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
12093
|
+
--------------------------------------------------------------------
|
12094
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12095
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12096
|
+
---------------------------------------------------------------------------------------------
|
12097
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
12098
|
+
---------------------------------------------------------------------------------------------
|
12099
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12100
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 16 Jan 2014 14:20:31 UTC +00:00], ["file", #<Rack::Test::UploadedFile:0x007fab54a10660 @content_type="image/jpeg", @original_filename="image.jpg", @tempfile=#<Tempfile:/var/folders/1p/2k6rgdc14v10td4l5kcng7_80000gs/T/image.jpg20140116-3156-1jnl2kg>>], ["updated_at", Thu, 16 Jan 2014 14:20:31 UTC +00:00]]
|
12101
|
+
TypeError: can't cast Rack::Test::UploadedFile to string: INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)
|
12102
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
12103
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
12104
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12105
|
+
-----------------------------------------------------------------------------------
|
12106
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
12107
|
+
-----------------------------------------------------------------------------------
|
12108
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12109
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 16 Jan 2014 14:20:31 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 14:20:31 UTC +00:00]]
|
12110
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12111
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12112
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12113
|
+
-------------------------------------------------------------------
|
12114
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
12115
|
+
-------------------------------------------------------------------
|
12116
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12117
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12118
|
+
---------------------------------------------------------
|
12119
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
12120
|
+
---------------------------------------------------------
|
12121
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12122
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12123
|
+
------------------------------------------------------------
|
12124
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
12125
|
+
------------------------------------------------------------
|
12126
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12127
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12128
|
+
----------------------------------------------------
|
12129
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
12130
|
+
----------------------------------------------------
|
12131
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12132
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12133
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
12134
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12135
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
12136
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
12137
|
+
[1m[35m (0.0ms)[0m SELECT version FROM "schema_migrations"
|
12138
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130820222534')[0m
|
12139
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12140
|
+
--------------------------------------------------------------------------
|
12141
|
+
LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
|
12142
|
+
--------------------------------------------------------------------------
|
12143
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12144
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12145
|
+
-------------------------------------------------------------------------
|
12146
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
12147
|
+
-------------------------------------------------------------------------
|
12148
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12149
|
+
[1m[35mSQL (2.6ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:21:09 UTC +00:00], ["file", #<Rack::Test::UploadedFile:0x007fa479bda3b0 @content_type="text/plain", @original_filename="file.txt", @tempfile=#<Tempfile:/var/folders/1p/2k6rgdc14v10td4l5kcng7_80000gs/T/file.txt20140116-3210-shf79m>>], ["updated_at", Thu, 16 Jan 2014 14:21:09 UTC +00:00]]
|
12150
|
+
TypeError: can't cast Rack::Test::UploadedFile to string: INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)
|
12151
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
12152
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12153
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12154
|
+
-------------------------------------------------------------------------
|
12155
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
12156
|
+
-------------------------------------------------------------------------
|
12157
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12158
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12159
|
+
-------------------------------------------------------------------
|
12160
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
12161
|
+
-------------------------------------------------------------------
|
12162
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12163
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12164
|
+
---------------------------------------------------------------------------
|
12165
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
12166
|
+
---------------------------------------------------------------------------
|
12167
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12168
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12169
|
+
----------------------------------------------
|
12170
|
+
LocalGenerateTest: test_should_generate_preset
|
12171
|
+
----------------------------------------------
|
12172
|
+
Started GET "/uploads/images/small/13898820693259790.jpg" for 127.0.0.1 at 2014-01-16 12:21:09 -0200
|
12173
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
12174
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898820693259790"}
|
12175
|
+
Redirected to http://www.example.com/uploads/images/small/13898820693259790.jpg
|
12176
|
+
Completed 302 Found in 68ms (ActiveRecord: 0.0ms)
|
12177
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12178
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12179
|
+
---------------------------------------------------------------------
|
12180
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
12181
|
+
---------------------------------------------------------------------
|
12182
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12183
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12184
|
+
---------------------------------------------------------------
|
12185
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
12186
|
+
---------------------------------------------------------------
|
12187
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12188
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12189
|
+
--------------------------------------------------------------------
|
12190
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
12191
|
+
--------------------------------------------------------------------
|
12192
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
12193
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12194
|
+
---------------------------------------------------------------------------------------------
|
12195
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
12196
|
+
---------------------------------------------------------------------------------------------
|
12197
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12198
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 16 Jan 2014 14:21:09 UTC +00:00], ["file", #<Rack::Test::UploadedFile:0x007fa47b478048 @content_type="image/jpeg", @original_filename="image.jpg", @tempfile=#<Tempfile:/var/folders/1p/2k6rgdc14v10td4l5kcng7_80000gs/T/image.jpg20140116-3210-q3voaf>>], ["updated_at", Thu, 16 Jan 2014 14:21:09 UTC +00:00]]
|
12199
|
+
TypeError: can't cast Rack::Test::UploadedFile to string: INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)
|
12200
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
12201
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12202
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12203
|
+
-----------------------------------------------------------------------------------
|
12204
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
12205
|
+
-----------------------------------------------------------------------------------
|
12206
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12207
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 16 Jan 2014 14:21:09 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 14:21:09 UTC +00:00]]
|
12208
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12209
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12210
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12211
|
+
-------------------------------------------------------------------
|
12212
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
12213
|
+
-------------------------------------------------------------------
|
12214
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12215
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12216
|
+
---------------------------------------------------------
|
12217
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
12218
|
+
---------------------------------------------------------
|
12219
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12220
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12221
|
+
------------------------------------------------------------
|
12222
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
12223
|
+
------------------------------------------------------------
|
12224
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12225
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12226
|
+
----------------------------------------------------
|
12227
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
12228
|
+
----------------------------------------------------
|
12229
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12230
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12231
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
12232
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12233
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
12234
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
12235
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
12236
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130820222534')[0m
|
12237
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12238
|
+
--------------------------------------------------------------------------
|
12239
|
+
LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
|
12240
|
+
--------------------------------------------------------------------------
|
12241
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12242
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12243
|
+
-------------------------------------------------------------------------
|
12244
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
12245
|
+
-------------------------------------------------------------------------
|
12246
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12247
|
+
[1m[35mSQL (2.0ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:24:45 UTC +00:00], ["file", #<Rack::Test::UploadedFile:0x007fd14caee870 @content_type="text/plain", @original_filename="file.txt", @tempfile=#<Tempfile:/var/folders/1p/2k6rgdc14v10td4l5kcng7_80000gs/T/file.txt20140116-3353-6tbifq>>], ["updated_at", Thu, 16 Jan 2014 14:24:45 UTC +00:00]]
|
12248
|
+
TypeError: can't cast Rack::Test::UploadedFile to string: INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)
|
12249
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
12250
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12251
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12252
|
+
-------------------------------------------------------------------------
|
12253
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
12254
|
+
-------------------------------------------------------------------------
|
12255
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12256
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12257
|
+
-------------------------------------------------------------------
|
12258
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
12259
|
+
-------------------------------------------------------------------
|
12260
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12261
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12262
|
+
---------------------------------------------------------------------------
|
12263
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
12264
|
+
---------------------------------------------------------------------------
|
12265
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12266
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12267
|
+
----------------------------------------------
|
12268
|
+
LocalGenerateTest: test_should_generate_preset
|
12269
|
+
----------------------------------------------
|
12270
|
+
Started GET "/uploads/images/small/13898822853992750.jpg" for 127.0.0.1 at 2014-01-16 12:24:45 -0200
|
12271
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
12272
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898822853992750"}
|
12273
|
+
Redirected to http://www.example.com/uploads/images/small/13898822853992750.jpg
|
12274
|
+
Completed 302 Found in 64ms (ActiveRecord: 0.0ms)
|
12275
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12276
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12277
|
+
---------------------------------------------------------------------
|
12278
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
12279
|
+
---------------------------------------------------------------------
|
12280
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12281
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12282
|
+
---------------------------------------------------------------
|
12283
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
12284
|
+
---------------------------------------------------------------
|
12285
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12286
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12287
|
+
--------------------------------------------------------------------
|
12288
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
12289
|
+
--------------------------------------------------------------------
|
12290
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12291
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12292
|
+
---------------------------------------------------------------------------------------------
|
12293
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
12294
|
+
---------------------------------------------------------------------------------------------
|
12295
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12296
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 16 Jan 2014 14:24:45 UTC +00:00], ["file", #<Rack::Test::UploadedFile:0x007fd14dd3c1a8 @content_type="image/jpeg", @original_filename="image.jpg", @tempfile=#<Tempfile:/var/folders/1p/2k6rgdc14v10td4l5kcng7_80000gs/T/image.jpg20140116-3353-sw1xwg>>], ["updated_at", Thu, 16 Jan 2014 14:24:45 UTC +00:00]]
|
12297
|
+
TypeError: can't cast Rack::Test::UploadedFile to string: INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)
|
12298
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
12299
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12300
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12301
|
+
-----------------------------------------------------------------------------------
|
12302
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
12303
|
+
-----------------------------------------------------------------------------------
|
12304
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12305
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 16 Jan 2014 14:24:45 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 14:24:45 UTC +00:00]]
|
12306
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12307
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12308
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12309
|
+
-------------------------------------------------------------------
|
12310
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
12311
|
+
-------------------------------------------------------------------
|
12312
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12313
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12314
|
+
---------------------------------------------------------
|
12315
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
12316
|
+
---------------------------------------------------------
|
12317
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12318
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12319
|
+
------------------------------------------------------------
|
12320
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
12321
|
+
------------------------------------------------------------
|
12322
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12323
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12324
|
+
----------------------------------------------------
|
12325
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
12326
|
+
----------------------------------------------------
|
12327
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12328
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12329
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
12330
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12331
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
12332
|
+
[1m[36m (0.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
12333
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
12334
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130820222534')[0m
|
12335
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12336
|
+
--------------------------------------------------------------------------
|
12337
|
+
LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
|
12338
|
+
--------------------------------------------------------------------------
|
12339
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12340
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12341
|
+
-------------------------------------------------------------------------
|
12342
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
12343
|
+
-------------------------------------------------------------------------
|
12344
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12345
|
+
[1m[35mSQL (2.2ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:26:51 UTC +00:00], ["file", #<Rack::Test::UploadedFile:0x007fe21b45e688 @content_type="text/plain", @original_filename="file.txt", @tempfile=#<Tempfile:/var/folders/1p/2k6rgdc14v10td4l5kcng7_80000gs/T/file.txt20140116-3399-11pb9d7>>], ["updated_at", Thu, 16 Jan 2014 14:26:51 UTC +00:00]]
|
12346
|
+
TypeError: can't cast Rack::Test::UploadedFile to string: INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)
|
12347
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
12348
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12349
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12350
|
+
-------------------------------------------------------------------------
|
12351
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
12352
|
+
-------------------------------------------------------------------------
|
12353
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12354
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12355
|
+
-------------------------------------------------------------------
|
12356
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
12357
|
+
-------------------------------------------------------------------
|
12358
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12359
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12360
|
+
---------------------------------------------------------------------------
|
12361
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
12362
|
+
---------------------------------------------------------------------------
|
12363
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12364
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12365
|
+
----------------------------------------------
|
12366
|
+
LocalGenerateTest: test_should_generate_preset
|
12367
|
+
----------------------------------------------
|
12368
|
+
Started GET "/uploads/images/small/13898824114042460.jpg" for 127.0.0.1 at 2014-01-16 12:26:51 -0200
|
12369
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
12370
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898824114042460"}
|
12371
|
+
Redirected to http://www.example.com/uploads/images/small/13898824114042460.jpg
|
12372
|
+
Completed 302 Found in 68ms (ActiveRecord: 0.0ms)
|
12373
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12374
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12375
|
+
---------------------------------------------------------------------
|
12376
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
12377
|
+
---------------------------------------------------------------------
|
12378
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12379
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12380
|
+
---------------------------------------------------------------
|
12381
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
12382
|
+
---------------------------------------------------------------
|
12383
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12384
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12385
|
+
--------------------------------------------------------------------
|
12386
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
12387
|
+
--------------------------------------------------------------------
|
12388
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12389
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12390
|
+
---------------------------------------------------------------------------------------------
|
12391
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
12392
|
+
---------------------------------------------------------------------------------------------
|
12393
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12394
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 16 Jan 2014 14:26:51 UTC +00:00], ["file", #<Rack::Test::UploadedFile:0x007fe21d84c090 @content_type="image/jpeg", @original_filename="image.jpg", @tempfile=#<Tempfile:/var/folders/1p/2k6rgdc14v10td4l5kcng7_80000gs/T/image.jpg20140116-3399-lm8c2y>>], ["updated_at", Thu, 16 Jan 2014 14:26:51 UTC +00:00]]
|
12395
|
+
TypeError: can't cast Rack::Test::UploadedFile to string: INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?)
|
12396
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
12397
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12398
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12399
|
+
-----------------------------------------------------------------------------------
|
12400
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
12401
|
+
-----------------------------------------------------------------------------------
|
12402
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12403
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 16 Jan 2014 14:26:51 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 14:26:51 UTC +00:00]]
|
12404
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12405
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12406
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12407
|
+
-------------------------------------------------------------------
|
12408
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
12409
|
+
-------------------------------------------------------------------
|
12410
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12411
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12412
|
+
---------------------------------------------------------
|
12413
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
12414
|
+
---------------------------------------------------------
|
12415
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12416
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12417
|
+
------------------------------------------------------------
|
12418
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
12419
|
+
------------------------------------------------------------
|
12420
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12421
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12422
|
+
----------------------------------------------------
|
12423
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
12424
|
+
----------------------------------------------------
|
12425
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12426
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12427
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
12428
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12429
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
12430
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
12431
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
12432
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130820222534')[0m
|
12433
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12434
|
+
--------------------------------------------------------------------------
|
12435
|
+
LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
|
12436
|
+
--------------------------------------------------------------------------
|
12437
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12438
|
+
[1m[35mSQL (2.2ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:31:08 UTC +00:00], ["file", "13898826682878662.txt"], ["updated_at", Thu, 16 Jan 2014 14:31:08 UTC +00:00]]
|
12439
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12440
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12441
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", nil], ["updated_at", Thu, 16 Jan 2014 14:31:08 UTC +00:00]]
|
12442
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12443
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12444
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12445
|
+
-------------------------------------------------------------------------
|
12446
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
12447
|
+
-------------------------------------------------------------------------
|
12448
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12449
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:31:08 UTC +00:00], ["file", "13898826683018740.txt"], ["updated_at", Thu, 16 Jan 2014 14:31:08 UTC +00:00]]
|
12450
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12451
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12452
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
12453
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12454
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
12455
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12456
|
+
-------------------------------------------------------------------------
|
12457
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
12458
|
+
-------------------------------------------------------------------------
|
12459
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12460
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12461
|
+
-------------------------------------------------------------------
|
12462
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
12463
|
+
-------------------------------------------------------------------
|
12464
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12465
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12466
|
+
---------------------------------------------------------------------------
|
12467
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
12468
|
+
---------------------------------------------------------------------------
|
12469
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
12470
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12471
|
+
----------------------------------------------
|
12472
|
+
LocalGenerateTest: test_should_generate_preset
|
12473
|
+
----------------------------------------------
|
12474
|
+
Started GET "/uploads/images/small/13898826683136070.jpg" for 127.0.0.1 at 2014-01-16 12:31:08 -0200
|
12475
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
12476
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898826683136070"}
|
12477
|
+
Redirected to http://www.example.com/uploads/images/small/13898826683136070.jpg
|
12478
|
+
Completed 302 Found in 67ms (ActiveRecord: 0.0ms)
|
12479
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12480
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12481
|
+
---------------------------------------------------------------------
|
12482
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
12483
|
+
---------------------------------------------------------------------
|
12484
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12485
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:31:08 UTC +00:00], ["image", "13898826685230830.jpg"], ["updated_at", Thu, 16 Jan 2014 14:31:08 UTC +00:00]]
|
12486
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12487
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12488
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
12489
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12490
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12491
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12492
|
+
---------------------------------------------------------------
|
12493
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
12494
|
+
---------------------------------------------------------------
|
12495
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12496
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12497
|
+
--------------------------------------------------------------------
|
12498
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
12499
|
+
--------------------------------------------------------------------
|
12500
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12501
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12502
|
+
---------------------------------------------------------------------------------------------
|
12503
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
12504
|
+
---------------------------------------------------------------------------------------------
|
12505
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12506
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:31:08 UTC +00:00], ["file", "13898826689943092.jpg"], ["updated_at", Thu, 16 Jan 2014 14:31:08 UTC +00:00]]
|
12507
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12508
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12509
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13898826689977560.txt"], ["updated_at", Thu, 16 Jan 2014 14:31:08 UTC +00:00]]
|
12510
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12511
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12512
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
12513
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12514
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12515
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12516
|
+
-----------------------------------------------------------------------------------
|
12517
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
12518
|
+
-----------------------------------------------------------------------------------
|
12519
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12520
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 14:31:09 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 14:31:09 UTC +00:00]]
|
12521
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12522
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12523
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
12524
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12525
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12526
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 14:31:09 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 14:31:09 UTC +00:00]]
|
12527
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12528
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12529
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
12530
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12531
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12532
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12533
|
+
-------------------------------------------------------------------
|
12534
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
12535
|
+
-------------------------------------------------------------------
|
12536
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12537
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12538
|
+
---------------------------------------------------------
|
12539
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
12540
|
+
---------------------------------------------------------
|
12541
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12542
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12543
|
+
------------------------------------------------------------
|
12544
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
12545
|
+
------------------------------------------------------------
|
12546
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12547
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12548
|
+
----------------------------------------------------
|
12549
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
12550
|
+
----------------------------------------------------
|
12551
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12552
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12553
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
12554
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12555
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
12556
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
12557
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
12558
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130820222534')[0m
|
12559
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12560
|
+
--------------------------------------------------------------------------
|
12561
|
+
LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
|
12562
|
+
--------------------------------------------------------------------------
|
12563
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12564
|
+
[1m[35mSQL (2.0ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:31:42 UTC +00:00], ["file", "13898827021458790.txt"], ["updated_at", Thu, 16 Jan 2014 14:31:42 UTC +00:00]]
|
12565
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12566
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12567
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", nil], ["updated_at", Thu, 16 Jan 2014 14:31:42 UTC +00:00]]
|
12568
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12569
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12570
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12571
|
+
-------------------------------------------------------------------------
|
12572
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
12573
|
+
-------------------------------------------------------------------------
|
12574
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12575
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:31:42 UTC +00:00], ["file", "13898827021588280.txt"], ["updated_at", Thu, 16 Jan 2014 14:31:42 UTC +00:00]]
|
12576
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12577
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12578
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
12579
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12580
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
12581
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12582
|
+
-------------------------------------------------------------------------
|
12583
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
12584
|
+
-------------------------------------------------------------------------
|
12585
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12586
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12587
|
+
-------------------------------------------------------------------
|
12588
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
12589
|
+
-------------------------------------------------------------------
|
12590
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12591
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12592
|
+
---------------------------------------------------------------------------
|
12593
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
12594
|
+
---------------------------------------------------------------------------
|
12595
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
12596
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12597
|
+
----------------------------------------------
|
12598
|
+
LocalGenerateTest: test_should_generate_preset
|
12599
|
+
----------------------------------------------
|
12600
|
+
Started GET "/uploads/images/small/13898827021703980.jpg" for 127.0.0.1 at 2014-01-16 12:31:42 -0200
|
12601
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
12602
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898827021703980"}
|
12603
|
+
Redirected to http://www.example.com/uploads/images/small/13898827021703980.jpg
|
12604
|
+
Completed 302 Found in 68ms (ActiveRecord: 0.0ms)
|
12605
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12606
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12607
|
+
---------------------------------------------------------------------
|
12608
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
12609
|
+
---------------------------------------------------------------------
|
12610
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12611
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:31:42 UTC +00:00], ["image", "13898827023825350.jpg"], ["updated_at", Thu, 16 Jan 2014 14:31:42 UTC +00:00]]
|
12612
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12613
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12614
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
12615
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12616
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12617
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12618
|
+
---------------------------------------------------------------
|
12619
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
12620
|
+
---------------------------------------------------------------
|
12621
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12622
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12623
|
+
--------------------------------------------------------------------
|
12624
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
12625
|
+
--------------------------------------------------------------------
|
12626
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12627
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12628
|
+
---------------------------------------------------------------------------------------------
|
12629
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
12630
|
+
---------------------------------------------------------------------------------------------
|
12631
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12632
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:31:42 UTC +00:00], ["file", "13898827028519612.jpg"], ["updated_at", Thu, 16 Jan 2014 14:31:42 UTC +00:00]]
|
12633
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12634
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12635
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13898827028552280.txt"], ["updated_at", Thu, 16 Jan 2014 14:31:42 UTC +00:00]]
|
12636
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
12637
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12638
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
12639
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12640
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12641
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12642
|
+
-----------------------------------------------------------------------------------
|
12643
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
12644
|
+
-----------------------------------------------------------------------------------
|
12645
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12646
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 14:31:42 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 14:31:42 UTC +00:00]]
|
12647
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12648
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12649
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
12650
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12651
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12652
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 14:31:42 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 14:31:42 UTC +00:00]]
|
12653
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12654
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12655
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
12656
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12657
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12658
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12659
|
+
-------------------------------------------------------------------
|
12660
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
12661
|
+
-------------------------------------------------------------------
|
12662
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12663
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12664
|
+
---------------------------------------------------------
|
12665
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
12666
|
+
---------------------------------------------------------
|
12667
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12668
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12669
|
+
------------------------------------------------------------
|
12670
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
12671
|
+
------------------------------------------------------------
|
12672
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12673
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12674
|
+
----------------------------------------------------
|
12675
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
12676
|
+
----------------------------------------------------
|
12677
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12678
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12679
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
12680
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12681
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
12682
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
12683
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
12684
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130820222534')[0m
|
12685
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12686
|
+
--------------------------------------------------------------------------
|
12687
|
+
LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
|
12688
|
+
--------------------------------------------------------------------------
|
12689
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12690
|
+
[1m[35mSQL (2.2ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:33:52 UTC +00:00], ["file", "13898828324028170.txt"], ["updated_at", Thu, 16 Jan 2014 14:33:52 UTC +00:00]]
|
12691
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12692
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12693
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", nil], ["updated_at", Thu, 16 Jan 2014 14:33:52 UTC +00:00]]
|
12694
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12695
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12696
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12697
|
+
-------------------------------------------------------------------------
|
12698
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
12699
|
+
-------------------------------------------------------------------------
|
12700
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12701
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:33:52 UTC +00:00], ["file", "13898828324177510.txt"], ["updated_at", Thu, 16 Jan 2014 14:33:52 UTC +00:00]]
|
12702
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12703
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12704
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
12705
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12706
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
12707
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12708
|
+
-------------------------------------------------------------------------
|
12709
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
12710
|
+
-------------------------------------------------------------------------
|
12711
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12712
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12713
|
+
-------------------------------------------------------------------
|
12714
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
12715
|
+
-------------------------------------------------------------------
|
12716
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12717
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12718
|
+
---------------------------------------------------------------------------
|
12719
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
12720
|
+
---------------------------------------------------------------------------
|
12721
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
12722
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12723
|
+
----------------------------------------------
|
12724
|
+
LocalGenerateTest: test_should_generate_preset
|
12725
|
+
----------------------------------------------
|
12726
|
+
Started GET "/uploads/images/small/13898828324295558.jpg" for 127.0.0.1 at 2014-01-16 12:33:52 -0200
|
12727
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
12728
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898828324295558"}
|
12729
|
+
Redirected to http://www.example.com/uploads/images/small/13898828324295558.jpg
|
12730
|
+
Completed 302 Found in 65ms (ActiveRecord: 0.0ms)
|
12731
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12732
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12733
|
+
---------------------------------------------------------------------
|
12734
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
12735
|
+
---------------------------------------------------------------------
|
12736
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12737
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:33:52 UTC +00:00], ["image", "13898828326380780.jpg"], ["updated_at", Thu, 16 Jan 2014 14:33:52 UTC +00:00]]
|
12738
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12739
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12740
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
12741
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12742
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12743
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12744
|
+
---------------------------------------------------------------
|
12745
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
12746
|
+
---------------------------------------------------------------
|
12747
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12748
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12749
|
+
--------------------------------------------------------------------
|
12750
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
12751
|
+
--------------------------------------------------------------------
|
12752
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12753
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12754
|
+
---------------------------------------------------------------------------------------------
|
12755
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
12756
|
+
---------------------------------------------------------------------------------------------
|
12757
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12758
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:33:53 UTC +00:00], ["file", "13898828331101100.jpg"], ["updated_at", Thu, 16 Jan 2014 14:33:53 UTC +00:00]]
|
12759
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12760
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12761
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13898828331134290.txt"], ["updated_at", Thu, 16 Jan 2014 14:33:53 UTC +00:00]]
|
12762
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12763
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12764
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
12765
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12766
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12767
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12768
|
+
-----------------------------------------------------------------------------------
|
12769
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
12770
|
+
-----------------------------------------------------------------------------------
|
12771
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12772
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 14:33:53 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 14:33:53 UTC +00:00]]
|
12773
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12774
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12775
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
12776
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12777
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12778
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 14:33:53 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 14:33:53 UTC +00:00]]
|
12779
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12780
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12781
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
12782
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12783
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12784
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12785
|
+
-------------------------------------------------------------------
|
12786
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
12787
|
+
-------------------------------------------------------------------
|
12788
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12789
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12790
|
+
---------------------------------------------------------
|
12791
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
12792
|
+
---------------------------------------------------------
|
12793
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12794
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12795
|
+
------------------------------------------------------------
|
12796
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
12797
|
+
------------------------------------------------------------
|
12798
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12799
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12800
|
+
----------------------------------------------------
|
12801
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
12802
|
+
----------------------------------------------------
|
12803
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12804
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12805
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
12806
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12807
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
12808
|
+
[1m[36m (0.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
12809
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
12810
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130820222534')[0m
|
12811
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12812
|
+
--------------------------------------------------------------------------
|
12813
|
+
LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
|
12814
|
+
--------------------------------------------------------------------------
|
12815
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12816
|
+
[1m[35mSQL (2.9ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:34:25 UTC +00:00], ["file", "13898828655716888.txt"], ["updated_at", Thu, 16 Jan 2014 14:34:25 UTC +00:00]]
|
12817
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12818
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12819
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", nil], ["updated_at", Thu, 16 Jan 2014 14:34:25 UTC +00:00]]
|
12820
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12821
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12822
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12823
|
+
-------------------------------------------------------------------------
|
12824
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
12825
|
+
-------------------------------------------------------------------------
|
12826
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12827
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:34:25 UTC +00:00], ["file", "13898828655931720.txt"], ["updated_at", Thu, 16 Jan 2014 14:34:25 UTC +00:00]]
|
12828
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12829
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12830
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
12831
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12832
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12833
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12834
|
+
-------------------------------------------------------------------------
|
12835
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
12836
|
+
-------------------------------------------------------------------------
|
12837
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
12838
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12839
|
+
-------------------------------------------------------------------
|
12840
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
12841
|
+
-------------------------------------------------------------------
|
12842
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12843
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12844
|
+
---------------------------------------------------------------------------
|
12845
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
12846
|
+
---------------------------------------------------------------------------
|
12847
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12848
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12849
|
+
----------------------------------------------
|
12850
|
+
LocalGenerateTest: test_should_generate_preset
|
12851
|
+
----------------------------------------------
|
12852
|
+
Started GET "/uploads/images/small/13898828656127370.jpg" for 127.0.0.1 at 2014-01-16 12:34:25 -0200
|
12853
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
12854
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898828656127370"}
|
12855
|
+
Redirected to http://www.example.com/uploads/images/small/13898828656127370.jpg
|
12856
|
+
Completed 302 Found in 90ms (ActiveRecord: 0.0ms)
|
12857
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12858
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12859
|
+
---------------------------------------------------------------------
|
12860
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
12861
|
+
---------------------------------------------------------------------
|
12862
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12863
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:34:26 UTC +00:00], ["image", "13898828658842252.jpg"], ["updated_at", Thu, 16 Jan 2014 14:34:26 UTC +00:00]]
|
12864
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12865
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
12866
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
12867
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12868
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12869
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12870
|
+
---------------------------------------------------------------
|
12871
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
12872
|
+
---------------------------------------------------------------
|
12873
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12874
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12875
|
+
--------------------------------------------------------------------
|
12876
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
12877
|
+
--------------------------------------------------------------------
|
12878
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
12879
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12880
|
+
---------------------------------------------------------------------------------------------
|
12881
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
12882
|
+
---------------------------------------------------------------------------------------------
|
12883
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12884
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:34:26 UTC +00:00], ["file", "13898828664024670.jpg"], ["updated_at", Thu, 16 Jan 2014 14:34:26 UTC +00:00]]
|
12885
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12886
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12887
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13898828664057758.txt"], ["updated_at", Thu, 16 Jan 2014 14:34:26 UTC +00:00]]
|
12888
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
12889
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12890
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
12891
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12892
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12893
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12894
|
+
-----------------------------------------------------------------------------------
|
12895
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
12896
|
+
-----------------------------------------------------------------------------------
|
12897
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12898
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 14:34:26 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 14:34:26 UTC +00:00]]
|
12899
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12900
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12901
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
12902
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12903
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12904
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 14:34:26 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 14:34:26 UTC +00:00]]
|
12905
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12906
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12907
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
12908
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12909
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12910
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12911
|
+
-------------------------------------------------------------------
|
12912
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
12913
|
+
-------------------------------------------------------------------
|
12914
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12915
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12916
|
+
---------------------------------------------------------
|
12917
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
12918
|
+
---------------------------------------------------------
|
12919
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12920
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12921
|
+
------------------------------------------------------------
|
12922
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
12923
|
+
------------------------------------------------------------
|
12924
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12925
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12926
|
+
----------------------------------------------------
|
12927
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
12928
|
+
----------------------------------------------------
|
12929
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
12930
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12931
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
12932
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12933
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
12934
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
12935
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
12936
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130820222534')[0m
|
12937
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12938
|
+
--------------------------------------------------------------------------
|
12939
|
+
LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
|
12940
|
+
--------------------------------------------------------------------------
|
12941
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12942
|
+
[1m[35mSQL (2.4ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:40:17 UTC +00:00], ["file", "13898832173107310.txt"], ["updated_at", Thu, 16 Jan 2014 14:40:17 UTC +00:00]]
|
12943
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12944
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12945
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", nil], ["updated_at", Thu, 16 Jan 2014 14:40:17 UTC +00:00]]
|
12946
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12947
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12948
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12949
|
+
-------------------------------------------------------------------------
|
12950
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
12951
|
+
-------------------------------------------------------------------------
|
12952
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
12953
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:40:17 UTC +00:00], ["file", "13898832173254368.txt"], ["updated_at", Thu, 16 Jan 2014 14:40:17 UTC +00:00]]
|
12954
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12955
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12956
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
12957
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12958
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
12959
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12960
|
+
-------------------------------------------------------------------------
|
12961
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
12962
|
+
-------------------------------------------------------------------------
|
12963
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12964
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12965
|
+
-------------------------------------------------------------------
|
12966
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
12967
|
+
-------------------------------------------------------------------
|
12968
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
12969
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12970
|
+
---------------------------------------------------------------------------
|
12971
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
12972
|
+
---------------------------------------------------------------------------
|
12973
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
12974
|
+
[1m[35m (0.0ms)[0m begin transaction
|
12975
|
+
----------------------------------------------
|
12976
|
+
LocalGenerateTest: test_should_generate_preset
|
12977
|
+
----------------------------------------------
|
12978
|
+
Started GET "/uploads/images/small/13898832173368290.jpg" for 127.0.0.1 at 2014-01-16 12:40:17 -0200
|
12979
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
12980
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13898832173368290"}
|
12981
|
+
Redirected to http://www.example.com/uploads/images/small/13898832173368290.jpg
|
12982
|
+
Completed 302 Found in 64ms (ActiveRecord: 0.0ms)
|
12983
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12984
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12985
|
+
---------------------------------------------------------------------
|
12986
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
12987
|
+
---------------------------------------------------------------------
|
12988
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
12989
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:40:17 UTC +00:00], ["image", "13898832175490480.jpg"], ["updated_at", Thu, 16 Jan 2014 14:40:17 UTC +00:00]]
|
12990
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12991
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
12992
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
12993
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
12994
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
12995
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12996
|
+
---------------------------------------------------------------
|
12997
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
12998
|
+
---------------------------------------------------------------
|
12999
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13000
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13001
|
+
--------------------------------------------------------------------
|
13002
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
13003
|
+
--------------------------------------------------------------------
|
13004
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13005
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13006
|
+
---------------------------------------------------------------------------------------------
|
13007
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
13008
|
+
---------------------------------------------------------------------------------------------
|
13009
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
13010
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 16 Jan 2014 14:40:18 UTC +00:00], ["file", "13898832180187610.jpg"], ["updated_at", Thu, 16 Jan 2014 14:40:18 UTC +00:00]]
|
13011
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13012
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13013
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13898832180218308.txt"], ["updated_at", Thu, 16 Jan 2014 14:40:18 UTC +00:00]]
|
13014
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
13015
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13016
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
13017
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13018
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
13019
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13020
|
+
-----------------------------------------------------------------------------------
|
13021
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
13022
|
+
-----------------------------------------------------------------------------------
|
13023
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13024
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 14:40:18 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 14:40:18 UTC +00:00]]
|
13025
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
13026
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
13027
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
13028
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13029
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13030
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Thu, 16 Jan 2014 14:40:18 UTC +00:00], ["updated_at", Thu, 16 Jan 2014 14:40:18 UTC +00:00]]
|
13031
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
13032
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13033
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
13034
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13035
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13036
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13037
|
+
-------------------------------------------------------------------
|
13038
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
13039
|
+
-------------------------------------------------------------------
|
13040
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
13041
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13042
|
+
---------------------------------------------------------
|
13043
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
13044
|
+
---------------------------------------------------------
|
13045
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
13046
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13047
|
+
------------------------------------------------------------
|
13048
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
13049
|
+
------------------------------------------------------------
|
13050
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13051
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13052
|
+
----------------------------------------------------
|
13053
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
13054
|
+
----------------------------------------------------
|
13055
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
13056
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
13057
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
13058
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
13059
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
13060
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
13061
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
13062
|
+
[1m[36m (0.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130820222534')[0m
|
13063
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13064
|
+
--------------------------------------------------------------------------
|
13065
|
+
LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
|
13066
|
+
--------------------------------------------------------------------------
|
13067
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
13068
|
+
[1m[35mSQL (3.5ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 24 Jan 2014 21:20:53 UTC +00:00], ["file", "13905984536621452.txt"], ["updated_at", Fri, 24 Jan 2014 21:20:53 UTC +00:00]]
|
13069
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13070
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13071
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", nil], ["updated_at", Fri, 24 Jan 2014 21:20:53 UTC +00:00]]
|
13072
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
13073
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13074
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13075
|
+
-------------------------------------------------------------------------
|
13076
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
13077
|
+
-------------------------------------------------------------------------
|
13078
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13079
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 24 Jan 2014 21:20:53 UTC +00:00], ["file", "13905984536777230.txt"], ["updated_at", Fri, 24 Jan 2014 21:20:53 UTC +00:00]]
|
13080
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13081
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13082
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
13083
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
13084
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
13085
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13086
|
+
-------------------------------------------------------------------------
|
13087
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
13088
|
+
-------------------------------------------------------------------------
|
13089
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13090
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13091
|
+
-------------------------------------------------------------------
|
13092
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
13093
|
+
-------------------------------------------------------------------
|
13094
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13095
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13096
|
+
---------------------------------------------------------------------------
|
13097
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
13098
|
+
---------------------------------------------------------------------------
|
13099
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13100
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13101
|
+
----------------------------------------------
|
13102
|
+
LocalGenerateTest: test_should_generate_preset
|
13103
|
+
----------------------------------------------
|
13104
|
+
Started GET "/uploads/images/small/13905984536907390.jpg" for 127.0.0.1 at 2014-01-24 19:20:53 -0200
|
13105
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
13106
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13905984536907390"}
|
13107
|
+
Redirected to http://www.example.com/uploads/images/small/13905984536907390.jpg
|
13108
|
+
Completed 302 Found in 58ms (ActiveRecord: 0.0ms)
|
13109
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13110
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13111
|
+
---------------------------------------------------------------------
|
13112
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
13113
|
+
---------------------------------------------------------------------
|
13114
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13115
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 24 Jan 2014 21:20:54 UTC +00:00], ["image", "13905984539592462.jpg"], ["updated_at", Fri, 24 Jan 2014 21:20:54 UTC +00:00]]
|
13116
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13117
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13118
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
13119
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
13120
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13121
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13122
|
+
---------------------------------------------------------------
|
13123
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
13124
|
+
---------------------------------------------------------------
|
13125
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13126
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13127
|
+
--------------------------------------------------------------------
|
13128
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
13129
|
+
--------------------------------------------------------------------
|
13130
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
13131
|
+
[1m[35m (0.1ms)[0m begin transaction
|
13132
|
+
---------------------------------------------------------------------------------------------
|
13133
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
13134
|
+
---------------------------------------------------------------------------------------------
|
13135
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
13136
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 24 Jan 2014 21:20:54 UTC +00:00], ["file", "13905984543875180.jpg"], ["updated_at", Fri, 24 Jan 2014 21:20:54 UTC +00:00]]
|
13137
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13138
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13139
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13905984543909740.txt"], ["updated_at", Fri, 24 Jan 2014 21:20:54 UTC +00:00]]
|
13140
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
13141
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13142
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
13143
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13144
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
13145
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
13146
|
+
-----------------------------------------------------------------------------------
|
13147
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
13148
|
+
-----------------------------------------------------------------------------------
|
13149
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13150
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 24 Jan 2014 21:20:54 UTC +00:00], ["updated_at", Fri, 24 Jan 2014 21:20:54 UTC +00:00]]
|
13151
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
13152
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13153
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
13154
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13155
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13156
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Fri, 24 Jan 2014 21:20:54 UTC +00:00], ["updated_at", Fri, 24 Jan 2014 21:20:54 UTC +00:00]]
|
13157
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
13158
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
13159
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
13160
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
13161
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13162
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13163
|
+
-------------------------------------------------------------------
|
13164
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
13165
|
+
-------------------------------------------------------------------
|
13166
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
13167
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
13168
|
+
---------------------------------------------------------
|
13169
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
13170
|
+
---------------------------------------------------------
|
13171
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13172
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13173
|
+
------------------------------------------------------------
|
13174
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
13175
|
+
------------------------------------------------------------
|
13176
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13177
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
13178
|
+
----------------------------------------------------
|
13179
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
9313
13180
|
----------------------------------------------------
|
9314
13181
|
[1m[35m (0.1ms)[0m rollback transaction
|