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.
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Attachs
2
2
 
3
- VERSION = '0.3.2'
3
+ VERSION = '0.3.5'
4
4
 
5
5
  end
@@ -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
- yield image, preset
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: [:big]
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'] }
@@ -0,0 +1,3 @@
1
+ class PrivateFileAttached < ActiveRecord::Base
2
+ has_attached_file :file, default: 'file.txt', private: true
3
+ end
@@ -0,0 +1,3 @@
1
+ class PrivateImageAttached < ActiveRecord::Base
2
+ has_attached_image :image, presets: [:small, :big], default: 'image.jpg', private: true
3
+ end
@@ -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
- config.attachs.default_presets = [:small]
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 }
@@ -14,7 +14,7 @@ development:
14
14
  # Do not set this db to the same as development or production.
15
15
  test:
16
16
  adapter: sqlite3
17
- database: db/test.sqlite3
17
+ database: ":memory:"
18
18
  pool: 5
19
19
  timeout: 5000
20
20
 
@@ -9310,5 +9310,3872 @@ LocalValidatorsTest: test_should_check_the_file_content_type
9310
9310
   (0.0ms) begin transaction
9311
9311
  ----------------------------------------------------
9312
9312
  LocalValidatorsTest: test_should_check_the_file_size
9313
+ ----------------------------------------------------
9314
+  (0.1ms) rollback transaction
9315
+  (1.0ms) DROP TABLE "all_attacheds"
9316
+  (0.9ms) 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
+  (1.1ms) DROP TABLE "file_attacheds"
9318
+  (0.8ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
9319
+  (0.7ms) DROP TABLE "image_attacheds"
9320
+  (0.9ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
9321
+  (0.1ms) SELECT version FROM "schema_migrations"
9322
+  (0.1ms) begin transaction
9323
+ -------------------------------------------------------------------------
9324
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
9325
+ -------------------------------------------------------------------------
9326
+  (0.0ms) SAVEPOINT active_record_1
9327
+ SQL (3.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9329
+  (0.1ms) SAVEPOINT active_record_1
9330
+ SQL (0.8ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
9331
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9332
+  (0.4ms) rollback transaction
9333
+  (0.1ms) begin transaction
9334
+ -------------------------------------------------------------------------
9335
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
9336
+ -------------------------------------------------------------------------
9337
+  (0.1ms) rollback transaction
9338
+  (0.0ms) begin transaction
9339
+ -------------------------------------------------------------------
9340
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
9341
+ -------------------------------------------------------------------
9342
+  (0.1ms) rollback transaction
9343
+  (0.0ms) begin transaction
9344
+ ---------------------------------------------------------------------------
9345
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
9346
+ ---------------------------------------------------------------------------
9347
+  (0.1ms) rollback transaction
9348
+  (0.0ms) 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
+  (0.1ms) rollback transaction
9358
+  (0.1ms) begin transaction
9359
+ ---------------------------------------------------------------------
9360
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
9361
+ ---------------------------------------------------------------------
9362
+  (0.0ms) SAVEPOINT active_record_1
9363
+ SQL (0.6ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9365
+  (0.0ms) SAVEPOINT active_record_1
9366
+ SQL (0.3ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
9367
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9368
+  (0.3ms) rollback transaction
9369
+  (0.1ms) begin transaction
9370
+ ---------------------------------------------------------------
9371
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
9372
+ ---------------------------------------------------------------
9373
+  (0.1ms) rollback transaction
9374
+  (0.0ms) begin transaction
9375
+ --------------------------------------------------------------------
9376
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
9377
+ --------------------------------------------------------------------
9378
+  (0.1ms) rollback transaction
9379
+  (0.1ms) begin transaction
9380
+ ---------------------------------------------------------------------------------------------
9381
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
9382
+ ---------------------------------------------------------------------------------------------
9383
+  (0.1ms) SAVEPOINT active_record_1
9384
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9386
+  (0.0ms) SAVEPOINT active_record_1
9387
+ SQL (0.4ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13858295431552848.txt"], ["updated_at", Sat, 30 Nov 2013 16:39:03 UTC +00:00]]
9388
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9389
+  (0.0ms) SAVEPOINT active_record_1
9390
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
9391
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9392
+  (0.4ms) rollback transaction
9393
+  (0.1ms) begin transaction
9394
+ -----------------------------------------------------------------------------------
9395
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
9396
+ -----------------------------------------------------------------------------------
9397
+  (0.1ms) SAVEPOINT active_record_1
9398
+ SQL (0.4ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9400
+  (0.0ms) SAVEPOINT active_record_1
9401
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
9402
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9403
+  (0.0ms) SAVEPOINT active_record_1
9404
+ SQL (0.2ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9406
+  (0.0ms) SAVEPOINT active_record_1
9407
+ SQL (0.1ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
9408
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9409
+  (0.5ms) rollback transaction
9410
+  (0.0ms) begin transaction
9411
+ -------------------------------------------------------------------
9412
+ LocalValidatorsTest: test_should_check_all_the_validations_together
9413
+ -------------------------------------------------------------------
9414
+  (0.1ms) rollback transaction
9415
+  (0.0ms) begin transaction
9416
+ ---------------------------------------------------------
9417
+ LocalValidatorsTest: test_should_check_if_file_is_present
9418
+ ---------------------------------------------------------
9419
+  (0.1ms) rollback transaction
9420
+  (0.0ms) begin transaction
9421
+ ------------------------------------------------------------
9422
+ LocalValidatorsTest: test_should_check_the_file_content_type
9423
+ ------------------------------------------------------------
9424
+  (0.0ms) rollback transaction
9425
+  (0.0ms) begin transaction
9426
+ ----------------------------------------------------
9427
+ LocalValidatorsTest: test_should_check_the_file_size
9428
+ ----------------------------------------------------
9429
+  (0.1ms) rollback transaction
9430
+  (1.6ms) DROP TABLE "all_attacheds"
9431
+  (1.1ms) 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
+  (1.0ms) DROP TABLE "file_attacheds"
9433
+  (0.9ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
9434
+  (1.1ms) DROP TABLE "image_attacheds"
9435
+  (0.8ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
9436
+  (0.2ms) SELECT version FROM "schema_migrations"
9437
+  (0.1ms) begin transaction
9438
+ -------------------------------------------------------------------------
9439
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
9440
+ -------------------------------------------------------------------------
9441
+  (0.2ms) rollback transaction
9442
+  (0.1ms) begin transaction
9443
+ -------------------------------------------------------------------------
9444
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
9445
+ -------------------------------------------------------------------------
9446
+  (0.1ms) rollback transaction
9447
+  (0.1ms) begin transaction
9448
+ -------------------------------------------------------------------
9449
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
9450
+ -------------------------------------------------------------------
9451
+  (0.1ms) rollback transaction
9452
+  (0.0ms) begin transaction
9453
+ ---------------------------------------------------------------------------
9454
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
9455
+ ---------------------------------------------------------------------------
9456
+  (0.0ms) rollback transaction
9457
+  (0.0ms) begin transaction
9458
+ ----------------------------------------------
9459
+ LocalGenerateTest: test_should_generate_preset
9460
+ ----------------------------------------------
9461
+  (0.1ms) SAVEPOINT active_record_1
9462
+ ---------------------------------------------------------------------
9463
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
9464
+ ---------------------------------------------------------------------
9465
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9466
+  (0.0ms) SAVEPOINT active_record_1
9467
+ ---------------------------------------------------------------
9468
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
9469
+ ---------------------------------------------------------------
9470
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9471
+  (0.0ms) SAVEPOINT active_record_1
9472
+ --------------------------------------------------------------------
9473
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
9474
+ --------------------------------------------------------------------
9475
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
9476
+  (0.0ms) SAVEPOINT active_record_1
9477
+ ---------------------------------------------------------------------------------------------
9478
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
9479
+ ---------------------------------------------------------------------------------------------
9480
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9481
+  (0.0ms) SAVEPOINT active_record_1
9482
+ -----------------------------------------------------------------------------------
9483
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
9484
+ -----------------------------------------------------------------------------------
9485
+  (0.0ms) SAVEPOINT active_record_2
9486
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
9487
+ undefined method `each' for nil:NilClass
9488
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9489
+  (0.0ms) SAVEPOINT active_record_1
9490
+ -------------------------------------------------------------------
9491
+ LocalValidatorsTest: test_should_check_all_the_validations_together
9492
+ -------------------------------------------------------------------
9493
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9494
+  (0.0ms) SAVEPOINT active_record_1
9495
+ ---------------------------------------------------------
9496
+ LocalValidatorsTest: test_should_check_if_file_is_present
9497
+ ---------------------------------------------------------
9498
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9499
+  (0.1ms) SAVEPOINT active_record_1
9500
+ ------------------------------------------------------------
9501
+ LocalValidatorsTest: test_should_check_the_file_content_type
9502
+ ------------------------------------------------------------
9503
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
9504
+  (0.0ms) SAVEPOINT active_record_1
9505
+ ----------------------------------------------------
9506
+ LocalValidatorsTest: test_should_check_the_file_size
9507
+ ----------------------------------------------------
9508
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
9509
+  (3.7ms) DROP TABLE "all_attacheds"
9510
+  (1.2ms) 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
+  (0.8ms) DROP TABLE "file_attacheds"
9512
+  (0.8ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
9513
+  (0.6ms) DROP TABLE "image_attacheds"
9514
+  (1.0ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
9515
+  (0.1ms) SELECT version FROM "schema_migrations"
9516
+  (0.1ms) begin transaction
9517
+ -------------------------------------------------------------------------
9518
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
9519
+ -------------------------------------------------------------------------
9520
+  (0.1ms) SAVEPOINT active_record_1
9521
+ SQL (4.7ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9523
+  (0.1ms) SAVEPOINT active_record_1
9524
+ SQL (1.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
9525
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9526
+  (0.4ms) rollback transaction
9527
+  (0.1ms) begin transaction
9528
+ -------------------------------------------------------------------------
9529
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
9530
+ -------------------------------------------------------------------------
9531
+  (0.1ms) rollback transaction
9532
+  (0.0ms) begin transaction
9533
+ -------------------------------------------------------------------
9534
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
9535
+ -------------------------------------------------------------------
9536
+  (0.0ms) rollback transaction
9537
+  (0.0ms) begin transaction
9538
+ ---------------------------------------------------------------------------
9539
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
9540
+ ---------------------------------------------------------------------------
9541
+  (0.0ms) rollback transaction
9542
+  (0.0ms) 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
+  (0.1ms) rollback transaction
9552
+  (0.1ms) begin transaction
9553
+ ---------------------------------------------------------------------
9554
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
9555
+ ---------------------------------------------------------------------
9556
+  (0.0ms) SAVEPOINT active_record_1
9557
+ SQL (1.2ms) 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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
9559
+  (0.1ms) SAVEPOINT active_record_1
9560
+ SQL (0.3ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
9561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9562
+  (0.5ms) rollback transaction
9563
+  (0.0ms) begin transaction
9564
+ ---------------------------------------------------------------
9565
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
9566
+ ---------------------------------------------------------------
9567
+  (0.1ms) rollback transaction
9568
+  (0.0ms) begin transaction
9569
+ --------------------------------------------------------------------
9570
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
9571
+ --------------------------------------------------------------------
9572
+  (0.1ms) rollback transaction
9573
+  (0.0ms) begin transaction
9574
+ ---------------------------------------------------------------------------------------------
9575
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
9576
+ ---------------------------------------------------------------------------------------------
9577
+  (0.0ms) SAVEPOINT active_record_1
9578
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9580
+  (0.1ms) SAVEPOINT active_record_1
9581
+ SQL (0.4ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13897892501308290.txt"], ["updated_at", Wed, 15 Jan 2014 12:34:10 UTC +00:00]]
9582
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9583
+  (0.0ms) SAVEPOINT active_record_1
9584
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
9585
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9586
+  (0.5ms) rollback transaction
9587
+  (0.1ms) begin transaction
9588
+ -----------------------------------------------------------------------------------
9589
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
9590
+ -----------------------------------------------------------------------------------
9591
+  (0.0ms) SAVEPOINT active_record_1
9592
+ SQL (0.3ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
9594
+  (0.0ms) SAVEPOINT active_record_1
9595
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
9596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9597
+  (0.0ms) SAVEPOINT active_record_1
9598
+ SQL (0.2ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9600
+  (0.0ms) SAVEPOINT active_record_1
9601
+ SQL (0.0ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
9602
+  (0.0ms) RELEASE SAVEPOINT active_record_1
9603
+  (0.3ms) rollback transaction
9604
+  (0.0ms) begin transaction
9605
+ -------------------------------------------------------------------
9606
+ LocalValidatorsTest: test_should_check_all_the_validations_together
9607
+ -------------------------------------------------------------------
9608
+  (0.1ms) rollback transaction
9609
+  (0.0ms) begin transaction
9610
+ ---------------------------------------------------------
9611
+ LocalValidatorsTest: test_should_check_if_file_is_present
9612
+ ---------------------------------------------------------
9613
+  (0.0ms) rollback transaction
9614
+  (0.1ms) begin transaction
9615
+ ------------------------------------------------------------
9616
+ LocalValidatorsTest: test_should_check_the_file_content_type
9617
+ ------------------------------------------------------------
9618
+  (0.0ms) rollback transaction
9619
+  (0.0ms) begin transaction
9620
+ ----------------------------------------------------
9621
+ LocalValidatorsTest: test_should_check_the_file_size
9622
+ ----------------------------------------------------
9623
+  (0.1ms) rollback transaction
9624
+  (1.4ms) 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) 
9625
+  (0.9ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
9626
+  (0.9ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) 
9627
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
9628
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9629
+  (0.1ms) SELECT version FROM "schema_migrations"
9630
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130820222534')
9631
+  (0.1ms) begin transaction
9632
+ -------------------------------------------------------------------------
9633
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
9634
+ -------------------------------------------------------------------------
9635
+  (0.1ms) rollback transaction
9636
+  (0.1ms) begin transaction
9637
+ -------------------------------------------------------------------------
9638
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
9639
+ -------------------------------------------------------------------------
9640
+  (0.1ms) rollback transaction
9641
+  (0.0ms) begin transaction
9642
+ -------------------------------------------------------------------
9643
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
9644
+ -------------------------------------------------------------------
9645
+  (0.1ms) rollback transaction
9646
+  (0.0ms) begin transaction
9647
+ ---------------------------------------------------------------------------
9648
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
9649
+ ---------------------------------------------------------------------------
9650
+  (0.0ms) rollback transaction
9651
+  (0.0ms) begin transaction
9652
+ ----------------------------------------------
9653
+ LocalGenerateTest: test_should_generate_preset
9654
+ ----------------------------------------------
9655
+  (0.1ms) SAVEPOINT active_record_1
9656
+ ---------------------------------------------------------------------
9657
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
9658
+ ---------------------------------------------------------------------
9659
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9660
+  (0.0ms) SAVEPOINT active_record_1
9661
+ ---------------------------------------------------------------
9662
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
9663
+ ---------------------------------------------------------------
9664
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9665
+  (0.0ms) SAVEPOINT active_record_1
9666
+ --------------------------------------------------------------------
9667
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
9668
+ --------------------------------------------------------------------
9669
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9670
+  (0.0ms) SAVEPOINT active_record_1
9671
+ ---------------------------------------------------------------------------------------------
9672
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
9673
+ ---------------------------------------------------------------------------------------------
9674
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9675
+  (0.0ms) SAVEPOINT active_record_1
9676
+ -----------------------------------------------------------------------------------
9677
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
9678
+ -----------------------------------------------------------------------------------
9679
+  (0.0ms) SAVEPOINT active_record_2
9680
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
9681
+ undefined method `each' for nil:NilClass
9682
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9683
+  (0.0ms) SAVEPOINT active_record_1
9684
+ -------------------------------------------------------------------
9685
+ LocalValidatorsTest: test_should_check_all_the_validations_together
9686
+ -------------------------------------------------------------------
9687
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9688
+  (0.0ms) SAVEPOINT active_record_1
9689
+ ---------------------------------------------------------
9690
+ LocalValidatorsTest: test_should_check_if_file_is_present
9691
+ ---------------------------------------------------------
9692
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9693
+  (0.0ms) SAVEPOINT active_record_1
9694
+ ------------------------------------------------------------
9695
+ LocalValidatorsTest: test_should_check_the_file_content_type
9696
+ ------------------------------------------------------------
9697
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
9698
+  (0.0ms) SAVEPOINT active_record_1
9699
+ ----------------------------------------------------
9700
+ LocalValidatorsTest: test_should_check_the_file_size
9701
+ ----------------------------------------------------
9702
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
9703
+  (3.6ms) DROP TABLE "all_attacheds"
9704
+  (1.1ms) 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
+  (0.8ms) DROP TABLE "file_attacheds"
9706
+  (0.8ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
9707
+  (0.8ms) DROP TABLE "image_attacheds"
9708
+  (0.8ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
9709
+  (0.1ms) SELECT version FROM "schema_migrations"
9710
+  (0.1ms) begin transaction
9711
+ -------------------------------------------------------------------------
9712
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
9713
+ -------------------------------------------------------------------------
9714
+  (0.1ms) rollback transaction
9715
+  (0.1ms) begin transaction
9716
+ -------------------------------------------------------------------------
9717
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
9718
+ -------------------------------------------------------------------------
9719
+  (0.1ms) rollback transaction
9720
+  (0.0ms) begin transaction
9721
+ -------------------------------------------------------------------
9722
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
9723
+ -------------------------------------------------------------------
9724
+  (0.1ms) rollback transaction
9725
+  (0.0ms) begin transaction
9726
+ ---------------------------------------------------------------------------
9727
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
9728
+ ---------------------------------------------------------------------------
9729
+  (0.0ms) rollback transaction
9730
+  (0.0ms) begin transaction
9731
+ ----------------------------------------------
9732
+ LocalGenerateTest: test_should_generate_preset
9733
+ ----------------------------------------------
9734
+  (0.1ms) SAVEPOINT active_record_1
9735
+ ---------------------------------------------------------------------
9736
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
9737
+ ---------------------------------------------------------------------
9738
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9739
+  (0.0ms) SAVEPOINT active_record_1
9740
+ ---------------------------------------------------------------
9741
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
9742
+ ---------------------------------------------------------------
9743
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9744
+  (0.0ms) SAVEPOINT active_record_1
9745
+ --------------------------------------------------------------------
9746
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
9747
+ --------------------------------------------------------------------
9748
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9749
+  (0.0ms) SAVEPOINT active_record_1
9750
+ ---------------------------------------------------------------------------------------------
9751
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
9752
+ ---------------------------------------------------------------------------------------------
9753
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9754
+  (0.0ms) SAVEPOINT active_record_1
9755
+ -----------------------------------------------------------------------------------
9756
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
9757
+ -----------------------------------------------------------------------------------
9758
+  (0.0ms) SAVEPOINT active_record_2
9759
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
9760
+ undefined method `each' for nil:NilClass
9761
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9762
+  (0.0ms) SAVEPOINT active_record_1
9763
+ -------------------------------------------------------------------
9764
+ LocalValidatorsTest: test_should_check_all_the_validations_together
9765
+ -------------------------------------------------------------------
9766
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9767
+  (0.0ms) SAVEPOINT active_record_1
9768
+ ---------------------------------------------------------
9769
+ LocalValidatorsTest: test_should_check_if_file_is_present
9770
+ ---------------------------------------------------------
9771
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9772
+  (0.0ms) SAVEPOINT active_record_1
9773
+ ------------------------------------------------------------
9774
+ LocalValidatorsTest: test_should_check_the_file_content_type
9775
+ ------------------------------------------------------------
9776
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
9777
+  (0.0ms) SAVEPOINT active_record_1
9778
+ ----------------------------------------------------
9779
+ LocalValidatorsTest: test_should_check_the_file_size
9780
+ ----------------------------------------------------
9781
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
9782
+  (3.4ms) DROP TABLE "all_attacheds"
9783
+  (0.9ms) 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
+  (0.9ms) DROP TABLE "file_attacheds"
9785
+  (0.7ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
9786
+  (0.9ms) DROP TABLE "image_attacheds"
9787
+  (1.1ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
9788
+  (0.1ms) SELECT version FROM "schema_migrations"
9789
+  (0.1ms) begin transaction
9790
+ -------------------------------------------------------------------------
9791
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
9792
+ -------------------------------------------------------------------------
9793
+  (0.1ms) rollback transaction
9794
+  (0.1ms) begin transaction
9795
+ -------------------------------------------------------------------------
9796
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
9797
+ -------------------------------------------------------------------------
9798
+  (0.1ms) rollback transaction
9799
+  (0.0ms) begin transaction
9800
+ -------------------------------------------------------------------
9801
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
9802
+ -------------------------------------------------------------------
9803
+  (0.1ms) rollback transaction
9804
+  (0.0ms) begin transaction
9805
+ ---------------------------------------------------------------------------
9806
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
9807
+ ---------------------------------------------------------------------------
9808
+  (0.0ms) rollback transaction
9809
+  (0.0ms) 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
+  (0.1ms) rollback transaction
9819
+  (0.1ms) begin transaction
9820
+ ---------------------------------------------------------------------
9821
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
9822
+ ---------------------------------------------------------------------
9823
+  (0.1ms) rollback transaction
9824
+  (0.0ms) begin transaction
9825
+ ---------------------------------------------------------------
9826
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
9827
+ ---------------------------------------------------------------
9828
+  (0.1ms) rollback transaction
9829
+  (0.0ms) begin transaction
9830
+ --------------------------------------------------------------------
9831
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
9832
+ --------------------------------------------------------------------
9833
+  (0.1ms) rollback transaction
9834
+  (0.1ms) begin transaction
9835
+ ---------------------------------------------------------------------------------------------
9836
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
9837
+ ---------------------------------------------------------------------------------------------
9838
+  (0.1ms) rollback transaction
9839
+  (0.0ms) begin transaction
9840
+ -----------------------------------------------------------------------------------
9841
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
9842
+ -----------------------------------------------------------------------------------
9843
+  (0.0ms) SAVEPOINT active_record_1
9844
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9845
+ undefined method `each' for nil:NilClass
9846
+  (0.1ms) rollback transaction
9847
+  (0.0ms) begin transaction
9848
+ -------------------------------------------------------------------
9849
+ LocalValidatorsTest: test_should_check_all_the_validations_together
9850
+ -------------------------------------------------------------------
9851
+  (0.1ms) rollback transaction
9852
+  (0.1ms) begin transaction
9853
+ ---------------------------------------------------------
9854
+ LocalValidatorsTest: test_should_check_if_file_is_present
9855
+ ---------------------------------------------------------
9856
+  (0.1ms) rollback transaction
9857
+  (0.0ms) begin transaction
9858
+ ------------------------------------------------------------
9859
+ LocalValidatorsTest: test_should_check_the_file_content_type
9860
+ ------------------------------------------------------------
9861
+  (0.0ms) rollback transaction
9862
+  (0.0ms) begin transaction
9863
+ ----------------------------------------------------
9864
+ LocalValidatorsTest: test_should_check_the_file_size
9865
+ ----------------------------------------------------
9866
+  (0.0ms) rollback transaction
9867
+  (3.8ms) DROP TABLE "all_attacheds"
9868
+  (1.3ms) 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
+  (1.2ms) DROP TABLE "file_attacheds"
9870
+  (1.2ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
9871
+  (0.9ms) DROP TABLE "image_attacheds"
9872
+  (0.9ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
9873
+  (0.1ms) SELECT version FROM "schema_migrations"
9874
+  (0.1ms) begin transaction
9875
+ -------------------------------------------------------------------------
9876
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
9877
+ -------------------------------------------------------------------------
9878
+  (0.0ms) SAVEPOINT active_record_1
9879
+ SQL (3.8ms) 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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9881
+  (0.5ms) rollback transaction
9882
+  (0.1ms) begin transaction
9883
+ -------------------------------------------------------------------------
9884
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
9885
+ -------------------------------------------------------------------------
9886
+  (0.1ms) rollback transaction
9887
+  (0.0ms) begin transaction
9888
+ -------------------------------------------------------------------
9889
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
9890
+ -------------------------------------------------------------------
9891
+  (0.1ms) rollback transaction
9892
+  (0.0ms) begin transaction
9893
+ ---------------------------------------------------------------------------
9894
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
9895
+ ---------------------------------------------------------------------------
9896
+  (0.0ms) rollback transaction
9897
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
9907
+  (0.1ms) begin transaction
9908
+ ---------------------------------------------------------------------
9909
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
9910
+ ---------------------------------------------------------------------
9911
+  (0.0ms) SAVEPOINT active_record_1
9912
+ SQL (0.5ms) INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9914
+  (0.5ms) rollback transaction
9915
+  (0.0ms) begin transaction
9916
+ ---------------------------------------------------------------
9917
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
9918
+ ---------------------------------------------------------------
9919
+  (0.1ms) rollback transaction
9920
+  (0.0ms) begin transaction
9921
+ --------------------------------------------------------------------
9922
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
9923
+ --------------------------------------------------------------------
9924
+  (0.1ms) rollback transaction
9925
+  (0.1ms) begin transaction
9926
+ ---------------------------------------------------------------------------------------------
9927
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
9928
+ ---------------------------------------------------------------------------------------------
9929
+  (0.1ms) SAVEPOINT active_record_1
9930
+ SQL (0.4ms) 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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9932
+  (0.4ms) rollback transaction
9933
+  (0.1ms) begin transaction
9934
+ -----------------------------------------------------------------------------------
9935
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
9936
+ -----------------------------------------------------------------------------------
9937
+  (0.0ms) SAVEPOINT active_record_1
9938
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
9939
+ undefined method `each' for nil:NilClass
9940
+  (0.1ms) rollback transaction
9941
+  (0.0ms) begin transaction
9942
+ -------------------------------------------------------------------
9943
+ LocalValidatorsTest: test_should_check_all_the_validations_together
9944
+ -------------------------------------------------------------------
9945
+  (0.1ms) rollback transaction
9946
+  (0.1ms) begin transaction
9947
+ ---------------------------------------------------------
9948
+ LocalValidatorsTest: test_should_check_if_file_is_present
9949
+ ---------------------------------------------------------
9950
+  (0.0ms) rollback transaction
9951
+  (0.0ms) begin transaction
9952
+ ------------------------------------------------------------
9953
+ LocalValidatorsTest: test_should_check_the_file_content_type
9954
+ ------------------------------------------------------------
9955
+  (0.0ms) rollback transaction
9956
+  (0.0ms) begin transaction
9957
+ ----------------------------------------------------
9958
+ LocalValidatorsTest: test_should_check_the_file_size
9959
+ ----------------------------------------------------
9960
+  (0.0ms) rollback transaction
9961
+  (3.1ms) DROP TABLE "all_attacheds"
9962
+  (1.0ms) 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
+  (0.8ms) DROP TABLE "file_attacheds"
9964
+  (0.8ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
9965
+  (0.9ms) DROP TABLE "image_attacheds"
9966
+  (0.9ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
9967
+  (0.2ms) SELECT version FROM "schema_migrations"
9968
+  (0.1ms) begin transaction
9969
+ -------------------------------------------------------------------------
9970
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
9971
+ -------------------------------------------------------------------------
9972
+  (0.0ms) SAVEPOINT active_record_1
9973
+ SQL (2.2ms) 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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
9975
+  (0.4ms) rollback transaction
9976
+  (0.1ms) begin transaction
9977
+ -------------------------------------------------------------------------
9978
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
9979
+ -------------------------------------------------------------------------
9980
+  (0.1ms) rollback transaction
9981
+  (0.0ms) begin transaction
9982
+ -------------------------------------------------------------------
9983
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
9984
+ -------------------------------------------------------------------
9985
+  (0.1ms) rollback transaction
9986
+  (0.1ms) begin transaction
9987
+ ---------------------------------------------------------------------------
9988
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
9989
+ ---------------------------------------------------------------------------
9990
+  (0.1ms) rollback transaction
9991
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
10001
+  (0.0ms) begin transaction
10002
+ ---------------------------------------------------------------------
10003
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
10004
+ ---------------------------------------------------------------------
10005
+  (0.0ms) SAVEPOINT active_record_1
10006
+ SQL (0.5ms) INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10008
+  (0.4ms) rollback transaction
10009
+  (0.0ms) begin transaction
10010
+ ---------------------------------------------------------------
10011
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
10012
+ ---------------------------------------------------------------
10013
+  (0.1ms) rollback transaction
10014
+  (0.0ms) begin transaction
10015
+ --------------------------------------------------------------------
10016
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
10017
+ --------------------------------------------------------------------
10018
+  (0.2ms) rollback transaction
10019
+  (0.0ms) begin transaction
10020
+ ---------------------------------------------------------------------------------------------
10021
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
10022
+ ---------------------------------------------------------------------------------------------
10023
+  (0.1ms) SAVEPOINT active_record_1
10024
+ SQL (0.4ms) 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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10026
+  (0.4ms) rollback transaction
10027
+  (0.1ms) begin transaction
10028
+ -----------------------------------------------------------------------------------
10029
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
10030
+ -----------------------------------------------------------------------------------
10031
+  (0.1ms) SAVEPOINT active_record_1
10032
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10033
+ undefined method `each' for nil:NilClass
10034
+  (0.1ms) rollback transaction
10035
+  (0.0ms) begin transaction
10036
+ -------------------------------------------------------------------
10037
+ LocalValidatorsTest: test_should_check_all_the_validations_together
10038
+ -------------------------------------------------------------------
10039
+  (0.1ms) rollback transaction
10040
+  (0.0ms) begin transaction
10041
+ ---------------------------------------------------------
10042
+ LocalValidatorsTest: test_should_check_if_file_is_present
10043
+ ---------------------------------------------------------
10044
+  (0.0ms) rollback transaction
10045
+  (0.0ms) begin transaction
10046
+ ------------------------------------------------------------
10047
+ LocalValidatorsTest: test_should_check_the_file_content_type
10048
+ ------------------------------------------------------------
10049
+  (0.0ms) rollback transaction
10050
+  (0.0ms) begin transaction
10051
+ ----------------------------------------------------
10052
+ LocalValidatorsTest: test_should_check_the_file_size
10053
+ ----------------------------------------------------
10054
+  (0.0ms) rollback transaction
10055
+  (3.1ms) DROP TABLE "all_attacheds"
10056
+  (1.0ms) 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
+  (1.0ms) DROP TABLE "file_attacheds"
10058
+  (0.8ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
10059
+  (0.8ms) DROP TABLE "image_attacheds"
10060
+  (0.9ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
10061
+  (0.1ms) SELECT version FROM "schema_migrations"
10062
+  (0.1ms) begin transaction
10063
+ -------------------------------------------------------------------------
10064
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
10065
+ -------------------------------------------------------------------------
10066
+  (0.1ms) SAVEPOINT active_record_1
10067
+ SQL (2.1ms) 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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10069
+  (0.5ms) rollback transaction
10070
+  (0.1ms) begin transaction
10071
+ -------------------------------------------------------------------------
10072
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
10073
+ -------------------------------------------------------------------------
10074
+  (0.1ms) rollback transaction
10075
+  (0.0ms) begin transaction
10076
+ -------------------------------------------------------------------
10077
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
10078
+ -------------------------------------------------------------------
10079
+  (0.0ms) rollback transaction
10080
+  (0.0ms) begin transaction
10081
+ ---------------------------------------------------------------------------
10082
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
10083
+ ---------------------------------------------------------------------------
10084
+  (0.0ms) rollback transaction
10085
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
10095
+  (0.0ms) begin transaction
10096
+ ---------------------------------------------------------------------
10097
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
10098
+ ---------------------------------------------------------------------
10099
+  (0.0ms) SAVEPOINT active_record_1
10100
+ SQL (0.6ms) INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10102
+  (0.5ms) rollback transaction
10103
+  (0.1ms) begin transaction
10104
+ ---------------------------------------------------------------
10105
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
10106
+ ---------------------------------------------------------------
10107
+  (0.1ms) rollback transaction
10108
+  (0.0ms) begin transaction
10109
+ --------------------------------------------------------------------
10110
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
10111
+ --------------------------------------------------------------------
10112
+  (0.1ms) rollback transaction
10113
+  (0.0ms) begin transaction
10114
+ ---------------------------------------------------------------------------------------------
10115
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
10116
+ ---------------------------------------------------------------------------------------------
10117
+  (0.1ms) SAVEPOINT active_record_1
10118
+ SQL (0.4ms) 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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10120
+  (0.5ms) rollback transaction
10121
+  (0.1ms) begin transaction
10122
+ -----------------------------------------------------------------------------------
10123
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
10124
+ -----------------------------------------------------------------------------------
10125
+  (0.1ms) SAVEPOINT active_record_1
10126
+ SQL (0.4ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
10128
+  (0.3ms) rollback transaction
10129
+  (0.0ms) begin transaction
10130
+ -------------------------------------------------------------------
10131
+ LocalValidatorsTest: test_should_check_all_the_validations_together
10132
+ -------------------------------------------------------------------
10133
+  (0.1ms) rollback transaction
10134
+  (0.0ms) begin transaction
10135
+ ---------------------------------------------------------
10136
+ LocalValidatorsTest: test_should_check_if_file_is_present
10137
+ ---------------------------------------------------------
10138
+  (0.0ms) rollback transaction
10139
+  (0.0ms) begin transaction
10140
+ ------------------------------------------------------------
10141
+ LocalValidatorsTest: test_should_check_the_file_content_type
10142
+ ------------------------------------------------------------
10143
+  (0.0ms) rollback transaction
10144
+  (0.0ms) begin transaction
10145
+ ----------------------------------------------------
10146
+ LocalValidatorsTest: test_should_check_the_file_size
10147
+ ----------------------------------------------------
10148
+  (0.0ms) rollback transaction
10149
+  (3.4ms) DROP TABLE "all_attacheds"
10150
+  (1.1ms) 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
+  (0.8ms) DROP TABLE "file_attacheds"
10152
+  (0.8ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
10153
+  (0.8ms) DROP TABLE "image_attacheds"
10154
+  (0.8ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
10155
+  (0.1ms) SELECT version FROM "schema_migrations"
10156
+  (0.1ms) begin transaction
10157
+ -------------------------------------------------------------------------
10158
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
10159
+ -------------------------------------------------------------------------
10160
+  (0.0ms) SAVEPOINT active_record_1
10161
+ SQL (2.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10163
+  (0.0ms) SAVEPOINT active_record_1
10164
+ SQL (0.9ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10165
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10166
+  (0.4ms) rollback transaction
10167
+  (0.1ms) begin transaction
10168
+ -------------------------------------------------------------------------
10169
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
10170
+ -------------------------------------------------------------------------
10171
+  (0.1ms) rollback transaction
10172
+  (0.0ms) begin transaction
10173
+ -------------------------------------------------------------------
10174
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
10175
+ -------------------------------------------------------------------
10176
+  (0.1ms) rollback transaction
10177
+  (0.0ms) begin transaction
10178
+ ---------------------------------------------------------------------------
10179
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
10180
+ ---------------------------------------------------------------------------
10181
+  (0.0ms) rollback transaction
10182
+  (0.0ms) 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
+  (0.1ms) rollback transaction
10192
+  (0.0ms) begin transaction
10193
+ ---------------------------------------------------------------------
10194
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
10195
+ ---------------------------------------------------------------------
10196
+  (0.0ms) SAVEPOINT active_record_1
10197
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10199
+  (0.0ms) SAVEPOINT active_record_1
10200
+ SQL (0.2ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
10201
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10202
+  (0.5ms) rollback transaction
10203
+  (0.1ms) begin transaction
10204
+ ---------------------------------------------------------------
10205
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
10206
+ ---------------------------------------------------------------
10207
+  (0.1ms) rollback transaction
10208
+  (0.0ms) begin transaction
10209
+ --------------------------------------------------------------------
10210
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
10211
+ --------------------------------------------------------------------
10212
+  (0.1ms) rollback transaction
10213
+  (0.1ms) begin transaction
10214
+ ---------------------------------------------------------------------------------------------
10215
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
10216
+ ---------------------------------------------------------------------------------------------
10217
+  (0.1ms) SAVEPOINT active_record_1
10218
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10220
+  (0.0ms) SAVEPOINT active_record_1
10221
+ SQL (0.3ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898766670367450.txt"], ["updated_at", Thu, 16 Jan 2014 12:51:07 UTC +00:00]]
10222
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10223
+  (0.0ms) SAVEPOINT active_record_1
10224
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10225
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10226
+  (0.5ms) rollback transaction
10227
+  (0.1ms) begin transaction
10228
+ -----------------------------------------------------------------------------------
10229
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
10230
+ -----------------------------------------------------------------------------------
10231
+  (0.0ms) SAVEPOINT active_record_1
10232
+ SQL (0.3ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10234
+  (0.0ms) SAVEPOINT active_record_1
10235
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10236
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10237
+  (0.0ms) SAVEPOINT active_record_1
10238
+ SQL (0.2ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10240
+  (0.1ms) SAVEPOINT active_record_1
10241
+ SQL (0.1ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
10242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10243
+  (0.5ms) rollback transaction
10244
+  (0.0ms) begin transaction
10245
+ -------------------------------------------------------------------
10246
+ LocalValidatorsTest: test_should_check_all_the_validations_together
10247
+ -------------------------------------------------------------------
10248
+  (0.1ms) rollback transaction
10249
+  (0.1ms) begin transaction
10250
+ ---------------------------------------------------------
10251
+ LocalValidatorsTest: test_should_check_if_file_is_present
10252
+ ---------------------------------------------------------
10253
+  (0.0ms) rollback transaction
10254
+  (0.0ms) begin transaction
10255
+ ------------------------------------------------------------
10256
+ LocalValidatorsTest: test_should_check_the_file_content_type
10257
+ ------------------------------------------------------------
10258
+  (0.0ms) rollback transaction
10259
+  (0.0ms) begin transaction
10260
+ ----------------------------------------------------
10261
+ LocalValidatorsTest: test_should_check_the_file_size
10262
+ ----------------------------------------------------
10263
+  (0.0ms) rollback transaction
10264
+  (2.9ms) DROP TABLE "all_attacheds"
10265
+  (1.1ms) 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
+  (0.8ms) DROP TABLE "file_attacheds"
10267
+  (0.9ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
10268
+  (0.8ms) DROP TABLE "image_attacheds"
10269
+  (0.8ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
10270
+  (0.1ms) SELECT version FROM "schema_migrations"
10271
+  (0.1ms) begin transaction
10272
+ -------------------------------------------------------------------------
10273
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
10274
+ -------------------------------------------------------------------------
10275
+  (0.1ms) SAVEPOINT active_record_1
10276
+ SQL (2.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10278
+  (0.0ms) SAVEPOINT active_record_1
10279
+ SQL (0.9ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10280
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10281
+  (0.4ms) rollback transaction
10282
+  (0.1ms) begin transaction
10283
+ -------------------------------------------------------------------------
10284
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
10285
+ -------------------------------------------------------------------------
10286
+  (0.1ms) rollback transaction
10287
+  (0.0ms) begin transaction
10288
+ -------------------------------------------------------------------
10289
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
10290
+ -------------------------------------------------------------------
10291
+  (0.1ms) rollback transaction
10292
+  (0.0ms) begin transaction
10293
+ ---------------------------------------------------------------------------
10294
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
10295
+ ---------------------------------------------------------------------------
10296
+  (0.1ms) rollback transaction
10297
+  (0.0ms) 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
+  (0.2ms) rollback transaction
10307
+  (0.1ms) begin transaction
10308
+ ---------------------------------------------------------------------
10309
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
10310
+ ---------------------------------------------------------------------
10311
+  (0.1ms) SAVEPOINT active_record_1
10312
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10314
+  (0.0ms) SAVEPOINT active_record_1
10315
+ SQL (0.2ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
10316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10317
+  (0.4ms) rollback transaction
10318
+  (0.0ms) begin transaction
10319
+ ---------------------------------------------------------------
10320
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
10321
+ ---------------------------------------------------------------
10322
+  (0.1ms) rollback transaction
10323
+  (0.0ms) begin transaction
10324
+ --------------------------------------------------------------------
10325
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
10326
+ --------------------------------------------------------------------
10327
+  (0.1ms) rollback transaction
10328
+  (0.0ms) begin transaction
10329
+ ---------------------------------------------------------------------------------------------
10330
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
10331
+ ---------------------------------------------------------------------------------------------
10332
+  (0.1ms) SAVEPOINT active_record_1
10333
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10335
+  (0.0ms) SAVEPOINT active_record_1
10336
+ SQL (0.4ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898769099942532.txt"], ["updated_at", Thu, 16 Jan 2014 12:55:09 UTC +00:00]]
10337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10338
+  (0.0ms) SAVEPOINT active_record_1
10339
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10340
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10341
+  (0.5ms) rollback transaction
10342
+  (0.1ms) begin transaction
10343
+ -----------------------------------------------------------------------------------
10344
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
10345
+ -----------------------------------------------------------------------------------
10346
+  (0.0ms) SAVEPOINT active_record_1
10347
+ SQL (0.3ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10349
+  (0.0ms) SAVEPOINT active_record_1
10350
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10351
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10352
+  (0.0ms) SAVEPOINT active_record_1
10353
+ SQL (0.2ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10355
+  (0.0ms) SAVEPOINT active_record_1
10356
+ SQL (0.0ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
10357
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10358
+  (0.4ms) rollback transaction
10359
+  (0.1ms) begin transaction
10360
+ -------------------------------------------------------------------
10361
+ LocalValidatorsTest: test_should_check_all_the_validations_together
10362
+ -------------------------------------------------------------------
10363
+  (0.1ms) rollback transaction
10364
+  (0.0ms) begin transaction
10365
+ ---------------------------------------------------------
10366
+ LocalValidatorsTest: test_should_check_if_file_is_present
10367
+ ---------------------------------------------------------
10368
+  (0.0ms) rollback transaction
10369
+  (0.1ms) begin transaction
10370
+ ------------------------------------------------------------
10371
+ LocalValidatorsTest: test_should_check_the_file_content_type
10372
+ ------------------------------------------------------------
10373
+  (0.0ms) rollback transaction
10374
+  (0.0ms) begin transaction
10375
+ ----------------------------------------------------
10376
+ LocalValidatorsTest: test_should_check_the_file_size
10377
+ ----------------------------------------------------
10378
+  (0.0ms) rollback transaction
10379
+  (11.9ms) DROP TABLE "all_attacheds"
10380
+  (1.1ms) 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
+  (0.9ms) DROP TABLE "file_attacheds"
10382
+  (1.0ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
10383
+  (0.8ms) DROP TABLE "image_attacheds"
10384
+  (0.9ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
10385
+  (0.1ms) SELECT version FROM "schema_migrations"
10386
+  (0.1ms) begin transaction
10387
+ -------------------------------------------------------------------------
10388
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
10389
+ -------------------------------------------------------------------------
10390
+  (0.1ms) SAVEPOINT active_record_1
10391
+ SQL (2.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10393
+  (0.0ms) SAVEPOINT active_record_1
10394
+ SQL (0.8ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10395
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10396
+  (0.3ms) rollback transaction
10397
+  (0.1ms) begin transaction
10398
+ -------------------------------------------------------------------------
10399
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
10400
+ -------------------------------------------------------------------------
10401
+  (0.1ms) rollback transaction
10402
+  (0.0ms) begin transaction
10403
+ -------------------------------------------------------------------
10404
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
10405
+ -------------------------------------------------------------------
10406
+  (0.1ms) rollback transaction
10407
+  (0.0ms) begin transaction
10408
+ ---------------------------------------------------------------------------
10409
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
10410
+ ---------------------------------------------------------------------------
10411
+  (0.0ms) rollback transaction
10412
+  (0.0ms) 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
+  (0.1ms) rollback transaction
10422
+  (0.1ms) begin transaction
10423
+ ---------------------------------------------------------------------
10424
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
10425
+ ---------------------------------------------------------------------
10426
+  (0.1ms) SAVEPOINT active_record_1
10427
+ SQL (0.6ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10429
+  (0.0ms) SAVEPOINT active_record_1
10430
+ SQL (0.2ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
10431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10432
+  (0.5ms) rollback transaction
10433
+  (0.1ms) begin transaction
10434
+ ---------------------------------------------------------------
10435
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
10436
+ ---------------------------------------------------------------
10437
+  (0.1ms) rollback transaction
10438
+  (0.0ms) begin transaction
10439
+ --------------------------------------------------------------------
10440
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
10441
+ --------------------------------------------------------------------
10442
+  (0.1ms) rollback transaction
10443
+  (0.0ms) begin transaction
10444
+ ---------------------------------------------------------------------------------------------
10445
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
10446
+ ---------------------------------------------------------------------------------------------
10447
+  (0.1ms) SAVEPOINT active_record_1
10448
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10450
+  (0.0ms) SAVEPOINT active_record_1
10451
+ SQL (0.4ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898769823532742.txt"], ["updated_at", Thu, 16 Jan 2014 12:56:22 UTC +00:00]]
10452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10453
+  (0.0ms) SAVEPOINT active_record_1
10454
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10456
+  (0.5ms) rollback transaction
10457
+  (0.1ms) begin transaction
10458
+ -----------------------------------------------------------------------------------
10459
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
10460
+ -----------------------------------------------------------------------------------
10461
+  (0.1ms) SAVEPOINT active_record_1
10462
+ SQL (0.3ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10464
+  (0.0ms) SAVEPOINT active_record_1
10465
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10466
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10467
+  (0.0ms) SAVEPOINT active_record_1
10468
+ SQL (0.2ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10470
+  (0.1ms) SAVEPOINT active_record_1
10471
+ SQL (0.1ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
10472
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10473
+  (0.3ms) rollback transaction
10474
+  (0.1ms) begin transaction
10475
+ -------------------------------------------------------------------
10476
+ LocalValidatorsTest: test_should_check_all_the_validations_together
10477
+ -------------------------------------------------------------------
10478
+  (0.2ms) rollback transaction
10479
+  (0.1ms) begin transaction
10480
+ ---------------------------------------------------------
10481
+ LocalValidatorsTest: test_should_check_if_file_is_present
10482
+ ---------------------------------------------------------
10483
+  (0.1ms) rollback transaction
10484
+  (0.0ms) begin transaction
10485
+ ------------------------------------------------------------
10486
+ LocalValidatorsTest: test_should_check_the_file_content_type
10487
+ ------------------------------------------------------------
10488
+  (0.1ms) rollback transaction
10489
+  (0.0ms) begin transaction
10490
+ ----------------------------------------------------
10491
+ LocalValidatorsTest: test_should_check_the_file_size
10492
+ ----------------------------------------------------
10493
+  (0.1ms) rollback transaction
10494
+  (3.5ms) DROP TABLE "all_attacheds"
10495
+  (1.1ms) 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
+  (0.7ms) DROP TABLE "file_attacheds"
10497
+  (1.1ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
10498
+  (0.8ms) DROP TABLE "image_attacheds"
10499
+  (0.9ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
10500
+  (0.1ms) SELECT version FROM "schema_migrations"
10501
+  (0.1ms) begin transaction
10502
+ -------------------------------------------------------------------------
10503
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
10504
+ -------------------------------------------------------------------------
10505
+  (0.0ms) SAVEPOINT active_record_1
10506
+ SQL (2.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10508
+  (0.0ms) SAVEPOINT active_record_1
10509
+ SQL (0.9ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10511
+  (0.4ms) rollback transaction
10512
+  (0.1ms) begin transaction
10513
+ -------------------------------------------------------------------------
10514
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
10515
+ -------------------------------------------------------------------------
10516
+  (0.1ms) rollback transaction
10517
+  (0.0ms) begin transaction
10518
+ -------------------------------------------------------------------
10519
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
10520
+ -------------------------------------------------------------------
10521
+  (0.1ms) rollback transaction
10522
+  (0.1ms) begin transaction
10523
+ ---------------------------------------------------------------------------
10524
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
10525
+ ---------------------------------------------------------------------------
10526
+  (0.0ms) rollback transaction
10527
+  (0.0ms) 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
+  (0.2ms) rollback transaction
10537
+  (0.1ms) begin transaction
10538
+ ---------------------------------------------------------------------
10539
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
10540
+ ---------------------------------------------------------------------
10541
+  (0.1ms) SAVEPOINT active_record_1
10542
+ SQL (0.6ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10544
+  (0.0ms) SAVEPOINT active_record_1
10545
+ SQL (0.2ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
10546
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10547
+  (0.4ms) rollback transaction
10548
+  (0.1ms) begin transaction
10549
+ ---------------------------------------------------------------
10550
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
10551
+ ---------------------------------------------------------------
10552
+  (0.1ms) rollback transaction
10553
+  (0.0ms) begin transaction
10554
+ --------------------------------------------------------------------
10555
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
10556
+ --------------------------------------------------------------------
10557
+  (0.1ms) rollback transaction
10558
+  (0.0ms) begin transaction
10559
+ ---------------------------------------------------------------------------------------------
10560
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
10561
+ ---------------------------------------------------------------------------------------------
10562
+  (0.1ms) SAVEPOINT active_record_1
10563
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10565
+  (0.0ms) SAVEPOINT active_record_1
10566
+ SQL (0.3ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898770433301730.txt"], ["updated_at", Thu, 16 Jan 2014 12:57:23 UTC +00:00]]
10567
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10568
+  (0.0ms) SAVEPOINT active_record_1
10569
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10570
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10571
+  (0.3ms) rollback transaction
10572
+  (0.1ms) begin transaction
10573
+ -----------------------------------------------------------------------------------
10574
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
10575
+ -----------------------------------------------------------------------------------
10576
+  (0.0ms) SAVEPOINT active_record_1
10577
+ SQL (0.3ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10579
+  (0.0ms) SAVEPOINT active_record_1
10580
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10582
+  (0.0ms) SAVEPOINT active_record_1
10583
+ SQL (0.2ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10585
+  (0.0ms) SAVEPOINT active_record_1
10586
+ SQL (0.1ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
10587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10588
+  (0.4ms) rollback transaction
10589
+  (0.1ms) begin transaction
10590
+ -------------------------------------------------------------------
10591
+ LocalValidatorsTest: test_should_check_all_the_validations_together
10592
+ -------------------------------------------------------------------
10593
+  (0.1ms) rollback transaction
10594
+  (0.0ms) begin transaction
10595
+ ---------------------------------------------------------
10596
+ LocalValidatorsTest: test_should_check_if_file_is_present
10597
+ ---------------------------------------------------------
10598
+  (0.0ms) rollback transaction
10599
+  (0.0ms) begin transaction
10600
+ ------------------------------------------------------------
10601
+ LocalValidatorsTest: test_should_check_the_file_content_type
10602
+ ------------------------------------------------------------
10603
+  (0.0ms) rollback transaction
10604
+  (0.1ms) begin transaction
10605
+ ----------------------------------------------------
10606
+ LocalValidatorsTest: test_should_check_the_file_size
10607
+ ----------------------------------------------------
10608
+  (0.1ms) rollback transaction
10609
+  (3.5ms) DROP TABLE "all_attacheds"
10610
+  (1.0ms) 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
+  (1.0ms) DROP TABLE "file_attacheds"
10612
+  (0.8ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
10613
+  (0.8ms) DROP TABLE "image_attacheds"
10614
+  (0.9ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
10615
+  (0.1ms) SELECT version FROM "schema_migrations"
10616
+  (0.1ms) begin transaction
10617
+ -------------------------------------------------------------------------
10618
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
10619
+ -------------------------------------------------------------------------
10620
+  (0.1ms) SAVEPOINT active_record_1
10621
+ SQL (2.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10623
+  (0.0ms) SAVEPOINT active_record_1
10624
+ SQL (0.9ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10625
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10626
+  (0.4ms) rollback transaction
10627
+  (0.1ms) begin transaction
10628
+ -------------------------------------------------------------------------
10629
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
10630
+ -------------------------------------------------------------------------
10631
+  (0.1ms) rollback transaction
10632
+  (0.0ms) begin transaction
10633
+ -------------------------------------------------------------------
10634
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
10635
+ -------------------------------------------------------------------
10636
+  (0.0ms) rollback transaction
10637
+  (0.0ms) begin transaction
10638
+ ---------------------------------------------------------------------------
10639
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
10640
+ ---------------------------------------------------------------------------
10641
+  (0.0ms) rollback transaction
10642
+  (0.0ms) 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
+  (0.1ms) rollback transaction
10652
+  (0.0ms) begin transaction
10653
+ ---------------------------------------------------------------------
10654
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
10655
+ ---------------------------------------------------------------------
10656
+  (0.0ms) SAVEPOINT active_record_1
10657
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10659
+  (0.0ms) SAVEPOINT active_record_1
10660
+ SQL (0.2ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
10661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10662
+  (0.6ms) rollback transaction
10663
+  (0.1ms) begin transaction
10664
+ ---------------------------------------------------------------
10665
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
10666
+ ---------------------------------------------------------------
10667
+  (0.1ms) rollback transaction
10668
+  (0.0ms) begin transaction
10669
+ --------------------------------------------------------------------
10670
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
10671
+ --------------------------------------------------------------------
10672
+  (0.2ms) rollback transaction
10673
+  (0.0ms) begin transaction
10674
+ ---------------------------------------------------------------------------------------------
10675
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
10676
+ ---------------------------------------------------------------------------------------------
10677
+  (0.1ms) SAVEPOINT active_record_1
10678
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10680
+  (0.0ms) SAVEPOINT active_record_1
10681
+ SQL (0.3ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898772135117900.txt"], ["updated_at", Thu, 16 Jan 2014 13:00:13 UTC +00:00]]
10682
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10683
+  (0.0ms) SAVEPOINT active_record_1
10684
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10686
+  (0.5ms) rollback transaction
10687
+  (0.0ms) begin transaction
10688
+ -----------------------------------------------------------------------------------
10689
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
10690
+ -----------------------------------------------------------------------------------
10691
+  (0.1ms) SAVEPOINT active_record_1
10692
+ SQL (0.3ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10694
+  (0.1ms) SAVEPOINT active_record_1
10695
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10696
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10697
+  (0.0ms) SAVEPOINT active_record_1
10698
+ SQL (0.2ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10700
+  (0.0ms) SAVEPOINT active_record_1
10701
+ SQL (0.1ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
10702
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10703
+  (0.5ms) rollback transaction
10704
+  (0.0ms) begin transaction
10705
+ -------------------------------------------------------------------
10706
+ LocalValidatorsTest: test_should_check_all_the_validations_together
10707
+ -------------------------------------------------------------------
10708
+  (0.1ms) rollback transaction
10709
+  (0.1ms) begin transaction
10710
+ ---------------------------------------------------------
10711
+ LocalValidatorsTest: test_should_check_if_file_is_present
10712
+ ---------------------------------------------------------
10713
+  (0.0ms) rollback transaction
10714
+  (0.1ms) begin transaction
10715
+ ------------------------------------------------------------
10716
+ LocalValidatorsTest: test_should_check_the_file_content_type
10717
+ ------------------------------------------------------------
10718
+  (0.0ms) rollback transaction
10719
+  (0.0ms) begin transaction
10720
+ ----------------------------------------------------
10721
+ LocalValidatorsTest: test_should_check_the_file_size
10722
+ ----------------------------------------------------
10723
+  (0.1ms) rollback transaction
10724
+  (0.0ms) begin transaction
10725
+ ----------------------------------------------------------------------
10726
+ S3FileRecordTest: test_should_maintain_properties_and_delete_correctly
10727
+ ----------------------------------------------------------------------
10728
+  (0.1ms) rollback transaction
10729
+  (0.0ms) begin transaction
10730
+ ----------------------------------------------------------------------
10731
+ S3FileStringTest: test_should_maintain_properties_and_delete_correctly
10732
+ ----------------------------------------------------------------------
10733
+  (0.1ms) rollback transaction
10734
+  (0.0ms) begin transaction
10735
+ ----------------------------------------------------------------
10736
+ S3FileUploadTest: test_file_should_exists_and_mantain_properties
10737
+ ----------------------------------------------------------------
10738
+  (0.1ms) rollback transaction
10739
+  (0.0ms) begin transaction
10740
+ ------------------------------------------------------------------------
10741
+ S3FileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
10742
+ ------------------------------------------------------------------------
10743
+  (0.0ms) rollback transaction
10744
+  (0.0ms) begin transaction
10745
+ -----------------------------------------------------------------
10746
+ S3ImageRecordTest: test_should_save/destory_main_image_and_thumbs
10747
+ -----------------------------------------------------------------
10748
+  (0.0ms) rollback transaction
10749
+  (0.0ms) begin transaction
10750
+ -----------------------------------------------------------------
10751
+ S3ImageStringTest: test_should_save/destory_main_image_and_thumbs
10752
+ -----------------------------------------------------------------
10753
+  (0.0ms) rollback transaction
10754
+  (0.0ms) begin transaction
10755
+ -----------------------------------------------------------------
10756
+ S3ImageUploadTest: test_should_save/destory_main_image_and_thumbs
10757
+ -----------------------------------------------------------------
10758
+  (0.1ms) rollback transaction
10759
+  (0.0ms) begin transaction
10760
+ ------------------------------------------------------------------------------------------
10761
+ S3RecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
10762
+ ------------------------------------------------------------------------------------------
10763
+  (0.1ms) rollback transaction
10764
+  (0.0ms) begin transaction
10765
+ --------------------------------------------------------------------------------
10766
+ S3RecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
10767
+ --------------------------------------------------------------------------------
10768
+  (0.0ms) rollback transaction
10769
+  (0.0ms) begin transaction
10770
+ ----------------------------------------------------------------
10771
+ S3ValidatorsTest: test_should_check_all_the_validations_together
10772
+ ----------------------------------------------------------------
10773
+  (0.1ms) rollback transaction
10774
+  (0.0ms) begin transaction
10775
+ ------------------------------------------------------
10776
+ S3ValidatorsTest: test_should_check_if_file_is_present
10777
+ ------------------------------------------------------
10778
+  (0.0ms) rollback transaction
10779
+  (0.0ms) begin transaction
10780
+ ---------------------------------------------------------
10781
+ S3ValidatorsTest: test_should_check_the_file_content_type
10782
+ ---------------------------------------------------------
10783
+  (0.0ms) rollback transaction
10784
+  (0.0ms) begin transaction
10785
+ -------------------------------------------------
10786
+ S3ValidatorsTest: test_should_check_the_file_size
10787
+ -------------------------------------------------
10788
+  (0.0ms) rollback transaction
10789
+  (3.0ms) DROP TABLE "all_attacheds"
10790
+  (1.0ms) 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
+  (0.9ms) DROP TABLE "file_attacheds"
10792
+  (0.8ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
10793
+  (0.9ms) DROP TABLE "image_attacheds"
10794
+  (0.8ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
10795
+  (0.2ms) SELECT version FROM "schema_migrations"
10796
+  (0.1ms) begin transaction
10797
+ -------------------------------------------------------------------------
10798
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
10799
+ -------------------------------------------------------------------------
10800
+  (0.0ms) SAVEPOINT active_record_1
10801
+ SQL (2.1ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10803
+  (0.0ms) SAVEPOINT active_record_1
10804
+ SQL (0.9ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10805
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10806
+  (0.5ms) rollback transaction
10807
+  (0.0ms) begin transaction
10808
+ -------------------------------------------------------------------------
10809
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
10810
+ -------------------------------------------------------------------------
10811
+  (0.1ms) rollback transaction
10812
+  (0.0ms) begin transaction
10813
+ -------------------------------------------------------------------
10814
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
10815
+ -------------------------------------------------------------------
10816
+  (0.1ms) rollback transaction
10817
+  (0.0ms) begin transaction
10818
+ ---------------------------------------------------------------------------
10819
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
10820
+ ---------------------------------------------------------------------------
10821
+  (0.0ms) rollback transaction
10822
+  (0.0ms) 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
+  (0.1ms) rollback transaction
10832
+  (0.0ms) begin transaction
10833
+ ---------------------------------------------------------------------
10834
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
10835
+ ---------------------------------------------------------------------
10836
+  (0.0ms) SAVEPOINT active_record_1
10837
+ SQL (0.7ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10839
+  (0.1ms) SAVEPOINT active_record_1
10840
+ SQL (0.2ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
10841
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10842
+  (0.5ms) rollback transaction
10843
+  (0.1ms) begin transaction
10844
+ ---------------------------------------------------------------
10845
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
10846
+ ---------------------------------------------------------------
10847
+  (0.1ms) rollback transaction
10848
+  (0.0ms) begin transaction
10849
+ --------------------------------------------------------------------
10850
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
10851
+ --------------------------------------------------------------------
10852
+  (0.3ms) rollback transaction
10853
+  (0.1ms) begin transaction
10854
+ ---------------------------------------------------------------------------------------------
10855
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
10856
+ ---------------------------------------------------------------------------------------------
10857
+  (0.1ms) SAVEPOINT active_record_1
10858
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10860
+  (0.0ms) SAVEPOINT active_record_1
10861
+ SQL (0.4ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898773293193820.txt"], ["updated_at", Thu, 16 Jan 2014 13:02:09 UTC +00:00]]
10862
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10863
+  (0.0ms) SAVEPOINT active_record_1
10864
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10865
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10866
+  (0.5ms) rollback transaction
10867
+  (0.1ms) begin transaction
10868
+ -----------------------------------------------------------------------------------
10869
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
10870
+ -----------------------------------------------------------------------------------
10871
+  (0.0ms) SAVEPOINT active_record_1
10872
+ SQL (0.3ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10874
+  (0.1ms) SAVEPOINT active_record_1
10875
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10876
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10877
+  (0.0ms) SAVEPOINT active_record_1
10878
+ SQL (0.2ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10880
+  (0.0ms) SAVEPOINT active_record_1
10881
+ SQL (0.0ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
10882
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10883
+  (0.4ms) rollback transaction
10884
+  (0.0ms) begin transaction
10885
+ -------------------------------------------------------------------
10886
+ LocalValidatorsTest: test_should_check_all_the_validations_together
10887
+ -------------------------------------------------------------------
10888
+  (0.1ms) rollback transaction
10889
+  (0.1ms) begin transaction
10890
+ ---------------------------------------------------------
10891
+ LocalValidatorsTest: test_should_check_if_file_is_present
10892
+ ---------------------------------------------------------
10893
+  (0.0ms) rollback transaction
10894
+  (0.0ms) begin transaction
10895
+ ------------------------------------------------------------
10896
+ LocalValidatorsTest: test_should_check_the_file_content_type
10897
+ ------------------------------------------------------------
10898
+  (0.0ms) rollback transaction
10899
+  (0.0ms) begin transaction
10900
+ ----------------------------------------------------
10901
+ LocalValidatorsTest: test_should_check_the_file_size
10902
+ ----------------------------------------------------
10903
+  (0.1ms) rollback transaction
10904
+  (0.0ms) begin transaction
10905
+ ----------------------------------------------------------------------
10906
+ S3FileRecordTest: test_should_maintain_properties_and_delete_correctly
10907
+ ----------------------------------------------------------------------
10908
+  (0.1ms) SAVEPOINT active_record_1
10909
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
10910
+ undefined method `each' for nil:NilClass
10911
+  (0.1ms) rollback transaction
10912
+  (0.0ms) begin transaction
10913
+ ----------------------------------------------------------------------
10914
+ S3FileStringTest: test_should_maintain_properties_and_delete_correctly
10915
+ ----------------------------------------------------------------------
10916
+  (0.1ms) rollback transaction
10917
+  (0.0ms) begin transaction
10918
+ ----------------------------------------------------------------
10919
+ S3FileUploadTest: test_file_should_exists_and_mantain_properties
10920
+ ----------------------------------------------------------------
10921
+  (0.0ms) rollback transaction
10922
+  (0.0ms) begin transaction
10923
+ ------------------------------------------------------------------------
10924
+ S3FileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
10925
+ ------------------------------------------------------------------------
10926
+  (0.0ms) rollback transaction
10927
+  (0.0ms) begin transaction
10928
+ -----------------------------------------------------------------
10929
+ S3ImageRecordTest: test_should_save/destory_main_image_and_thumbs
10930
+ -----------------------------------------------------------------
10931
+  (0.1ms) SAVEPOINT active_record_1
10932
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
10933
+ undefined method `each' for nil:NilClass
10934
+  (0.1ms) rollback transaction
10935
+  (0.0ms) begin transaction
10936
+ -----------------------------------------------------------------
10937
+ S3ImageStringTest: test_should_save/destory_main_image_and_thumbs
10938
+ -----------------------------------------------------------------
10939
+  (0.1ms) rollback transaction
10940
+  (0.0ms) begin transaction
10941
+ -----------------------------------------------------------------
10942
+ S3ImageUploadTest: test_should_save/destory_main_image_and_thumbs
10943
+ -----------------------------------------------------------------
10944
+  (0.1ms) rollback transaction
10945
+  (0.0ms) begin transaction
10946
+ ------------------------------------------------------------------------------------------
10947
+ S3RecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
10948
+ ------------------------------------------------------------------------------------------
10949
+  (0.1ms) SAVEPOINT active_record_1
10950
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
10951
+ undefined method `each' for nil:NilClass
10952
+  (0.1ms) rollback transaction
10953
+  (0.0ms) begin transaction
10954
+ --------------------------------------------------------------------------------
10955
+ S3RecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
10956
+ --------------------------------------------------------------------------------
10957
+  (0.0ms) SAVEPOINT active_record_1
10958
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
10959
+ undefined method `each' for nil:NilClass
10960
+  (0.1ms) rollback transaction
10961
+  (0.0ms) begin transaction
10962
+ ----------------------------------------------------------------
10963
+ S3ValidatorsTest: test_should_check_all_the_validations_together
10964
+ ----------------------------------------------------------------
10965
+  (0.1ms) rollback transaction
10966
+  (0.0ms) begin transaction
10967
+ ------------------------------------------------------
10968
+ S3ValidatorsTest: test_should_check_if_file_is_present
10969
+ ------------------------------------------------------
10970
+  (0.1ms) rollback transaction
10971
+  (0.0ms) begin transaction
10972
+ ---------------------------------------------------------
10973
+ S3ValidatorsTest: test_should_check_the_file_content_type
10974
+ ---------------------------------------------------------
10975
+  (0.1ms) rollback transaction
10976
+  (0.0ms) begin transaction
10977
+ -------------------------------------------------
10978
+ S3ValidatorsTest: test_should_check_the_file_size
10979
+ -------------------------------------------------
10980
+  (0.1ms) rollback transaction
10981
+  (3.4ms) DROP TABLE "all_attacheds"
10982
+  (1.1ms) 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
+  (0.9ms) DROP TABLE "file_attacheds"
10984
+  (1.0ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
10985
+  (0.8ms) DROP TABLE "image_attacheds"
10986
+  (0.8ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
10987
+  (0.1ms) SELECT version FROM "schema_migrations"
10988
+  (0.1ms) begin transaction
10989
+ -------------------------------------------------------------------------
10990
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
10991
+ -------------------------------------------------------------------------
10992
+  (0.1ms) SAVEPOINT active_record_1
10993
+ SQL (2.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
10995
+  (0.0ms) SAVEPOINT active_record_1
10996
+ SQL (0.8ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
10997
+  (0.0ms) RELEASE SAVEPOINT active_record_1
10998
+  (0.4ms) rollback transaction
10999
+  (0.1ms) begin transaction
11000
+ -------------------------------------------------------------------------
11001
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
11002
+ -------------------------------------------------------------------------
11003
+  (0.1ms) rollback transaction
11004
+  (0.0ms) begin transaction
11005
+ -------------------------------------------------------------------
11006
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
11007
+ -------------------------------------------------------------------
11008
+  (0.0ms) rollback transaction
11009
+  (0.0ms) begin transaction
11010
+ ---------------------------------------------------------------------------
11011
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
11012
+ ---------------------------------------------------------------------------
11013
+  (0.0ms) rollback transaction
11014
+  (0.0ms) 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
+  (0.1ms) rollback transaction
11024
+  (0.0ms) begin transaction
11025
+ ---------------------------------------------------------------------
11026
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
11027
+ ---------------------------------------------------------------------
11028
+  (0.1ms) SAVEPOINT active_record_1
11029
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11031
+  (0.0ms) SAVEPOINT active_record_1
11032
+ SQL (0.2ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
11033
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11034
+  (0.6ms) rollback transaction
11035
+  (0.1ms) begin transaction
11036
+ ---------------------------------------------------------------
11037
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
11038
+ ---------------------------------------------------------------
11039
+  (0.1ms) rollback transaction
11040
+  (0.0ms) begin transaction
11041
+ --------------------------------------------------------------------
11042
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
11043
+ --------------------------------------------------------------------
11044
+  (0.4ms) rollback transaction
11045
+  (0.1ms) begin transaction
11046
+ ---------------------------------------------------------------------------------------------
11047
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
11048
+ ---------------------------------------------------------------------------------------------
11049
+  (0.1ms) SAVEPOINT active_record_1
11050
+ SQL (0.5ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11052
+  (0.0ms) SAVEPOINT active_record_1
11053
+ SQL (0.4ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898774077731972.txt"], ["updated_at", Thu, 16 Jan 2014 13:03:27 UTC +00:00]]
11054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11055
+  (0.1ms) SAVEPOINT active_record_1
11056
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11058
+  (0.4ms) rollback transaction
11059
+  (0.1ms) begin transaction
11060
+ -----------------------------------------------------------------------------------
11061
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
11062
+ -----------------------------------------------------------------------------------
11063
+  (0.0ms) SAVEPOINT active_record_1
11064
+ SQL (0.3ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11066
+  (0.0ms) SAVEPOINT active_record_1
11067
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11068
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11069
+  (0.0ms) SAVEPOINT active_record_1
11070
+ SQL (0.2ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11072
+  (0.0ms) SAVEPOINT active_record_1
11073
+ SQL (0.0ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
11074
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11075
+  (0.4ms) rollback transaction
11076
+  (0.0ms) begin transaction
11077
+ -------------------------------------------------------------------
11078
+ LocalValidatorsTest: test_should_check_all_the_validations_together
11079
+ -------------------------------------------------------------------
11080
+  (0.1ms) rollback transaction
11081
+  (0.1ms) begin transaction
11082
+ ---------------------------------------------------------
11083
+ LocalValidatorsTest: test_should_check_if_file_is_present
11084
+ ---------------------------------------------------------
11085
+  (0.0ms) rollback transaction
11086
+  (0.0ms) begin transaction
11087
+ ------------------------------------------------------------
11088
+ LocalValidatorsTest: test_should_check_the_file_content_type
11089
+ ------------------------------------------------------------
11090
+  (0.0ms) rollback transaction
11091
+  (0.0ms) begin transaction
11092
+ ----------------------------------------------------
11093
+ LocalValidatorsTest: test_should_check_the_file_size
11094
+ ----------------------------------------------------
11095
+  (0.1ms) rollback transaction
11096
+  (0.0ms) begin transaction
11097
+ ----------------------------------------------------------------------
11098
+ S3FileRecordTest: test_should_maintain_properties_and_delete_correctly
11099
+ ----------------------------------------------------------------------
11100
+  (0.1ms) SAVEPOINT active_record_1
11101
+ SQL (0.4ms) INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11103
+  (0.1ms) SAVEPOINT active_record_1
11104
+ SQL (0.3ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11105
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11106
+  (3.0ms) rollback transaction
11107
+  (0.1ms) begin transaction
11108
+ ----------------------------------------------------------------------
11109
+ S3FileStringTest: test_should_maintain_properties_and_delete_correctly
11110
+ ----------------------------------------------------------------------
11111
+  (0.1ms) rollback transaction
11112
+  (0.0ms) begin transaction
11113
+ ----------------------------------------------------------------
11114
+ S3FileUploadTest: test_file_should_exists_and_mantain_properties
11115
+ ----------------------------------------------------------------
11116
+  (0.1ms) rollback transaction
11117
+  (0.1ms) begin transaction
11118
+ ------------------------------------------------------------------------
11119
+ S3FileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
11120
+ ------------------------------------------------------------------------
11121
+  (0.2ms) rollback transaction
11122
+  (0.1ms) begin transaction
11123
+ -----------------------------------------------------------------
11124
+ S3ImageRecordTest: test_should_save/destory_main_image_and_thumbs
11125
+ -----------------------------------------------------------------
11126
+  (0.1ms) SAVEPOINT active_record_1
11127
+ SQL (0.8ms) INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11129
+  (0.1ms) SAVEPOINT active_record_1
11130
+ SQL (0.3ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
11131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11132
+  (0.4ms) rollback transaction
11133
+  (0.1ms) begin transaction
11134
+ -----------------------------------------------------------------
11135
+ S3ImageStringTest: test_should_save/destory_main_image_and_thumbs
11136
+ -----------------------------------------------------------------
11137
+  (0.1ms) rollback transaction
11138
+  (0.1ms) begin transaction
11139
+ -----------------------------------------------------------------
11140
+ S3ImageUploadTest: test_should_save/destory_main_image_and_thumbs
11141
+ -----------------------------------------------------------------
11142
+  (0.1ms) rollback transaction
11143
+  (0.1ms) begin transaction
11144
+ ------------------------------------------------------------------------------------------
11145
+ S3RecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
11146
+ ------------------------------------------------------------------------------------------
11147
+  (0.1ms) SAVEPOINT active_record_1
11148
+ SQL (0.5ms) INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11150
+  (0.1ms) SAVEPOINT active_record_1
11151
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11153
+  (0.1ms) SAVEPOINT active_record_1
11154
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11155
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11156
+  (1.2ms) rollback transaction
11157
+  (0.1ms) begin transaction
11158
+ --------------------------------------------------------------------------------
11159
+ S3RecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
11160
+ --------------------------------------------------------------------------------
11161
+  (0.1ms) SAVEPOINT active_record_1
11162
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11164
+  (0.1ms) SAVEPOINT active_record_1
11165
+ SQL (0.3ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11166
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11167
+  (0.1ms) SAVEPOINT active_record_1
11168
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11170
+  (0.1ms) SAVEPOINT active_record_1
11171
+ SQL (0.1ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
11172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11173
+  (2.8ms) rollback transaction
11174
+  (0.1ms) begin transaction
11175
+ ----------------------------------------------------------------
11176
+ S3ValidatorsTest: test_should_check_all_the_validations_together
11177
+ ----------------------------------------------------------------
11178
+  (0.1ms) rollback transaction
11179
+  (0.0ms) begin transaction
11180
+ ------------------------------------------------------
11181
+ S3ValidatorsTest: test_should_check_if_file_is_present
11182
+ ------------------------------------------------------
11183
+  (0.1ms) rollback transaction
11184
+  (0.1ms) begin transaction
11185
+ ---------------------------------------------------------
11186
+ S3ValidatorsTest: test_should_check_the_file_content_type
11187
+ ---------------------------------------------------------
11188
+  (0.1ms) rollback transaction
11189
+  (0.0ms) begin transaction
11190
+ -------------------------------------------------
11191
+ S3ValidatorsTest: test_should_check_the_file_size
11192
+ -------------------------------------------------
11193
+  (0.1ms) rollback transaction
11194
+  (3.4ms) DROP TABLE "all_attacheds"
11195
+  (1.1ms) 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
+  (0.9ms) DROP TABLE "file_attacheds"
11197
+  (0.8ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
11198
+  (0.7ms) DROP TABLE "image_attacheds"
11199
+  (0.8ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
11200
+  (0.1ms) SELECT version FROM "schema_migrations"
11201
+  (0.1ms) begin transaction
11202
+ -------------------------------------------------------------------------
11203
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
11204
+ -------------------------------------------------------------------------
11205
+  (0.1ms) SAVEPOINT active_record_1
11206
+ SQL (2.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11208
+  (0.0ms) SAVEPOINT active_record_1
11209
+ SQL (0.9ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11210
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11211
+  (0.4ms) rollback transaction
11212
+  (0.1ms) begin transaction
11213
+ -------------------------------------------------------------------------
11214
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
11215
+ -------------------------------------------------------------------------
11216
+  (0.1ms) rollback transaction
11217
+  (0.0ms) begin transaction
11218
+ -------------------------------------------------------------------
11219
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
11220
+ -------------------------------------------------------------------
11221
+  (0.1ms) rollback transaction
11222
+  (0.0ms) begin transaction
11223
+ ---------------------------------------------------------------------------
11224
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
11225
+ ---------------------------------------------------------------------------
11226
+  (0.0ms) rollback transaction
11227
+  (0.0ms) 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
+  (0.1ms) rollback transaction
11237
+  (0.1ms) begin transaction
11238
+ ---------------------------------------------------------------------
11239
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
11240
+ ---------------------------------------------------------------------
11241
+  (0.0ms) SAVEPOINT active_record_1
11242
+ SQL (0.9ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11244
+  (0.1ms) SAVEPOINT active_record_1
11245
+ SQL (0.3ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
11246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11247
+  (0.5ms) rollback transaction
11248
+  (0.1ms) begin transaction
11249
+ ---------------------------------------------------------------
11250
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
11251
+ ---------------------------------------------------------------
11252
+  (0.1ms) rollback transaction
11253
+  (0.0ms) begin transaction
11254
+ --------------------------------------------------------------------
11255
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
11256
+ --------------------------------------------------------------------
11257
+  (0.2ms) rollback transaction
11258
+  (0.1ms) begin transaction
11259
+ ---------------------------------------------------------------------------------------------
11260
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
11261
+ ---------------------------------------------------------------------------------------------
11262
+  (0.1ms) SAVEPOINT active_record_1
11263
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11265
+  (0.0ms) SAVEPOINT active_record_1
11266
+ SQL (0.3ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898775577781730.txt"], ["updated_at", Thu, 16 Jan 2014 13:05:57 UTC +00:00]]
11267
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11268
+  (0.1ms) SAVEPOINT active_record_1
11269
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11270
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11271
+  (0.5ms) rollback transaction
11272
+  (0.1ms) begin transaction
11273
+ -----------------------------------------------------------------------------------
11274
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
11275
+ -----------------------------------------------------------------------------------
11276
+  (0.0ms) SAVEPOINT active_record_1
11277
+ SQL (0.3ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11279
+  (0.0ms) SAVEPOINT active_record_1
11280
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11282
+  (0.1ms) SAVEPOINT active_record_1
11283
+ SQL (0.2ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11285
+  (0.0ms) SAVEPOINT active_record_1
11286
+ SQL (0.1ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
11287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11288
+  (0.4ms) rollback transaction
11289
+  (0.0ms) begin transaction
11290
+ -------------------------------------------------------------------
11291
+ LocalValidatorsTest: test_should_check_all_the_validations_together
11292
+ -------------------------------------------------------------------
11293
+  (0.1ms) rollback transaction
11294
+  (0.0ms) begin transaction
11295
+ ---------------------------------------------------------
11296
+ LocalValidatorsTest: test_should_check_if_file_is_present
11297
+ ---------------------------------------------------------
11298
+  (0.0ms) rollback transaction
11299
+  (0.0ms) begin transaction
11300
+ ------------------------------------------------------------
11301
+ LocalValidatorsTest: test_should_check_the_file_content_type
11302
+ ------------------------------------------------------------
11303
+  (0.0ms) rollback transaction
11304
+  (0.0ms) begin transaction
11305
+ ----------------------------------------------------
11306
+ LocalValidatorsTest: test_should_check_the_file_size
11307
+ ----------------------------------------------------
11308
+  (0.1ms) rollback transaction
11309
+  (0.0ms) begin transaction
11310
+ ----------------------------------------------------------------------
11311
+ S3FileRecordTest: test_should_maintain_properties_and_delete_correctly
11312
+ ----------------------------------------------------------------------
11313
+  (0.1ms) SAVEPOINT active_record_1
11314
+ SQL (0.6ms) INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11316
+  (0.1ms) SAVEPOINT active_record_1
11317
+ SQL (0.3ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11318
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11319
+  (2.7ms) rollback transaction
11320
+  (0.1ms) begin transaction
11321
+ ----------------------------------------------------------------------
11322
+ S3FileStringTest: test_should_maintain_properties_and_delete_correctly
11323
+ ----------------------------------------------------------------------
11324
+  (0.2ms) rollback transaction
11325
+  (0.1ms) begin transaction
11326
+ ----------------------------------------------------------------
11327
+ S3FileUploadTest: test_file_should_exists_and_mantain_properties
11328
+ ----------------------------------------------------------------
11329
+  (0.1ms) rollback transaction
11330
+  (0.1ms) begin transaction
11331
+ ------------------------------------------------------------------------
11332
+ S3FileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
11333
+ ------------------------------------------------------------------------
11334
+  (0.1ms) rollback transaction
11335
+  (0.0ms) begin transaction
11336
+ -----------------------------------------------------------------
11337
+ S3ImageRecordTest: test_should_save/destory_main_image_and_thumbs
11338
+ -----------------------------------------------------------------
11339
+  (0.0ms) SAVEPOINT active_record_1
11340
+ SQL (0.6ms) INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11342
+  (0.1ms) SAVEPOINT active_record_1
11343
+ SQL (0.8ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
11344
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11345
+  (0.6ms) rollback transaction
11346
+  (0.0ms) begin transaction
11347
+ -----------------------------------------------------------------
11348
+ S3ImageStringTest: test_should_save/destory_main_image_and_thumbs
11349
+ -----------------------------------------------------------------
11350
+  (0.1ms) rollback transaction
11351
+  (0.1ms) begin transaction
11352
+ -----------------------------------------------------------------
11353
+ S3ImageUploadTest: test_should_save/destory_main_image_and_thumbs
11354
+ -----------------------------------------------------------------
11355
+  (0.2ms) rollback transaction
11356
+  (0.1ms) begin transaction
11357
+ ------------------------------------------------------------------------------------------
11358
+ S3RecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
11359
+ ------------------------------------------------------------------------------------------
11360
+  (0.1ms) SAVEPOINT active_record_1
11361
+ SQL (0.4ms) INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11363
+  (0.1ms) SAVEPOINT active_record_1
11364
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11366
+  (0.1ms) SAVEPOINT active_record_1
11367
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11368
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11369
+  (0.3ms) rollback transaction
11370
+  (0.0ms) begin transaction
11371
+ --------------------------------------------------------------------------------
11372
+ S3RecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
11373
+ --------------------------------------------------------------------------------
11374
+  (0.0ms) SAVEPOINT active_record_1
11375
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11377
+  (0.1ms) SAVEPOINT active_record_1
11378
+ SQL (0.3ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11379
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11380
+  (0.1ms) SAVEPOINT active_record_1
11381
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11383
+  (0.1ms) SAVEPOINT active_record_1
11384
+ SQL (0.1ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
11385
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11386
+  (0.3ms) rollback transaction
11387
+  (0.1ms) begin transaction
11388
+ ----------------------------------------------------------------
11389
+ S3ValidatorsTest: test_should_check_all_the_validations_together
11390
+ ----------------------------------------------------------------
11391
+  (0.1ms) rollback transaction
11392
+  (0.0ms) begin transaction
11393
+ ------------------------------------------------------
11394
+ S3ValidatorsTest: test_should_check_if_file_is_present
11395
+ ------------------------------------------------------
11396
+  (0.1ms) rollback transaction
11397
+  (0.1ms) begin transaction
11398
+ ---------------------------------------------------------
11399
+ S3ValidatorsTest: test_should_check_the_file_content_type
11400
+ ---------------------------------------------------------
11401
+  (0.1ms) rollback transaction
11402
+  (0.1ms) begin transaction
11403
+ -------------------------------------------------
11404
+ S3ValidatorsTest: test_should_check_the_file_size
11405
+ -------------------------------------------------
11406
+  (0.1ms) rollback transaction
11407
+  (1.2ms) DROP TABLE "all_attacheds"
11408
+  (1.1ms) 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
+  (0.8ms) DROP TABLE "file_attacheds"
11410
+  (0.9ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
11411
+  (0.8ms) DROP TABLE "image_attacheds"
11412
+  (0.9ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
11413
+  (0.1ms) SELECT version FROM "schema_migrations"
11414
+  (0.1ms) begin transaction
11415
+ ----------------------------------------------------------------
11416
+ LocalFileRecordTest: test_should_delete_using_delete_attr_method
11417
+ ----------------------------------------------------------------
11418
+  (0.0ms) SAVEPOINT active_record_1
11419
+ SQL (3.7ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11421
+  (0.5ms) rollback transaction
11422
+  (0.1ms) begin transaction
11423
+ -------------------------------------------------------------------------
11424
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
11425
+ -------------------------------------------------------------------------
11426
+  (0.0ms) SAVEPOINT active_record_1
11427
+ SQL (0.3ms) INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11429
+  (0.0ms) SAVEPOINT active_record_1
11430
+ SQL (0.9ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11432
+  (0.3ms) rollback transaction
11433
+  (0.0ms) begin transaction
11434
+ -------------------------------------------------------------------------
11435
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
11436
+ -------------------------------------------------------------------------
11437
+  (0.1ms) rollback transaction
11438
+  (0.0ms) begin transaction
11439
+ -------------------------------------------------------------------
11440
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
11441
+ -------------------------------------------------------------------
11442
+  (0.1ms) rollback transaction
11443
+  (0.0ms) begin transaction
11444
+ ---------------------------------------------------------------------------
11445
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
11446
+ ---------------------------------------------------------------------------
11447
+  (0.0ms) rollback transaction
11448
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
11458
+  (0.0ms) begin transaction
11459
+ ---------------------------------------------------------------------
11460
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
11461
+ ---------------------------------------------------------------------
11462
+  (0.0ms) SAVEPOINT active_record_1
11463
+ SQL (0.9ms) INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11465
+  (0.1ms) SAVEPOINT active_record_1
11466
+ SQL (0.3ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
11467
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11468
+  (0.6ms) rollback transaction
11469
+  (0.1ms) begin transaction
11470
+ ---------------------------------------------------------------
11471
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
11472
+ ---------------------------------------------------------------
11473
+  (0.1ms) rollback transaction
11474
+  (0.0ms) begin transaction
11475
+ --------------------------------------------------------------------
11476
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
11477
+ --------------------------------------------------------------------
11478
+  (0.1ms) rollback transaction
11479
+  (0.0ms) begin transaction
11480
+ ---------------------------------------------------------------------------------------------
11481
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
11482
+ ---------------------------------------------------------------------------------------------
11483
+  (0.1ms) SAVEPOINT active_record_1
11484
+ SQL (0.4ms) INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11486
+  (0.0ms) SAVEPOINT active_record_1
11487
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11489
+  (0.0ms) SAVEPOINT active_record_1
11490
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11492
+  (0.5ms) rollback transaction
11493
+  (0.0ms) begin transaction
11494
+ -----------------------------------------------------------------------------------
11495
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
11496
+ -----------------------------------------------------------------------------------
11497
+  (0.0ms) SAVEPOINT active_record_1
11498
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11500
+  (0.0ms) SAVEPOINT active_record_1
11501
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11502
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11503
+  (0.0ms) SAVEPOINT active_record_1
11504
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11506
+  (0.0ms) SAVEPOINT active_record_1
11507
+ SQL (0.0ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
11508
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11509
+  (0.4ms) rollback transaction
11510
+  (0.1ms) begin transaction
11511
+ -------------------------------------------------------------------
11512
+ LocalValidatorsTest: test_should_check_all_the_validations_together
11513
+ -------------------------------------------------------------------
11514
+  (0.1ms) rollback transaction
11515
+  (0.0ms) begin transaction
11516
+ ---------------------------------------------------------
11517
+ LocalValidatorsTest: test_should_check_if_file_is_present
11518
+ ---------------------------------------------------------
11519
+  (0.0ms) rollback transaction
11520
+  (0.0ms) begin transaction
11521
+ ------------------------------------------------------------
11522
+ LocalValidatorsTest: test_should_check_the_file_content_type
11523
+ ------------------------------------------------------------
11524
+  (0.0ms) rollback transaction
11525
+  (0.0ms) begin transaction
11526
+ ----------------------------------------------------
11527
+ LocalValidatorsTest: test_should_check_the_file_size
11528
+ ----------------------------------------------------
11529
+  (0.1ms) rollback transaction
11530
+  (2.9ms) DROP TABLE "all_attacheds"
11531
+  (1.0ms) 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
+  (0.8ms) DROP TABLE "file_attacheds"
11533
+  (0.8ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
11534
+  (0.9ms) DROP TABLE "image_attacheds"
11535
+  (1.0ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
11536
+  (0.1ms) SELECT version FROM "schema_migrations"
11537
+  (0.1ms) begin transaction
11538
+ ----------------------------------------------------------------
11539
+ LocalFileRecordTest: test_should_delete_using_delete_attr_method
11540
+ ----------------------------------------------------------------
11541
+  (0.0ms) SAVEPOINT active_record_1
11542
+ SQL (2.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11544
+  (0.0ms) SAVEPOINT active_record_1
11545
+ SQL (1.0ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", nil], ["updated_at", Thu, 16 Jan 2014 13:28:06 UTC +00:00]]
11546
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11547
+  (0.4ms) rollback transaction
11548
+  (0.1ms) begin transaction
11549
+ -------------------------------------------------------------------------
11550
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
11551
+ -------------------------------------------------------------------------
11552
+  (0.0ms) SAVEPOINT active_record_1
11553
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11555
+  (0.0ms) SAVEPOINT active_record_1
11556
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11557
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11558
+  (0.3ms) rollback transaction
11559
+  (0.0ms) begin transaction
11560
+ -------------------------------------------------------------------------
11561
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
11562
+ -------------------------------------------------------------------------
11563
+  (0.1ms) rollback transaction
11564
+  (0.0ms) begin transaction
11565
+ -------------------------------------------------------------------
11566
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
11567
+ -------------------------------------------------------------------
11568
+  (0.1ms) rollback transaction
11569
+  (0.0ms) begin transaction
11570
+ ---------------------------------------------------------------------------
11571
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
11572
+ ---------------------------------------------------------------------------
11573
+  (0.0ms) rollback transaction
11574
+  (0.0ms) 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
+  (0.1ms) rollback transaction
11584
+  (0.1ms) begin transaction
11585
+ ---------------------------------------------------------------------
11586
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
11587
+ ---------------------------------------------------------------------
11588
+  (0.0ms) SAVEPOINT active_record_1
11589
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11591
+  (0.1ms) SAVEPOINT active_record_1
11592
+ SQL (0.2ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
11593
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11594
+  (0.6ms) rollback transaction
11595
+  (0.1ms) begin transaction
11596
+ ---------------------------------------------------------------
11597
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
11598
+ ---------------------------------------------------------------
11599
+  (0.1ms) rollback transaction
11600
+  (0.0ms) begin transaction
11601
+ --------------------------------------------------------------------
11602
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
11603
+ --------------------------------------------------------------------
11604
+  (0.1ms) rollback transaction
11605
+  (0.1ms) begin transaction
11606
+ ---------------------------------------------------------------------------------------------
11607
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
11608
+ ---------------------------------------------------------------------------------------------
11609
+  (0.1ms) SAVEPOINT active_record_1
11610
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11612
+  (0.0ms) SAVEPOINT active_record_1
11613
+ SQL (0.2ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898788876105830.txt"], ["updated_at", Thu, 16 Jan 2014 13:28:07 UTC +00:00]]
11614
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11615
+  (0.0ms) SAVEPOINT active_record_1
11616
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11617
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11618
+  (0.3ms) rollback transaction
11619
+  (0.1ms) begin transaction
11620
+ -----------------------------------------------------------------------------------
11621
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
11622
+ -----------------------------------------------------------------------------------
11623
+  (0.0ms) SAVEPOINT active_record_1
11624
+ SQL (0.3ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11626
+  (0.0ms) SAVEPOINT active_record_1
11627
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11628
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11629
+  (0.0ms) SAVEPOINT active_record_1
11630
+ SQL (0.2ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11632
+  (0.0ms) SAVEPOINT active_record_1
11633
+ SQL (0.0ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
11634
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11635
+  (0.5ms) rollback transaction
11636
+  (0.1ms) begin transaction
11637
+ -------------------------------------------------------------------
11638
+ LocalValidatorsTest: test_should_check_all_the_validations_together
11639
+ -------------------------------------------------------------------
11640
+  (0.1ms) rollback transaction
11641
+  (0.0ms) begin transaction
11642
+ ---------------------------------------------------------
11643
+ LocalValidatorsTest: test_should_check_if_file_is_present
11644
+ ---------------------------------------------------------
11645
+  (0.0ms) rollback transaction
11646
+  (0.0ms) begin transaction
11647
+ ------------------------------------------------------------
11648
+ LocalValidatorsTest: test_should_check_the_file_content_type
11649
+ ------------------------------------------------------------
11650
+  (0.0ms) rollback transaction
11651
+  (0.0ms) begin transaction
11652
+ ----------------------------------------------------
11653
+ LocalValidatorsTest: test_should_check_the_file_size
11654
+ ----------------------------------------------------
11655
+  (0.1ms) rollback transaction
11656
+  (3.4ms) DROP TABLE "all_attacheds"
11657
+  (1.2ms) 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
+  (0.9ms) DROP TABLE "file_attacheds"
11659
+  (1.0ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
11660
+  (0.8ms) DROP TABLE "image_attacheds"
11661
+  (0.9ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
11662
+  (0.1ms) SELECT version FROM "schema_migrations"
11663
+  (0.1ms) begin transaction
11664
+ ----------------------------------------------------------------
11665
+ LocalFileRecordTest: test_should_delete_using_delete_attr_method
11666
+ ----------------------------------------------------------------
11667
+  (0.0ms) SAVEPOINT active_record_1
11668
+ SQL (2.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11670
+  (0.0ms) SAVEPOINT active_record_1
11671
+ SQL (1.0ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", nil], ["updated_at", Thu, 16 Jan 2014 13:30:44 UTC +00:00]]
11672
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11673
+  (0.4ms) rollback transaction
11674
+  (0.1ms) begin transaction
11675
+ -------------------------------------------------------------------------
11676
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
11677
+ -------------------------------------------------------------------------
11678
+  (0.0ms) SAVEPOINT active_record_1
11679
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11681
+  (0.0ms) SAVEPOINT active_record_1
11682
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11683
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11684
+  (0.4ms) rollback transaction
11685
+  (0.0ms) begin transaction
11686
+ -------------------------------------------------------------------------
11687
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
11688
+ -------------------------------------------------------------------------
11689
+  (0.1ms) rollback transaction
11690
+  (0.0ms) begin transaction
11691
+ -------------------------------------------------------------------
11692
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
11693
+ -------------------------------------------------------------------
11694
+  (0.1ms) rollback transaction
11695
+  (0.0ms) begin transaction
11696
+ ---------------------------------------------------------------------------
11697
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
11698
+ ---------------------------------------------------------------------------
11699
+  (0.0ms) rollback transaction
11700
+  (0.0ms) 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
+  (0.1ms) rollback transaction
11710
+  (0.0ms) begin transaction
11711
+ ---------------------------------------------------------------------
11712
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
11713
+ ---------------------------------------------------------------------
11714
+  (0.0ms) SAVEPOINT active_record_1
11715
+ SQL (0.6ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11717
+  (0.0ms) SAVEPOINT active_record_1
11718
+ SQL (0.2ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
11719
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11720
+  (0.5ms) rollback transaction
11721
+  (0.1ms) begin transaction
11722
+ ---------------------------------------------------------------
11723
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
11724
+ ---------------------------------------------------------------
11725
+  (0.1ms) rollback transaction
11726
+  (0.0ms) begin transaction
11727
+ --------------------------------------------------------------------
11728
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
11729
+ --------------------------------------------------------------------
11730
+  (0.1ms) rollback transaction
11731
+  (0.0ms) begin transaction
11732
+ ---------------------------------------------------------------------------------------------
11733
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
11734
+ ---------------------------------------------------------------------------------------------
11735
+  (0.1ms) SAVEPOINT active_record_1
11736
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11738
+  (0.0ms) SAVEPOINT active_record_1
11739
+ SQL (0.2ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898790454514480.txt"], ["updated_at", Thu, 16 Jan 2014 13:30:45 UTC +00:00]]
11740
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11741
+  (0.0ms) SAVEPOINT active_record_1
11742
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11743
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11744
+  (0.3ms) rollback transaction
11745
+  (0.1ms) begin transaction
11746
+ -----------------------------------------------------------------------------------
11747
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
11748
+ -----------------------------------------------------------------------------------
11749
+  (0.1ms) SAVEPOINT active_record_1
11750
+ SQL (0.5ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11752
+  (0.0ms) SAVEPOINT active_record_1
11753
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11754
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11755
+  (0.1ms) SAVEPOINT active_record_1
11756
+ SQL (0.2ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11758
+  (0.0ms) SAVEPOINT active_record_1
11759
+ SQL (0.1ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
11760
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11761
+  (0.5ms) rollback transaction
11762
+  (0.0ms) begin transaction
11763
+ -------------------------------------------------------------------
11764
+ LocalValidatorsTest: test_should_check_all_the_validations_together
11765
+ -------------------------------------------------------------------
11766
+  (0.1ms) rollback transaction
11767
+  (0.0ms) begin transaction
11768
+ ---------------------------------------------------------
11769
+ LocalValidatorsTest: test_should_check_if_file_is_present
11770
+ ---------------------------------------------------------
11771
+  (0.0ms) rollback transaction
11772
+  (0.0ms) begin transaction
11773
+ ------------------------------------------------------------
11774
+ LocalValidatorsTest: test_should_check_the_file_content_type
11775
+ ------------------------------------------------------------
11776
+  (0.0ms) rollback transaction
11777
+  (0.0ms) begin transaction
11778
+ ----------------------------------------------------
11779
+ LocalValidatorsTest: test_should_check_the_file_size
11780
+ ----------------------------------------------------
11781
+  (0.1ms) rollback transaction
11782
+  (3.0ms) DROP TABLE "all_attacheds"
11783
+  (0.9ms) 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
+  (0.9ms) DROP TABLE "file_attacheds"
11785
+  (0.9ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
11786
+  (0.8ms) DROP TABLE "image_attacheds"
11787
+  (1.2ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
11788
+  (0.1ms) SELECT version FROM "schema_migrations"
11789
+  (0.1ms) begin transaction
11790
+ --------------------------------------------------------------------------
11791
+ LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
11792
+ --------------------------------------------------------------------------
11793
+  (0.1ms) SAVEPOINT active_record_1
11794
+ SQL (2.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11796
+  (0.0ms) SAVEPOINT active_record_1
11797
+ SQL (1.1ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", nil], ["updated_at", Thu, 16 Jan 2014 13:34:56 UTC +00:00]]
11798
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11799
+  (0.4ms) rollback transaction
11800
+  (0.1ms) begin transaction
11801
+ -------------------------------------------------------------------------
11802
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
11803
+ -------------------------------------------------------------------------
11804
+  (0.0ms) SAVEPOINT active_record_1
11805
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11807
+  (0.0ms) SAVEPOINT active_record_1
11808
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11809
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11810
+  (0.3ms) rollback transaction
11811
+  (0.0ms) begin transaction
11812
+ -------------------------------------------------------------------------
11813
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
11814
+ -------------------------------------------------------------------------
11815
+  (0.1ms) rollback transaction
11816
+  (0.0ms) begin transaction
11817
+ -------------------------------------------------------------------
11818
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
11819
+ -------------------------------------------------------------------
11820
+  (0.1ms) rollback transaction
11821
+  (0.0ms) begin transaction
11822
+ ---------------------------------------------------------------------------
11823
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
11824
+ ---------------------------------------------------------------------------
11825
+  (0.0ms) rollback transaction
11826
+  (0.0ms) 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
+  (0.1ms) rollback transaction
11836
+  (0.1ms) begin transaction
11837
+ ---------------------------------------------------------------------
11838
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
11839
+ ---------------------------------------------------------------------
11840
+  (0.0ms) SAVEPOINT active_record_1
11841
+ SQL (0.6ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11843
+  (0.1ms) SAVEPOINT active_record_1
11844
+ SQL (0.2ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
11845
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11846
+  (0.4ms) rollback transaction
11847
+  (0.0ms) begin transaction
11848
+ ---------------------------------------------------------------
11849
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
11850
+ ---------------------------------------------------------------
11851
+  (0.1ms) rollback transaction
11852
+  (0.0ms) begin transaction
11853
+ --------------------------------------------------------------------
11854
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
11855
+ --------------------------------------------------------------------
11856
+  (0.1ms) rollback transaction
11857
+  (0.0ms) begin transaction
11858
+ ---------------------------------------------------------------------------------------------
11859
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
11860
+ ---------------------------------------------------------------------------------------------
11861
+  (0.1ms) SAVEPOINT active_record_1
11862
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11864
+  (0.0ms) SAVEPOINT active_record_1
11865
+ SQL (0.2ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898792975021340.txt"], ["updated_at", Thu, 16 Jan 2014 13:34:57 UTC +00:00]]
11866
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11867
+  (0.0ms) SAVEPOINT active_record_1
11868
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11870
+  (0.4ms) rollback transaction
11871
+  (0.1ms) begin transaction
11872
+ -----------------------------------------------------------------------------------
11873
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
11874
+ -----------------------------------------------------------------------------------
11875
+  (0.0ms) SAVEPOINT active_record_1
11876
+ SQL (0.3ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11878
+  (0.0ms) SAVEPOINT active_record_1
11879
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11881
+  (0.1ms) SAVEPOINT active_record_1
11882
+ SQL (0.2ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11884
+  (0.0ms) SAVEPOINT active_record_1
11885
+ SQL (0.1ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
11886
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11887
+  (0.4ms) rollback transaction
11888
+  (0.0ms) begin transaction
11889
+ -------------------------------------------------------------------
11890
+ LocalValidatorsTest: test_should_check_all_the_validations_together
11891
+ -------------------------------------------------------------------
11892
+  (0.1ms) rollback transaction
11893
+  (0.1ms) begin transaction
11894
+ ---------------------------------------------------------
11895
+ LocalValidatorsTest: test_should_check_if_file_is_present
11896
+ ---------------------------------------------------------
11897
+  (0.0ms) rollback transaction
11898
+  (0.0ms) begin transaction
11899
+ ------------------------------------------------------------
11900
+ LocalValidatorsTest: test_should_check_the_file_content_type
11901
+ ------------------------------------------------------------
11902
+  (0.0ms) rollback transaction
11903
+  (0.0ms) begin transaction
11904
+ ----------------------------------------------------
11905
+ LocalValidatorsTest: test_should_check_the_file_size
11906
+ ----------------------------------------------------
11907
+  (0.1ms) rollback transaction
11908
+  (2.7ms) DROP TABLE "all_attacheds"
11909
+  (0.9ms) 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
+  (1.2ms) DROP TABLE "file_attacheds"
11911
+  (1.1ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
11912
+  (1.1ms) DROP TABLE "image_attacheds"
11913
+  (1.1ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
11914
+  (0.1ms) SELECT version FROM "schema_migrations"
11915
+  (0.1ms) begin transaction
11916
+ --------------------------------------------------------------------------
11917
+ LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
11918
+ --------------------------------------------------------------------------
11919
+  (0.1ms) SAVEPOINT active_record_1
11920
+ SQL (2.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11922
+  (0.0ms) SAVEPOINT active_record_1
11923
+ SQL (0.9ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", nil], ["updated_at", Thu, 16 Jan 2014 13:35:55 UTC +00:00]]
11924
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11925
+  (0.5ms) rollback transaction
11926
+  (0.1ms) begin transaction
11927
+ -------------------------------------------------------------------------
11928
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
11929
+ -------------------------------------------------------------------------
11930
+  (0.0ms) SAVEPOINT active_record_1
11931
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11933
+  (0.0ms) SAVEPOINT active_record_1
11934
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11935
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11936
+  (0.3ms) rollback transaction
11937
+  (0.1ms) begin transaction
11938
+ -------------------------------------------------------------------------
11939
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
11940
+ -------------------------------------------------------------------------
11941
+  (0.1ms) rollback transaction
11942
+  (0.1ms) begin transaction
11943
+ -------------------------------------------------------------------
11944
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
11945
+ -------------------------------------------------------------------
11946
+  (0.1ms) rollback transaction
11947
+  (0.0ms) begin transaction
11948
+ ---------------------------------------------------------------------------
11949
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
11950
+ ---------------------------------------------------------------------------
11951
+  (0.1ms) rollback transaction
11952
+  (0.0ms) 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
+  (0.1ms) rollback transaction
11962
+  (0.0ms) begin transaction
11963
+ ---------------------------------------------------------------------
11964
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
11965
+ ---------------------------------------------------------------------
11966
+  (0.0ms) SAVEPOINT active_record_1
11967
+ SQL (0.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11969
+  (0.0ms) SAVEPOINT active_record_1
11970
+ SQL (0.2ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
11971
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11972
+  (0.5ms) rollback transaction
11973
+  (0.1ms) begin transaction
11974
+ ---------------------------------------------------------------
11975
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
11976
+ ---------------------------------------------------------------
11977
+  (0.1ms) rollback transaction
11978
+  (0.0ms) begin transaction
11979
+ --------------------------------------------------------------------
11980
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
11981
+ --------------------------------------------------------------------
11982
+  (0.1ms) rollback transaction
11983
+  (0.0ms) begin transaction
11984
+ ---------------------------------------------------------------------------------------------
11985
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
11986
+ ---------------------------------------------------------------------------------------------
11987
+  (0.1ms) SAVEPOINT active_record_1
11988
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11990
+  (0.0ms) SAVEPOINT active_record_1
11991
+ SQL (0.2ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898793557912152.txt"], ["updated_at", Thu, 16 Jan 2014 13:35:55 UTC +00:00]]
11992
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11993
+  (0.0ms) SAVEPOINT active_record_1
11994
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
11995
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11996
+  (0.4ms) rollback transaction
11997
+  (0.1ms) begin transaction
11998
+ -----------------------------------------------------------------------------------
11999
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
12000
+ -----------------------------------------------------------------------------------
12001
+  (0.0ms) SAVEPOINT active_record_1
12002
+ SQL (0.3ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12004
+  (0.0ms) SAVEPOINT active_record_1
12005
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
12006
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12007
+  (0.0ms) SAVEPOINT active_record_1
12008
+ SQL (0.2ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12010
+  (0.0ms) SAVEPOINT active_record_1
12011
+ SQL (0.1ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
12012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12013
+  (0.5ms) rollback transaction
12014
+  (0.0ms) begin transaction
12015
+ -------------------------------------------------------------------
12016
+ LocalValidatorsTest: test_should_check_all_the_validations_together
12017
+ -------------------------------------------------------------------
12018
+  (0.1ms) rollback transaction
12019
+  (0.1ms) begin transaction
12020
+ ---------------------------------------------------------
12021
+ LocalValidatorsTest: test_should_check_if_file_is_present
12022
+ ---------------------------------------------------------
12023
+  (0.0ms) rollback transaction
12024
+  (0.1ms) begin transaction
12025
+ ------------------------------------------------------------
12026
+ LocalValidatorsTest: test_should_check_the_file_content_type
12027
+ ------------------------------------------------------------
12028
+  (0.0ms) rollback transaction
12029
+  (0.0ms) begin transaction
12030
+ ----------------------------------------------------
12031
+ LocalValidatorsTest: test_should_check_the_file_size
12032
+ ----------------------------------------------------
12033
+  (0.1ms) rollback transaction
12034
+  (0.4ms) 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) 
12035
+  (0.1ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
12036
+  (0.1ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) 
12037
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
12038
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12039
+  (0.1ms) SELECT version FROM "schema_migrations"
12040
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130820222534')
12041
+  (0.1ms) begin transaction
12042
+ --------------------------------------------------------------------------
12043
+ LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
12044
+ --------------------------------------------------------------------------
12045
+  (0.1ms) rollback transaction
12046
+  (0.1ms) begin transaction
12047
+ -------------------------------------------------------------------------
12048
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
12049
+ -------------------------------------------------------------------------
12050
+  (0.1ms) SAVEPOINT active_record_1
12051
+ SQL (2.8ms) 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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
12054
+  (0.1ms) rollback transaction
12055
+  (0.1ms) begin transaction
12056
+ -------------------------------------------------------------------------
12057
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
12058
+ -------------------------------------------------------------------------
12059
+  (0.1ms) rollback transaction
12060
+  (0.0ms) begin transaction
12061
+ -------------------------------------------------------------------
12062
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
12063
+ -------------------------------------------------------------------
12064
+  (0.1ms) rollback transaction
12065
+  (0.0ms) begin transaction
12066
+ ---------------------------------------------------------------------------
12067
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
12068
+ ---------------------------------------------------------------------------
12069
+  (0.0ms) rollback transaction
12070
+  (0.0ms) begin transaction
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
+  (0.2ms) rollback transaction
12080
+  (0.1ms) begin transaction
12081
+ ---------------------------------------------------------------------
12082
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
12083
+ ---------------------------------------------------------------------
12084
+  (0.1ms) rollback transaction
12085
+  (0.1ms) begin transaction
12086
+ ---------------------------------------------------------------
12087
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
12088
+ ---------------------------------------------------------------
12089
+  (0.1ms) rollback transaction
12090
+  (0.0ms) begin transaction
12091
+ --------------------------------------------------------------------
12092
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
12093
+ --------------------------------------------------------------------
12094
+  (0.1ms) rollback transaction
12095
+  (0.0ms) begin transaction
12096
+ ---------------------------------------------------------------------------------------------
12097
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
12098
+ ---------------------------------------------------------------------------------------------
12099
+  (0.1ms) SAVEPOINT active_record_1
12100
+ SQL (0.3ms) 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: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
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
12103
+  (0.0ms) rollback transaction
12104
+  (0.1ms) begin transaction
12105
+ -----------------------------------------------------------------------------------
12106
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
12107
+ -----------------------------------------------------------------------------------
12108
+  (0.0ms) SAVEPOINT active_record_1
12109
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12111
+  (0.0ms) rollback transaction
12112
+  (0.0ms) begin transaction
12113
+ -------------------------------------------------------------------
12114
+ LocalValidatorsTest: test_should_check_all_the_validations_together
12115
+ -------------------------------------------------------------------
12116
+  (0.1ms) rollback transaction
12117
+  (0.0ms) begin transaction
12118
+ ---------------------------------------------------------
12119
+ LocalValidatorsTest: test_should_check_if_file_is_present
12120
+ ---------------------------------------------------------
12121
+  (0.1ms) rollback transaction
12122
+  (0.1ms) begin transaction
12123
+ ------------------------------------------------------------
12124
+ LocalValidatorsTest: test_should_check_the_file_content_type
12125
+ ------------------------------------------------------------
12126
+  (0.0ms) rollback transaction
12127
+  (0.1ms) begin transaction
12128
+ ----------------------------------------------------
12129
+ LocalValidatorsTest: test_should_check_the_file_size
12130
+ ----------------------------------------------------
12131
+  (0.0ms) rollback transaction
12132
+  (0.4ms) 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) 
12133
+  (0.1ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
12134
+  (0.1ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) 
12135
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
12136
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12137
+  (0.0ms) SELECT version FROM "schema_migrations"
12138
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130820222534')
12139
+  (0.1ms) begin transaction
12140
+ --------------------------------------------------------------------------
12141
+ LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
12142
+ --------------------------------------------------------------------------
12143
+  (0.1ms) rollback transaction
12144
+  (0.1ms) begin transaction
12145
+ -------------------------------------------------------------------------
12146
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
12147
+ -------------------------------------------------------------------------
12148
+  (0.1ms) SAVEPOINT active_record_1
12149
+ SQL (2.6ms) 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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
12152
+  (0.0ms) rollback transaction
12153
+  (0.0ms) begin transaction
12154
+ -------------------------------------------------------------------------
12155
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
12156
+ -------------------------------------------------------------------------
12157
+  (0.1ms) rollback transaction
12158
+  (0.0ms) begin transaction
12159
+ -------------------------------------------------------------------
12160
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
12161
+ -------------------------------------------------------------------
12162
+  (0.1ms) rollback transaction
12163
+  (0.0ms) begin transaction
12164
+ ---------------------------------------------------------------------------
12165
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
12166
+ ---------------------------------------------------------------------------
12167
+  (0.1ms) rollback transaction
12168
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
12178
+  (0.0ms) begin transaction
12179
+ ---------------------------------------------------------------------
12180
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
12181
+ ---------------------------------------------------------------------
12182
+  (0.1ms) rollback transaction
12183
+  (0.0ms) begin transaction
12184
+ ---------------------------------------------------------------
12185
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
12186
+ ---------------------------------------------------------------
12187
+  (0.1ms) rollback transaction
12188
+  (0.0ms) begin transaction
12189
+ --------------------------------------------------------------------
12190
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
12191
+ --------------------------------------------------------------------
12192
+  (0.2ms) rollback transaction
12193
+  (0.1ms) begin transaction
12194
+ ---------------------------------------------------------------------------------------------
12195
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
12196
+ ---------------------------------------------------------------------------------------------
12197
+  (0.1ms) SAVEPOINT active_record_1
12198
+ SQL (0.3ms) 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: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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
12201
+  (0.1ms) rollback transaction
12202
+  (0.1ms) begin transaction
12203
+ -----------------------------------------------------------------------------------
12204
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
12205
+ -----------------------------------------------------------------------------------
12206
+  (0.0ms) SAVEPOINT active_record_1
12207
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12209
+  (0.1ms) rollback transaction
12210
+  (0.0ms) begin transaction
12211
+ -------------------------------------------------------------------
12212
+ LocalValidatorsTest: test_should_check_all_the_validations_together
12213
+ -------------------------------------------------------------------
12214
+  (0.1ms) rollback transaction
12215
+  (0.1ms) begin transaction
12216
+ ---------------------------------------------------------
12217
+ LocalValidatorsTest: test_should_check_if_file_is_present
12218
+ ---------------------------------------------------------
12219
+  (0.1ms) rollback transaction
12220
+  (0.0ms) begin transaction
12221
+ ------------------------------------------------------------
12222
+ LocalValidatorsTest: test_should_check_the_file_content_type
12223
+ ------------------------------------------------------------
12224
+  (0.0ms) rollback transaction
12225
+  (0.1ms) begin transaction
12226
+ ----------------------------------------------------
12227
+ LocalValidatorsTest: test_should_check_the_file_size
12228
+ ----------------------------------------------------
12229
+  (0.0ms) rollback transaction
12230
+  (0.4ms) 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) 
12231
+  (0.1ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
12232
+  (0.1ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) 
12233
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
12234
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12235
+  (0.1ms) SELECT version FROM "schema_migrations"
12236
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130820222534')
12237
+  (0.1ms) begin transaction
12238
+ --------------------------------------------------------------------------
12239
+ LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
12240
+ --------------------------------------------------------------------------
12241
+  (0.1ms) rollback transaction
12242
+  (0.1ms) begin transaction
12243
+ -------------------------------------------------------------------------
12244
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
12245
+ -------------------------------------------------------------------------
12246
+  (0.1ms) SAVEPOINT active_record_1
12247
+ SQL (2.0ms) 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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
12250
+  (0.0ms) rollback transaction
12251
+  (0.0ms) begin transaction
12252
+ -------------------------------------------------------------------------
12253
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
12254
+ -------------------------------------------------------------------------
12255
+  (0.1ms) rollback transaction
12256
+  (0.0ms) begin transaction
12257
+ -------------------------------------------------------------------
12258
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
12259
+ -------------------------------------------------------------------
12260
+  (0.1ms) rollback transaction
12261
+  (0.0ms) begin transaction
12262
+ ---------------------------------------------------------------------------
12263
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
12264
+ ---------------------------------------------------------------------------
12265
+  (0.0ms) rollback transaction
12266
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
12276
+  (0.0ms) begin transaction
12277
+ ---------------------------------------------------------------------
12278
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
12279
+ ---------------------------------------------------------------------
12280
+  (0.1ms) rollback transaction
12281
+  (0.0ms) begin transaction
12282
+ ---------------------------------------------------------------
12283
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
12284
+ ---------------------------------------------------------------
12285
+  (0.1ms) rollback transaction
12286
+  (0.0ms) begin transaction
12287
+ --------------------------------------------------------------------
12288
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
12289
+ --------------------------------------------------------------------
12290
+  (0.1ms) rollback transaction
12291
+  (0.1ms) begin transaction
12292
+ ---------------------------------------------------------------------------------------------
12293
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
12294
+ ---------------------------------------------------------------------------------------------
12295
+  (0.1ms) SAVEPOINT active_record_1
12296
+ SQL (0.3ms) 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: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
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
12299
+  (0.1ms) rollback transaction
12300
+  (0.1ms) begin transaction
12301
+ -----------------------------------------------------------------------------------
12302
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
12303
+ -----------------------------------------------------------------------------------
12304
+  (0.1ms) SAVEPOINT active_record_1
12305
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12307
+  (0.0ms) rollback transaction
12308
+  (0.1ms) begin transaction
12309
+ -------------------------------------------------------------------
12310
+ LocalValidatorsTest: test_should_check_all_the_validations_together
12311
+ -------------------------------------------------------------------
12312
+  (0.0ms) rollback transaction
12313
+  (0.0ms) begin transaction
12314
+ ---------------------------------------------------------
12315
+ LocalValidatorsTest: test_should_check_if_file_is_present
12316
+ ---------------------------------------------------------
12317
+  (0.1ms) rollback transaction
12318
+  (0.1ms) begin transaction
12319
+ ------------------------------------------------------------
12320
+ LocalValidatorsTest: test_should_check_the_file_content_type
12321
+ ------------------------------------------------------------
12322
+  (0.0ms) rollback transaction
12323
+  (0.0ms) begin transaction
12324
+ ----------------------------------------------------
12325
+ LocalValidatorsTest: test_should_check_the_file_size
12326
+ ----------------------------------------------------
12327
+  (0.0ms) rollback transaction
12328
+  (0.4ms) 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) 
12329
+  (0.1ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
12330
+  (0.1ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) 
12331
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
12332
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12333
+  (0.1ms) SELECT version FROM "schema_migrations"
12334
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130820222534')
12335
+  (0.1ms) begin transaction
12336
+ --------------------------------------------------------------------------
12337
+ LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
12338
+ --------------------------------------------------------------------------
12339
+  (0.1ms) rollback transaction
12340
+  (0.0ms) begin transaction
12341
+ -------------------------------------------------------------------------
12342
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
12343
+ -------------------------------------------------------------------------
12344
+  (0.1ms) SAVEPOINT active_record_1
12345
+ SQL (2.2ms) 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
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
12348
+  (0.0ms) rollback transaction
12349
+  (0.0ms) begin transaction
12350
+ -------------------------------------------------------------------------
12351
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
12352
+ -------------------------------------------------------------------------
12353
+  (0.1ms) rollback transaction
12354
+  (0.0ms) begin transaction
12355
+ -------------------------------------------------------------------
12356
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
12357
+ -------------------------------------------------------------------
12358
+  (0.0ms) rollback transaction
12359
+  (0.0ms) begin transaction
12360
+ ---------------------------------------------------------------------------
12361
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
12362
+ ---------------------------------------------------------------------------
12363
+  (0.0ms) rollback transaction
12364
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
12374
+  (0.0ms) begin transaction
12375
+ ---------------------------------------------------------------------
12376
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
12377
+ ---------------------------------------------------------------------
12378
+  (0.1ms) rollback transaction
12379
+  (0.0ms) begin transaction
12380
+ ---------------------------------------------------------------
12381
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
12382
+ ---------------------------------------------------------------
12383
+  (0.1ms) rollback transaction
12384
+  (0.0ms) begin transaction
12385
+ --------------------------------------------------------------------
12386
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
12387
+ --------------------------------------------------------------------
12388
+  (0.1ms) rollback transaction
12389
+  (0.1ms) begin transaction
12390
+ ---------------------------------------------------------------------------------------------
12391
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
12392
+ ---------------------------------------------------------------------------------------------
12393
+  (0.1ms) SAVEPOINT active_record_1
12394
+ SQL (0.3ms) 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: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
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
12397
+  (0.1ms) rollback transaction
12398
+  (0.1ms) begin transaction
12399
+ -----------------------------------------------------------------------------------
12400
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
12401
+ -----------------------------------------------------------------------------------
12402
+  (0.0ms) SAVEPOINT active_record_1
12403
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12405
+  (0.1ms) rollback transaction
12406
+  (0.0ms) begin transaction
12407
+ -------------------------------------------------------------------
12408
+ LocalValidatorsTest: test_should_check_all_the_validations_together
12409
+ -------------------------------------------------------------------
12410
+  (0.1ms) rollback transaction
12411
+  (0.1ms) begin transaction
12412
+ ---------------------------------------------------------
12413
+ LocalValidatorsTest: test_should_check_if_file_is_present
12414
+ ---------------------------------------------------------
12415
+  (0.1ms) rollback transaction
12416
+  (0.1ms) begin transaction
12417
+ ------------------------------------------------------------
12418
+ LocalValidatorsTest: test_should_check_the_file_content_type
12419
+ ------------------------------------------------------------
12420
+  (0.0ms) rollback transaction
12421
+  (0.1ms) begin transaction
12422
+ ----------------------------------------------------
12423
+ LocalValidatorsTest: test_should_check_the_file_size
12424
+ ----------------------------------------------------
12425
+  (0.0ms) rollback transaction
12426
+  (0.4ms) 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) 
12427
+  (0.1ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
12428
+  (0.1ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) 
12429
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
12430
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12431
+  (0.1ms) SELECT version FROM "schema_migrations"
12432
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130820222534')
12433
+  (0.1ms) begin transaction
12434
+ --------------------------------------------------------------------------
12435
+ LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
12436
+ --------------------------------------------------------------------------
12437
+  (0.1ms) SAVEPOINT active_record_1
12438
+ SQL (2.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12440
+  (0.0ms) SAVEPOINT active_record_1
12441
+ SQL (0.2ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", nil], ["updated_at", Thu, 16 Jan 2014 14:31:08 UTC +00:00]]
12442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12443
+  (0.1ms) rollback transaction
12444
+  (0.1ms) begin transaction
12445
+ -------------------------------------------------------------------------
12446
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
12447
+ -------------------------------------------------------------------------
12448
+  (0.0ms) SAVEPOINT active_record_1
12449
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12451
+  (0.0ms) SAVEPOINT active_record_1
12452
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
12453
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12454
+  (0.0ms) rollback transaction
12455
+  (0.0ms) begin transaction
12456
+ -------------------------------------------------------------------------
12457
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
12458
+ -------------------------------------------------------------------------
12459
+  (0.1ms) rollback transaction
12460
+  (0.0ms) begin transaction
12461
+ -------------------------------------------------------------------
12462
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
12463
+ -------------------------------------------------------------------
12464
+  (0.1ms) rollback transaction
12465
+  (0.1ms) begin transaction
12466
+ ---------------------------------------------------------------------------
12467
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
12468
+ ---------------------------------------------------------------------------
12469
+  (0.0ms) rollback transaction
12470
+  (0.0ms) 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
+  (0.1ms) rollback transaction
12480
+  (0.0ms) begin transaction
12481
+ ---------------------------------------------------------------------
12482
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
12483
+ ---------------------------------------------------------------------
12484
+  (0.0ms) SAVEPOINT active_record_1
12485
+ SQL (0.7ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12487
+  (0.1ms) SAVEPOINT active_record_1
12488
+ SQL (0.2ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
12489
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12490
+  (0.1ms) rollback transaction
12491
+  (0.1ms) begin transaction
12492
+ ---------------------------------------------------------------
12493
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
12494
+ ---------------------------------------------------------------
12495
+  (0.1ms) rollback transaction
12496
+  (0.0ms) begin transaction
12497
+ --------------------------------------------------------------------
12498
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
12499
+ --------------------------------------------------------------------
12500
+  (0.1ms) rollback transaction
12501
+  (0.1ms) begin transaction
12502
+ ---------------------------------------------------------------------------------------------
12503
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
12504
+ ---------------------------------------------------------------------------------------------
12505
+  (0.1ms) SAVEPOINT active_record_1
12506
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12508
+  (0.0ms) SAVEPOINT active_record_1
12509
+ SQL (0.1ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898826689977560.txt"], ["updated_at", Thu, 16 Jan 2014 14:31:08 UTC +00:00]]
12510
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12511
+  (0.1ms) SAVEPOINT active_record_1
12512
+ SQL (0.0ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
12513
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12514
+  (0.1ms) rollback transaction
12515
+  (0.0ms) begin transaction
12516
+ -----------------------------------------------------------------------------------
12517
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
12518
+ -----------------------------------------------------------------------------------
12519
+  (0.0ms) SAVEPOINT active_record_1
12520
+ SQL (0.2ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12522
+  (0.0ms) SAVEPOINT active_record_1
12523
+ SQL (0.0ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
12524
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12525
+  (0.0ms) SAVEPOINT active_record_1
12526
+ SQL (0.1ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12528
+  (0.0ms) SAVEPOINT active_record_1
12529
+ SQL (0.1ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
12530
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12531
+  (0.0ms) rollback transaction
12532
+  (0.0ms) begin transaction
12533
+ -------------------------------------------------------------------
12534
+ LocalValidatorsTest: test_should_check_all_the_validations_together
12535
+ -------------------------------------------------------------------
12536
+  (0.1ms) rollback transaction
12537
+  (0.0ms) begin transaction
12538
+ ---------------------------------------------------------
12539
+ LocalValidatorsTest: test_should_check_if_file_is_present
12540
+ ---------------------------------------------------------
12541
+  (0.0ms) rollback transaction
12542
+  (0.0ms) begin transaction
12543
+ ------------------------------------------------------------
12544
+ LocalValidatorsTest: test_should_check_the_file_content_type
12545
+ ------------------------------------------------------------
12546
+  (0.0ms) rollback transaction
12547
+  (0.0ms) begin transaction
12548
+ ----------------------------------------------------
12549
+ LocalValidatorsTest: test_should_check_the_file_size
12550
+ ----------------------------------------------------
12551
+  (0.1ms) rollback transaction
12552
+  (0.4ms) 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) 
12553
+  (0.1ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
12554
+  (0.1ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) 
12555
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
12556
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12557
+  (0.1ms) SELECT version FROM "schema_migrations"
12558
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130820222534')
12559
+  (0.1ms) begin transaction
12560
+ --------------------------------------------------------------------------
12561
+ LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
12562
+ --------------------------------------------------------------------------
12563
+  (0.0ms) SAVEPOINT active_record_1
12564
+ SQL (2.0ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12566
+  (0.0ms) SAVEPOINT active_record_1
12567
+ SQL (0.2ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", nil], ["updated_at", Thu, 16 Jan 2014 14:31:42 UTC +00:00]]
12568
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12569
+  (0.1ms) rollback transaction
12570
+  (0.0ms) begin transaction
12571
+ -------------------------------------------------------------------------
12572
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
12573
+ -------------------------------------------------------------------------
12574
+  (0.0ms) SAVEPOINT active_record_1
12575
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12577
+  (0.0ms) SAVEPOINT active_record_1
12578
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
12579
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12580
+  (0.0ms) rollback transaction
12581
+  (0.0ms) begin transaction
12582
+ -------------------------------------------------------------------------
12583
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
12584
+ -------------------------------------------------------------------------
12585
+  (0.1ms) rollback transaction
12586
+  (0.0ms) begin transaction
12587
+ -------------------------------------------------------------------
12588
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
12589
+ -------------------------------------------------------------------
12590
+  (0.1ms) rollback transaction
12591
+  (0.0ms) begin transaction
12592
+ ---------------------------------------------------------------------------
12593
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
12594
+ ---------------------------------------------------------------------------
12595
+  (0.0ms) rollback transaction
12596
+  (0.0ms) 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
+  (0.1ms) rollback transaction
12606
+  (0.0ms) begin transaction
12607
+ ---------------------------------------------------------------------
12608
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
12609
+ ---------------------------------------------------------------------
12610
+  (0.0ms) SAVEPOINT active_record_1
12611
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12613
+  (0.0ms) SAVEPOINT active_record_1
12614
+ SQL (0.1ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
12615
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12616
+  (0.1ms) rollback transaction
12617
+  (0.0ms) begin transaction
12618
+ ---------------------------------------------------------------
12619
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
12620
+ ---------------------------------------------------------------
12621
+  (0.1ms) rollback transaction
12622
+  (0.0ms) begin transaction
12623
+ --------------------------------------------------------------------
12624
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
12625
+ --------------------------------------------------------------------
12626
+  (0.1ms) rollback transaction
12627
+  (0.0ms) begin transaction
12628
+ ---------------------------------------------------------------------------------------------
12629
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
12630
+ ---------------------------------------------------------------------------------------------
12631
+  (0.1ms) SAVEPOINT active_record_1
12632
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12634
+  (0.1ms) SAVEPOINT active_record_1
12635
+ SQL (0.1ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898827028552280.txt"], ["updated_at", Thu, 16 Jan 2014 14:31:42 UTC +00:00]]
12636
+  (0.2ms) RELEASE SAVEPOINT active_record_1
12637
+  (0.1ms) SAVEPOINT active_record_1
12638
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
12639
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12640
+  (0.1ms) rollback transaction
12641
+  (0.1ms) begin transaction
12642
+ -----------------------------------------------------------------------------------
12643
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
12644
+ -----------------------------------------------------------------------------------
12645
+  (0.0ms) SAVEPOINT active_record_1
12646
+ SQL (0.2ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12648
+  (0.0ms) SAVEPOINT active_record_1
12649
+ SQL (0.0ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
12650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12651
+  (0.0ms) SAVEPOINT active_record_1
12652
+ SQL (0.1ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12654
+  (0.0ms) SAVEPOINT active_record_1
12655
+ SQL (0.0ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
12656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12657
+  (0.0ms) rollback transaction
12658
+  (0.0ms) begin transaction
12659
+ -------------------------------------------------------------------
12660
+ LocalValidatorsTest: test_should_check_all_the_validations_together
12661
+ -------------------------------------------------------------------
12662
+  (0.1ms) rollback transaction
12663
+  (0.0ms) begin transaction
12664
+ ---------------------------------------------------------
12665
+ LocalValidatorsTest: test_should_check_if_file_is_present
12666
+ ---------------------------------------------------------
12667
+  (0.0ms) rollback transaction
12668
+  (0.0ms) begin transaction
12669
+ ------------------------------------------------------------
12670
+ LocalValidatorsTest: test_should_check_the_file_content_type
12671
+ ------------------------------------------------------------
12672
+  (0.0ms) rollback transaction
12673
+  (0.0ms) begin transaction
12674
+ ----------------------------------------------------
12675
+ LocalValidatorsTest: test_should_check_the_file_size
12676
+ ----------------------------------------------------
12677
+  (0.1ms) rollback transaction
12678
+  (0.4ms) 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) 
12679
+  (0.1ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
12680
+  (0.1ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) 
12681
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
12682
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12683
+  (0.1ms) SELECT version FROM "schema_migrations"
12684
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130820222534')
12685
+  (0.1ms) begin transaction
12686
+ --------------------------------------------------------------------------
12687
+ LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
12688
+ --------------------------------------------------------------------------
12689
+  (0.1ms) SAVEPOINT active_record_1
12690
+ SQL (2.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12692
+  (0.0ms) SAVEPOINT active_record_1
12693
+ SQL (0.2ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", nil], ["updated_at", Thu, 16 Jan 2014 14:33:52 UTC +00:00]]
12694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12695
+  (0.1ms) rollback transaction
12696
+  (0.0ms) begin transaction
12697
+ -------------------------------------------------------------------------
12698
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
12699
+ -------------------------------------------------------------------------
12700
+  (0.0ms) SAVEPOINT active_record_1
12701
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12703
+  (0.0ms) SAVEPOINT active_record_1
12704
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
12705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12706
+  (0.0ms) rollback transaction
12707
+  (0.0ms) begin transaction
12708
+ -------------------------------------------------------------------------
12709
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
12710
+ -------------------------------------------------------------------------
12711
+  (0.1ms) rollback transaction
12712
+  (0.0ms) begin transaction
12713
+ -------------------------------------------------------------------
12714
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
12715
+ -------------------------------------------------------------------
12716
+  (0.1ms) rollback transaction
12717
+  (0.1ms) begin transaction
12718
+ ---------------------------------------------------------------------------
12719
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
12720
+ ---------------------------------------------------------------------------
12721
+  (0.0ms) rollback transaction
12722
+  (0.0ms) 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
+  (0.1ms) rollback transaction
12732
+  (0.0ms) begin transaction
12733
+ ---------------------------------------------------------------------
12734
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
12735
+ ---------------------------------------------------------------------
12736
+  (0.0ms) SAVEPOINT active_record_1
12737
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12739
+  (0.0ms) SAVEPOINT active_record_1
12740
+ SQL (0.1ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
12741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12742
+  (0.1ms) rollback transaction
12743
+  (0.0ms) begin transaction
12744
+ ---------------------------------------------------------------
12745
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
12746
+ ---------------------------------------------------------------
12747
+  (0.1ms) rollback transaction
12748
+  (0.0ms) begin transaction
12749
+ --------------------------------------------------------------------
12750
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
12751
+ --------------------------------------------------------------------
12752
+  (0.1ms) rollback transaction
12753
+  (0.1ms) begin transaction
12754
+ ---------------------------------------------------------------------------------------------
12755
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
12756
+ ---------------------------------------------------------------------------------------------
12757
+  (0.1ms) SAVEPOINT active_record_1
12758
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12760
+  (0.0ms) SAVEPOINT active_record_1
12761
+ SQL (0.1ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898828331134290.txt"], ["updated_at", Thu, 16 Jan 2014 14:33:53 UTC +00:00]]
12762
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12763
+  (0.0ms) SAVEPOINT active_record_1
12764
+ SQL (0.0ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
12765
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12766
+  (0.1ms) rollback transaction
12767
+  (0.1ms) begin transaction
12768
+ -----------------------------------------------------------------------------------
12769
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
12770
+ -----------------------------------------------------------------------------------
12771
+  (0.0ms) SAVEPOINT active_record_1
12772
+ SQL (0.2ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12774
+  (0.1ms) SAVEPOINT active_record_1
12775
+ SQL (0.0ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
12776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12777
+  (0.0ms) SAVEPOINT active_record_1
12778
+ SQL (0.1ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12780
+  (0.1ms) SAVEPOINT active_record_1
12781
+ SQL (0.0ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
12782
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12783
+  (0.0ms) rollback transaction
12784
+  (0.1ms) begin transaction
12785
+ -------------------------------------------------------------------
12786
+ LocalValidatorsTest: test_should_check_all_the_validations_together
12787
+ -------------------------------------------------------------------
12788
+  (0.1ms) rollback transaction
12789
+  (0.0ms) begin transaction
12790
+ ---------------------------------------------------------
12791
+ LocalValidatorsTest: test_should_check_if_file_is_present
12792
+ ---------------------------------------------------------
12793
+  (0.0ms) rollback transaction
12794
+  (0.0ms) begin transaction
12795
+ ------------------------------------------------------------
12796
+ LocalValidatorsTest: test_should_check_the_file_content_type
12797
+ ------------------------------------------------------------
12798
+  (0.0ms) rollback transaction
12799
+  (0.0ms) begin transaction
12800
+ ----------------------------------------------------
12801
+ LocalValidatorsTest: test_should_check_the_file_size
12802
+ ----------------------------------------------------
12803
+  (0.1ms) rollback transaction
12804
+  (0.5ms) 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) 
12805
+  (0.1ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
12806
+  (0.2ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) 
12807
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
12808
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12809
+  (0.1ms) SELECT version FROM "schema_migrations"
12810
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130820222534')
12811
+  (0.1ms) begin transaction
12812
+ --------------------------------------------------------------------------
12813
+ LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
12814
+ --------------------------------------------------------------------------
12815
+  (0.1ms) SAVEPOINT active_record_1
12816
+ SQL (2.9ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12818
+  (0.1ms) SAVEPOINT active_record_1
12819
+ SQL (0.4ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", nil], ["updated_at", Thu, 16 Jan 2014 14:34:25 UTC +00:00]]
12820
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12821
+  (0.1ms) rollback transaction
12822
+  (0.1ms) begin transaction
12823
+ -------------------------------------------------------------------------
12824
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
12825
+ -------------------------------------------------------------------------
12826
+  (0.1ms) SAVEPOINT active_record_1
12827
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12829
+  (0.0ms) SAVEPOINT active_record_1
12830
+ SQL (0.2ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
12831
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12832
+  (0.1ms) rollback transaction
12833
+  (0.1ms) begin transaction
12834
+ -------------------------------------------------------------------------
12835
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
12836
+ -------------------------------------------------------------------------
12837
+  (0.2ms) rollback transaction
12838
+  (0.1ms) begin transaction
12839
+ -------------------------------------------------------------------
12840
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
12841
+ -------------------------------------------------------------------
12842
+  (0.1ms) rollback transaction
12843
+  (0.1ms) begin transaction
12844
+ ---------------------------------------------------------------------------
12845
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
12846
+ ---------------------------------------------------------------------------
12847
+  (0.1ms) rollback transaction
12848
+  (0.1ms) 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
+  (0.1ms) rollback transaction
12858
+  (0.1ms) begin transaction
12859
+ ---------------------------------------------------------------------
12860
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
12861
+ ---------------------------------------------------------------------
12862
+  (0.0ms) SAVEPOINT active_record_1
12863
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12865
+  (0.1ms) SAVEPOINT active_record_1
12866
+ SQL (0.1ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
12867
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12868
+  (0.1ms) rollback transaction
12869
+  (0.1ms) begin transaction
12870
+ ---------------------------------------------------------------
12871
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
12872
+ ---------------------------------------------------------------
12873
+  (0.1ms) rollback transaction
12874
+  (0.0ms) begin transaction
12875
+ --------------------------------------------------------------------
12876
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
12877
+ --------------------------------------------------------------------
12878
+  (0.2ms) rollback transaction
12879
+  (0.1ms) begin transaction
12880
+ ---------------------------------------------------------------------------------------------
12881
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
12882
+ ---------------------------------------------------------------------------------------------
12883
+  (0.1ms) SAVEPOINT active_record_1
12884
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12886
+  (0.0ms) SAVEPOINT active_record_1
12887
+ SQL (0.1ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898828664057758.txt"], ["updated_at", Thu, 16 Jan 2014 14:34:26 UTC +00:00]]
12888
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12889
+  (0.0ms) SAVEPOINT active_record_1
12890
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
12891
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12892
+  (0.1ms) rollback transaction
12893
+  (0.0ms) begin transaction
12894
+ -----------------------------------------------------------------------------------
12895
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
12896
+ -----------------------------------------------------------------------------------
12897
+  (0.0ms) SAVEPOINT active_record_1
12898
+ SQL (0.2ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12900
+  (0.1ms) SAVEPOINT active_record_1
12901
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
12902
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12903
+  (0.0ms) SAVEPOINT active_record_1
12904
+ SQL (0.2ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12906
+  (0.0ms) SAVEPOINT active_record_1
12907
+ SQL (0.0ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
12908
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12909
+  (0.1ms) rollback transaction
12910
+  (0.0ms) begin transaction
12911
+ -------------------------------------------------------------------
12912
+ LocalValidatorsTest: test_should_check_all_the_validations_together
12913
+ -------------------------------------------------------------------
12914
+  (0.1ms) rollback transaction
12915
+  (0.0ms) begin transaction
12916
+ ---------------------------------------------------------
12917
+ LocalValidatorsTest: test_should_check_if_file_is_present
12918
+ ---------------------------------------------------------
12919
+  (0.0ms) rollback transaction
12920
+  (0.0ms) begin transaction
12921
+ ------------------------------------------------------------
12922
+ LocalValidatorsTest: test_should_check_the_file_content_type
12923
+ ------------------------------------------------------------
12924
+  (0.0ms) rollback transaction
12925
+  (0.0ms) begin transaction
12926
+ ----------------------------------------------------
12927
+ LocalValidatorsTest: test_should_check_the_file_size
12928
+ ----------------------------------------------------
12929
+  (0.1ms) rollback transaction
12930
+  (0.4ms) 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) 
12931
+  (0.1ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
12932
+  (0.1ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) 
12933
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
12934
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
12935
+  (0.1ms) SELECT version FROM "schema_migrations"
12936
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130820222534')
12937
+  (0.1ms) begin transaction
12938
+ --------------------------------------------------------------------------
12939
+ LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
12940
+ --------------------------------------------------------------------------
12941
+  (0.0ms) SAVEPOINT active_record_1
12942
+ SQL (2.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12944
+  (0.0ms) SAVEPOINT active_record_1
12945
+ SQL (0.2ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", nil], ["updated_at", Thu, 16 Jan 2014 14:40:17 UTC +00:00]]
12946
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12947
+  (0.1ms) rollback transaction
12948
+  (0.1ms) begin transaction
12949
+ -------------------------------------------------------------------------
12950
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
12951
+ -------------------------------------------------------------------------
12952
+  (0.0ms) SAVEPOINT active_record_1
12953
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12955
+  (0.0ms) SAVEPOINT active_record_1
12956
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
12957
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12958
+  (0.0ms) rollback transaction
12959
+  (0.0ms) begin transaction
12960
+ -------------------------------------------------------------------------
12961
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
12962
+ -------------------------------------------------------------------------
12963
+  (0.1ms) rollback transaction
12964
+  (0.0ms) begin transaction
12965
+ -------------------------------------------------------------------
12966
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
12967
+ -------------------------------------------------------------------
12968
+  (0.0ms) rollback transaction
12969
+  (0.1ms) begin transaction
12970
+ ---------------------------------------------------------------------------
12971
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
12972
+ ---------------------------------------------------------------------------
12973
+  (0.0ms) rollback transaction
12974
+  (0.0ms) 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
+  (0.1ms) rollback transaction
12984
+  (0.1ms) begin transaction
12985
+ ---------------------------------------------------------------------
12986
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
12987
+ ---------------------------------------------------------------------
12988
+  (0.1ms) SAVEPOINT active_record_1
12989
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
12991
+  (0.0ms) SAVEPOINT active_record_1
12992
+ SQL (0.2ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
12993
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12994
+  (0.1ms) rollback transaction
12995
+  (0.1ms) begin transaction
12996
+ ---------------------------------------------------------------
12997
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
12998
+ ---------------------------------------------------------------
12999
+  (0.1ms) rollback transaction
13000
+  (0.0ms) begin transaction
13001
+ --------------------------------------------------------------------
13002
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
13003
+ --------------------------------------------------------------------
13004
+  (0.1ms) rollback transaction
13005
+  (0.1ms) begin transaction
13006
+ ---------------------------------------------------------------------------------------------
13007
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
13008
+ ---------------------------------------------------------------------------------------------
13009
+  (0.1ms) SAVEPOINT active_record_1
13010
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13012
+  (0.0ms) SAVEPOINT active_record_1
13013
+ SQL (0.1ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13898832180218308.txt"], ["updated_at", Thu, 16 Jan 2014 14:40:18 UTC +00:00]]
13014
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13015
+  (0.0ms) SAVEPOINT active_record_1
13016
+ SQL (0.0ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
13017
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13018
+  (0.1ms) rollback transaction
13019
+  (0.0ms) begin transaction
13020
+ -----------------------------------------------------------------------------------
13021
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
13022
+ -----------------------------------------------------------------------------------
13023
+  (0.0ms) SAVEPOINT active_record_1
13024
+ SQL (0.2ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13026
+  (0.1ms) SAVEPOINT active_record_1
13027
+ SQL (0.0ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
13028
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13029
+  (0.0ms) SAVEPOINT active_record_1
13030
+ SQL (0.1ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13032
+  (0.0ms) SAVEPOINT active_record_1
13033
+ SQL (0.0ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
13034
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13035
+  (0.0ms) rollback transaction
13036
+  (0.0ms) begin transaction
13037
+ -------------------------------------------------------------------
13038
+ LocalValidatorsTest: test_should_check_all_the_validations_together
13039
+ -------------------------------------------------------------------
13040
+  (0.1ms) rollback transaction
13041
+  (0.0ms) begin transaction
13042
+ ---------------------------------------------------------
13043
+ LocalValidatorsTest: test_should_check_if_file_is_present
13044
+ ---------------------------------------------------------
13045
+  (0.1ms) rollback transaction
13046
+  (0.0ms) begin transaction
13047
+ ------------------------------------------------------------
13048
+ LocalValidatorsTest: test_should_check_the_file_content_type
13049
+ ------------------------------------------------------------
13050
+  (0.0ms) rollback transaction
13051
+  (0.0ms) begin transaction
13052
+ ----------------------------------------------------
13053
+ LocalValidatorsTest: test_should_check_the_file_size
13054
+ ----------------------------------------------------
13055
+  (0.1ms) rollback transaction
13056
+  (0.3ms) 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) 
13057
+  (0.1ms) CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
13058
+  (0.1ms) CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime) 
13059
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
13060
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13061
+  (0.1ms) SELECT version FROM "schema_migrations"
13062
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130820222534')
13063
+  (0.1ms) begin transaction
13064
+ --------------------------------------------------------------------------
13065
+ LocalFileRecordTest: test_should_delete_correctly_using_delete_attr_method
13066
+ --------------------------------------------------------------------------
13067
+  (0.1ms) SAVEPOINT active_record_1
13068
+ SQL (3.5ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13070
+  (0.0ms) SAVEPOINT active_record_1
13071
+ SQL (0.2ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", nil], ["updated_at", Fri, 24 Jan 2014 21:20:53 UTC +00:00]]
13072
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13073
+  (0.1ms) rollback transaction
13074
+  (0.1ms) begin transaction
13075
+ -------------------------------------------------------------------------
13076
+ LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
13077
+ -------------------------------------------------------------------------
13078
+  (0.0ms) SAVEPOINT active_record_1
13079
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13081
+  (0.0ms) SAVEPOINT active_record_1
13082
+ SQL (0.1ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
13083
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13084
+  (0.0ms) rollback transaction
13085
+  (0.0ms) begin transaction
13086
+ -------------------------------------------------------------------------
13087
+ LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
13088
+ -------------------------------------------------------------------------
13089
+  (0.1ms) rollback transaction
13090
+  (0.0ms) begin transaction
13091
+ -------------------------------------------------------------------
13092
+ LocalFileUploadTest: test_file_should_exists_and_mantain_properties
13093
+ -------------------------------------------------------------------
13094
+  (0.1ms) rollback transaction
13095
+  (0.0ms) begin transaction
13096
+ ---------------------------------------------------------------------------
13097
+ LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
13098
+ ---------------------------------------------------------------------------
13099
+  (0.1ms) rollback transaction
13100
+  (0.0ms) 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
+  (0.1ms) rollback transaction
13110
+  (0.1ms) begin transaction
13111
+ ---------------------------------------------------------------------
13112
+ LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
13113
+ ---------------------------------------------------------------------
13114
+  (0.0ms) SAVEPOINT active_record_1
13115
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13117
+  (0.0ms) SAVEPOINT active_record_1
13118
+ SQL (0.1ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
13119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13120
+  (0.1ms) rollback transaction
13121
+  (0.0ms) begin transaction
13122
+ ---------------------------------------------------------------
13123
+ LocalImageStringTest: test_should_destory_main_image_and_thumbs
13124
+ ---------------------------------------------------------------
13125
+  (0.1ms) rollback transaction
13126
+  (0.0ms) begin transaction
13127
+ --------------------------------------------------------------------
13128
+ LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
13129
+ --------------------------------------------------------------------
13130
+  (0.2ms) rollback transaction
13131
+  (0.1ms) begin transaction
13132
+ ---------------------------------------------------------------------------------------------
13133
+ LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
13134
+ ---------------------------------------------------------------------------------------------
13135
+  (0.1ms) SAVEPOINT active_record_1
13136
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13138
+  (0.0ms) SAVEPOINT active_record_1
13139
+ SQL (0.1ms) UPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1 [["file", "13905984543909740.txt"], ["updated_at", Fri, 24 Jan 2014 21:20:54 UTC +00:00]]
13140
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13141
+  (0.0ms) SAVEPOINT active_record_1
13142
+ SQL (0.0ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
13143
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13144
+  (0.1ms) rollback transaction
13145
+  (0.1ms) begin transaction
13146
+ -----------------------------------------------------------------------------------
13147
+ LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
13148
+ -----------------------------------------------------------------------------------
13149
+  (0.0ms) SAVEPOINT active_record_1
13150
+ SQL (0.2ms) INSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13152
+  (0.0ms) SAVEPOINT active_record_1
13153
+ SQL (0.0ms) DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
13154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13155
+  (0.0ms) SAVEPOINT active_record_1
13156
+ SQL (0.2ms) INSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?) [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
13158
+  (0.0ms) SAVEPOINT active_record_1
13159
+ SQL (0.0ms) DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
13160
+  (0.0ms) RELEASE SAVEPOINT active_record_1
13161
+  (0.0ms) rollback transaction
13162
+  (0.0ms) begin transaction
13163
+ -------------------------------------------------------------------
13164
+ LocalValidatorsTest: test_should_check_all_the_validations_together
13165
+ -------------------------------------------------------------------
13166
+  (0.1ms) rollback transaction
13167
+  (0.1ms) begin transaction
13168
+ ---------------------------------------------------------
13169
+ LocalValidatorsTest: test_should_check_if_file_is_present
13170
+ ---------------------------------------------------------
13171
+  (0.0ms) rollback transaction
13172
+  (0.0ms) begin transaction
13173
+ ------------------------------------------------------------
13174
+ LocalValidatorsTest: test_should_check_the_file_content_type
13175
+ ------------------------------------------------------------
13176
+  (0.0ms) rollback transaction
13177
+  (0.0ms) begin transaction
13178
+ ----------------------------------------------------
13179
+ LocalValidatorsTest: test_should_check_the_file_size
9313
13180
  ----------------------------------------------------
9314
13181
   (0.1ms) rollback transaction