human_urls 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/human_urls/sluggable.rb +6 -1
- data/lib/human_urls/version.rb +1 -1
- data/test/dummy/log/test.log +1655 -0
- data/test/dummy/tmp/generators/db/migrate/20151114224559_add_slug_to_posts.rb +6 -0
- data/test/human_urls/sluggable_test.rb +12 -0
- metadata +4 -4
- data/test/dummy/tmp/generators/db/migrate/20151112020841_add_slug_to_posts.rb +0 -6
data/test/dummy/log/test.log
CHANGED
@@ -3355,3 +3355,1658 @@ SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
|
3355
3355
|
HumanUrlsTest: test_truth
|
3356
3356
|
-------------------------
|
3357
3357
|
[1m[35m (0.3ms)[0m ROLLBACK
|
3358
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3359
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3360
|
+
------------------------------------------------------------------------------
|
3361
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
3362
|
+
------------------------------------------------------------------------------
|
3363
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
3364
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3365
|
+
------------------------------------------------------------------------------------------------------------
|
3366
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
3367
|
+
------------------------------------------------------------------------------------------------------------
|
3368
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3369
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3370
|
+
-------------------------------------------------------------------------
|
3371
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
3372
|
+
-------------------------------------------------------------------------
|
3373
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3374
|
+
[1m[35mTaggable Exists (2.2ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3375
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-13 18:51:04.615586"], ["updated_at", "2015-11-13 18:51:04.615586"]]
|
3376
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
3377
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3378
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3379
|
+
[1m[36m (0.8ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3380
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3381
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3382
|
+
--------------------------------------------------------------------
|
3383
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
3384
|
+
--------------------------------------------------------------------
|
3385
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3386
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
3387
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-13 18:51:04.639658"], ["updated_at", "2015-11-13 18:51:04.639658"]]
|
3388
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3389
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3390
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3391
|
+
----------------------------------------------
|
3392
|
+
SluggableTest: test_#to_param_returns_the_slug
|
3393
|
+
----------------------------------------------
|
3394
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3395
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3396
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-13 18:51:04.645895"], ["updated_at", "2015-11-13 18:51:04.645895"]]
|
3397
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3398
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3399
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3400
|
+
------------------------------------------------
|
3401
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
3402
|
+
------------------------------------------------
|
3403
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3404
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3405
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-13 18:51:04.650478"], ["updated_at", "2015-11-13 18:51:04.650478"]]
|
3406
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3407
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
3408
|
+
[1m[36mTaggable Exists (1.2ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3409
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3410
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3411
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3412
|
+
------------------------------------------------------------------------
|
3413
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
3414
|
+
------------------------------------------------------------------------
|
3415
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3416
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
3417
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-13 18:51:04.660285"], ["updated_at", "2015-11-13 18:51:04.660285"]]
|
3418
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3419
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3420
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3421
|
+
----------------------------------------------
|
3422
|
+
SluggableTest: test_validates_presence_of_slug
|
3423
|
+
----------------------------------------------
|
3424
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3425
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
3426
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3427
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
3428
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
3429
|
+
----------------------------------------------------------
|
3430
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug
|
3431
|
+
----------------------------------------------------------
|
3432
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
3433
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('my-old-slug') LIMIT 1[0m
|
3434
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "my-old-slug"], ["created_at", "2015-11-13 18:51:04.672806"], ["updated_at", "2015-11-13 18:51:04.672806"]]
|
3435
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3436
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3437
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE (LOWER("taggables"."slug") = LOWER('my-new-slug') AND "taggables"."id" != 133) LIMIT 1[0m
|
3438
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "taggables" SET "slug" = $1, "updated_at" = $2 WHERE "taggables"."id" = $3 [["slug", "my-new-slug"], ["updated_at", "2015-11-13 18:51:04.676632"], ["id", 133]]
|
3439
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3440
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
3441
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3442
|
+
-------------------------
|
3443
|
+
HumanUrlsTest: test_truth
|
3444
|
+
-------------------------
|
3445
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3446
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3447
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3448
|
+
--------------------------------------------------------------------
|
3449
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
3450
|
+
--------------------------------------------------------------------
|
3451
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3452
|
+
[1m[35mTaggableWGeneratedSlug Exists (1.6ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
3453
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-13 18:51:32.890021"], ["updated_at", "2015-11-13 18:51:32.890021"]]
|
3454
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3455
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
3456
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3457
|
+
----------------------------------------------
|
3458
|
+
SluggableTest: test_#to_param_returns_the_slug
|
3459
|
+
----------------------------------------------
|
3460
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3461
|
+
[1m[35mTaggable Exists (0.8ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3462
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-13 18:51:32.906359"], ["updated_at", "2015-11-13 18:51:32.906359"]]
|
3463
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3464
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3465
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3466
|
+
------------------------------------------------
|
3467
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
3468
|
+
------------------------------------------------
|
3469
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3470
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3471
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-13 18:51:32.912548"], ["updated_at", "2015-11-13 18:51:32.912548"]]
|
3472
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
3473
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3474
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3475
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3476
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3477
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3478
|
+
------------------------------------------------------------------------
|
3479
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
3480
|
+
------------------------------------------------------------------------
|
3481
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3482
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
3483
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-13 18:51:32.922283"], ["updated_at", "2015-11-13 18:51:32.922283"]]
|
3484
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3485
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3486
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3487
|
+
----------------------------------------------
|
3488
|
+
SluggableTest: test_validates_presence_of_slug
|
3489
|
+
----------------------------------------------
|
3490
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3491
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1[0m
|
3492
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3493
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3494
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3495
|
+
----------------------------------------------------------
|
3496
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug
|
3497
|
+
----------------------------------------------------------
|
3498
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3499
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('my-old-slug') LIMIT 1
|
3500
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "my-old-slug"], ["created_at", "2015-11-13 18:51:32.931433"], ["updated_at", "2015-11-13 18:51:32.931433"]]
|
3501
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3502
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3503
|
+
[1m[35mTaggable Exists (0.8ms)[0m SELECT 1 AS one FROM "taggables" WHERE (LOWER("taggables"."slug") = LOWER('my-new-slug') AND "taggables"."id" != 137) LIMIT 1
|
3504
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "taggables" SET "slug" = $1, "updated_at" = $2 WHERE "taggables"."id" = $3[0m [["slug", "my-new-slug"], ["updated_at", "2015-11-13 18:51:32.935847"], ["id", 137]]
|
3505
|
+
[1m[35m (1.4ms)[0m RELEASE SAVEPOINT active_record_1
|
3506
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
3507
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3508
|
+
-------------------------------------------------------------------------
|
3509
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
3510
|
+
-------------------------------------------------------------------------
|
3511
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3512
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3513
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-13 18:51:32.960139"], ["updated_at", "2015-11-13 18:51:32.960139"]]
|
3514
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3515
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3516
|
+
[1m[35mTaggable Exists (0.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3517
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3518
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3519
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3520
|
+
------------------------------------------------------------------------------
|
3521
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
3522
|
+
------------------------------------------------------------------------------
|
3523
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3524
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3525
|
+
------------------------------------------------------------------------------------------------------------
|
3526
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
3527
|
+
------------------------------------------------------------------------------------------------------------
|
3528
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
3529
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3530
|
+
-------------------------
|
3531
|
+
HumanUrlsTest: test_truth
|
3532
|
+
-------------------------
|
3533
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3534
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3535
|
+
[1m[35m (0.4ms)[0m BEGIN
|
3536
|
+
------------------------------------------------------------------------------
|
3537
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
3538
|
+
------------------------------------------------------------------------------
|
3539
|
+
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
|
3540
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3541
|
+
------------------------------------------------------------------------------------------------------------
|
3542
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
3543
|
+
------------------------------------------------------------------------------------------------------------
|
3544
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3545
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3546
|
+
----------------------------------------------
|
3547
|
+
SluggableTest: test_#to_param_returns_the_slug
|
3548
|
+
----------------------------------------------
|
3549
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
3550
|
+
[1m[35mTaggable Exists (2.2ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3551
|
+
[1m[36mSQL (4.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-13 21:54:43.980931"], ["updated_at", "2015-11-13 21:54:43.980931"]]
|
3552
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3553
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
3554
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3555
|
+
------------------------------------------------------------------------
|
3556
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
3557
|
+
------------------------------------------------------------------------
|
3558
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
3559
|
+
[1m[35mTaggable Exists (0.8ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
3560
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-13 21:54:43.996448"], ["updated_at", "2015-11-13 21:54:43.996448"]]
|
3561
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3562
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3563
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3564
|
+
--------------------------------------------------------------------
|
3565
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
3566
|
+
--------------------------------------------------------------------
|
3567
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
3568
|
+
[1m[35mTaggableWGeneratedSlug Exists (1.0ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
3569
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-13 21:54:44.014850"], ["updated_at", "2015-11-13 21:54:44.014850"]]
|
3570
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3571
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3572
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3573
|
+
----------------------------------------------
|
3574
|
+
SluggableTest: test_validates_presence_of_slug
|
3575
|
+
----------------------------------------------
|
3576
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3577
|
+
[1m[35mTaggable Exists (0.7ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
3578
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3579
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
3580
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3581
|
+
-------------------------------------------------------------------------
|
3582
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
3583
|
+
-------------------------------------------------------------------------
|
3584
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3585
|
+
[1m[36mTaggable Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3586
|
+
[1m[35mSQL (1.7ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-13 21:54:44.032936"], ["updated_at", "2015-11-13 21:54:44.032936"]]
|
3587
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3588
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3589
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3590
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3591
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3592
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3593
|
+
----------------------------------------------------------
|
3594
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug
|
3595
|
+
----------------------------------------------------------
|
3596
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3597
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('my-old-slug') LIMIT 1
|
3598
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", "2015-11-13 21:54:44.045859"], ["updated_at", "2015-11-13 21:54:44.045859"]]
|
3599
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
3600
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
3601
|
+
[1m[35mTaggable Exists (1.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE (LOWER("taggables"."slug") = LOWER('my-new-slug') AND "taggables"."id" != 142) LIMIT 1
|
3602
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "taggables" SET "slug" = $1, "updated_at" = $2 WHERE "taggables"."id" = $3[0m [["slug", "my-new-slug"], ["updated_at", "2015-11-13 21:54:44.054292"], ["id", 142]]
|
3603
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3604
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3605
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3606
|
+
------------------------------------------------
|
3607
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
3608
|
+
------------------------------------------------
|
3609
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3610
|
+
[1m[35mTaggable Exists (0.7ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3611
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-13 21:54:44.067316"], ["updated_at", "2015-11-13 21:54:44.067316"]]
|
3612
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3613
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3614
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3615
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3616
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
3617
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3618
|
+
-------------------------
|
3619
|
+
HumanUrlsTest: test_truth
|
3620
|
+
-------------------------
|
3621
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3622
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3623
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3624
|
+
------------------------------------------------------------------------------
|
3625
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
3626
|
+
------------------------------------------------------------------------------
|
3627
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
3628
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3629
|
+
------------------------------------------------------------------------------------------------------------
|
3630
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
3631
|
+
------------------------------------------------------------------------------------------------------------
|
3632
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
3633
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3634
|
+
----------------------------------------------
|
3635
|
+
SluggableTest: test_validates_presence_of_slug
|
3636
|
+
----------------------------------------------
|
3637
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3638
|
+
[1m[35mTaggable Exists (1.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
3639
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3640
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3641
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3642
|
+
------------------------------------------------
|
3643
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
3644
|
+
------------------------------------------------
|
3645
|
+
[1m[35m (0.8ms)[0m SAVEPOINT active_record_1
|
3646
|
+
[1m[36mTaggable Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3647
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-13 21:56:10.592978"], ["updated_at", "2015-11-13 21:56:10.592978"]]
|
3648
|
+
[1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3649
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
3650
|
+
[1m[36mTaggable Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3651
|
+
[1m[35m (0.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3652
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
3653
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3654
|
+
----------------------------------------------
|
3655
|
+
SluggableTest: test_#to_param_returns_the_slug
|
3656
|
+
----------------------------------------------
|
3657
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3658
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3659
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-13 21:56:10.610292"], ["updated_at", "2015-11-13 21:56:10.610292"]]
|
3660
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3661
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3662
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3663
|
+
------------------------------------------------------------------------------
|
3664
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
3665
|
+
------------------------------------------------------------------------------
|
3666
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
3667
|
+
[1m[35mTaggableWGeneratedSlug Exists (1.2ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
3668
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "my-title"], ["slug", "my-title"], ["created_at", "2015-11-13 21:56:10.631758"], ["updated_at", "2015-11-13 21:56:10.631758"]]
|
3669
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3670
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
3671
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.8ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') AND "taggable_w_generated_slugs"."id" != 36) LIMIT 1
|
3672
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3673
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3674
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3675
|
+
------------------------------------------------------------------------
|
3676
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
3677
|
+
------------------------------------------------------------------------
|
3678
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3679
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
3680
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-13 21:56:10.643814"], ["updated_at", "2015-11-13 21:56:10.643814"]]
|
3681
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3682
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3683
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3684
|
+
--------------------------------------------------------------------
|
3685
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
3686
|
+
--------------------------------------------------------------------
|
3687
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3688
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
3689
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-13 21:56:10.651507"], ["updated_at", "2015-11-13 21:56:10.651507"]]
|
3690
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3691
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3692
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
3693
|
+
-------------------------------------------------------------------------
|
3694
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
3695
|
+
-------------------------------------------------------------------------
|
3696
|
+
[1m[35m (0.7ms)[0m SAVEPOINT active_record_1
|
3697
|
+
[1m[36mTaggable Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3698
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-13 21:56:10.660728"], ["updated_at", "2015-11-13 21:56:10.660728"]]
|
3699
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3700
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3701
|
+
[1m[36mTaggable Exists (1.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3702
|
+
[1m[35m (0.5ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3703
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3704
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3705
|
+
-------------------------
|
3706
|
+
HumanUrlsTest: test_truth
|
3707
|
+
-------------------------
|
3708
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3709
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3710
|
+
[1m[35m (0.4ms)[0m BEGIN
|
3711
|
+
------------------------------------------------------------------------------
|
3712
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
3713
|
+
------------------------------------------------------------------------------
|
3714
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
3715
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3716
|
+
------------------------------------------------------------------------------------------------------------
|
3717
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
3718
|
+
------------------------------------------------------------------------------------------------------------
|
3719
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3720
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3721
|
+
-------------------------
|
3722
|
+
HumanUrlsTest: test_truth
|
3723
|
+
-------------------------
|
3724
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3725
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3726
|
+
-------------------------------------------------------------------------
|
3727
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
3728
|
+
-------------------------------------------------------------------------
|
3729
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3730
|
+
[1m[35mTaggable Exists (1.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3731
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-13 22:01:38.118768"], ["updated_at", "2015-11-13 22:01:38.118768"]]
|
3732
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3733
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3734
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3735
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3736
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3737
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3738
|
+
------------------------------------------------
|
3739
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
3740
|
+
------------------------------------------------
|
3741
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3742
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3743
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-13 22:01:38.130623"], ["updated_at", "2015-11-13 22:01:38.130623"]]
|
3744
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3745
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3746
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3747
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3748
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3749
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3750
|
+
--------------------------------------------------------------------
|
3751
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
3752
|
+
--------------------------------------------------------------------
|
3753
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3754
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3755
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3756
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3757
|
+
------------------------------------------------------------------------
|
3758
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
3759
|
+
------------------------------------------------------------------------
|
3760
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3761
|
+
[1m[35mTaggable Exists (0.7ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
3762
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-13 22:01:38.148931"], ["updated_at", "2015-11-13 22:01:38.148931"]]
|
3763
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3764
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3765
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3766
|
+
------------------------------------------------------------------------------
|
3767
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
3768
|
+
------------------------------------------------------------------------------
|
3769
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3770
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3771
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3772
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3773
|
+
----------------------------------------------
|
3774
|
+
SluggableTest: test_validates_presence_of_slug
|
3775
|
+
----------------------------------------------
|
3776
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3777
|
+
[1m[35mTaggable Exists (1.1ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
3778
|
+
[1m[36m (0.9ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3779
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3780
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3781
|
+
----------------------------------------------
|
3782
|
+
SluggableTest: test_#to_param_returns_the_slug
|
3783
|
+
----------------------------------------------
|
3784
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3785
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3786
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-13 22:01:38.165349"], ["updated_at", "2015-11-13 22:01:38.165349"]]
|
3787
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3788
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
3789
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3790
|
+
[1m[35m (0.4ms)[0m BEGIN
|
3791
|
+
------------------------------------------------------------------------------
|
3792
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
3793
|
+
------------------------------------------------------------------------------
|
3794
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
3795
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3796
|
+
------------------------------------------------------------------------------------------------------------
|
3797
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
3798
|
+
------------------------------------------------------------------------------------------------------------
|
3799
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
3800
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3801
|
+
-------------------------
|
3802
|
+
HumanUrlsTest: test_truth
|
3803
|
+
-------------------------
|
3804
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3805
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3806
|
+
--------------------------------------------------------------------
|
3807
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
3808
|
+
--------------------------------------------------------------------
|
3809
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3810
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3811
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3812
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3813
|
+
-------------------------------------------------------------------------
|
3814
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
3815
|
+
-------------------------------------------------------------------------
|
3816
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3817
|
+
[1m[35mTaggable Exists (1.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3818
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-13 22:03:01.906457"], ["updated_at", "2015-11-13 22:03:01.906457"]]
|
3819
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3820
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3821
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3822
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3823
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3824
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3825
|
+
----------------------------------------------
|
3826
|
+
SluggableTest: test_validates_presence_of_slug
|
3827
|
+
----------------------------------------------
|
3828
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3829
|
+
[1m[36mTaggable Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1[0m
|
3830
|
+
[1m[35m (0.7ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3831
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3832
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3833
|
+
------------------------------------------------------------------------------
|
3834
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
3835
|
+
------------------------------------------------------------------------------
|
3836
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3837
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3838
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3839
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3840
|
+
------------------------------------------------------------------------
|
3841
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
3842
|
+
------------------------------------------------------------------------
|
3843
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3844
|
+
[1m[35mTaggable Exists (0.8ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
3845
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-13 22:03:01.932236"], ["updated_at", "2015-11-13 22:03:01.932236"]]
|
3846
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
3847
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3848
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3849
|
+
------------------------------------------------
|
3850
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
3851
|
+
------------------------------------------------
|
3852
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3853
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3854
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-13 22:03:01.940763"], ["updated_at", "2015-11-13 22:03:01.940763"]]
|
3855
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3856
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3857
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3858
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3859
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3860
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3861
|
+
----------------------------------------------
|
3862
|
+
SluggableTest: test_#to_param_returns_the_slug
|
3863
|
+
----------------------------------------------
|
3864
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3865
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3866
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-13 22:03:01.950259"], ["updated_at", "2015-11-13 22:03:01.950259"]]
|
3867
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3868
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3869
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3870
|
+
[1m[35m (0.7ms)[0m BEGIN
|
3871
|
+
-------------------------
|
3872
|
+
HumanUrlsTest: test_truth
|
3873
|
+
-------------------------
|
3874
|
+
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
|
3875
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3876
|
+
----------------------------------------------
|
3877
|
+
SluggableTest: test_validates_presence_of_slug
|
3878
|
+
----------------------------------------------
|
3879
|
+
[1m[36m (1.8ms)[0m [1mSAVEPOINT active_record_1[0m
|
3880
|
+
[1m[35mTaggable Exists (3.0ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
3881
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3882
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3883
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3884
|
+
------------------------------------------------
|
3885
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
3886
|
+
------------------------------------------------
|
3887
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3888
|
+
[1m[36mTaggable Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3889
|
+
[1m[35mSQL (6.0ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-14 21:49:24.254439"], ["updated_at", "2015-11-14 21:49:24.254439"]]
|
3890
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3891
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3892
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3893
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3894
|
+
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
|
3895
|
+
[1m[35m (0.4ms)[0m BEGIN
|
3896
|
+
--------------------------------------------------------------------
|
3897
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
3898
|
+
--------------------------------------------------------------------
|
3899
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
3900
|
+
[1m[35m (0.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3901
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
3902
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3903
|
+
------------------------------------------------------------------------
|
3904
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
3905
|
+
------------------------------------------------------------------------
|
3906
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3907
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
3908
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-14 21:49:24.292893"], ["updated_at", "2015-11-14 21:49:24.292893"]]
|
3909
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3910
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3911
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3912
|
+
-------------------------------------------------------------------------
|
3913
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
3914
|
+
-------------------------------------------------------------------------
|
3915
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3916
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3917
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 21:49:24.297375"], ["updated_at", "2015-11-14 21:49:24.297375"]]
|
3918
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3919
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3920
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3921
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3922
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3923
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3924
|
+
------------------------------------------------------------------------------
|
3925
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
3926
|
+
------------------------------------------------------------------------------
|
3927
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3928
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3929
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3930
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3931
|
+
----------------------------------------------
|
3932
|
+
SluggableTest: test_#to_param_returns_the_slug
|
3933
|
+
----------------------------------------------
|
3934
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3935
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3936
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-14 21:49:24.311500"], ["updated_at", "2015-11-14 21:49:24.311500"]]
|
3937
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3938
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3939
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3940
|
+
------------------------------------------------------------------------------------------------------------
|
3941
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
3942
|
+
------------------------------------------------------------------------------------------------------------
|
3943
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
3944
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3945
|
+
------------------------------------------------------------------------------
|
3946
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
3947
|
+
------------------------------------------------------------------------------
|
3948
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3949
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3950
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3951
|
+
-------------------------
|
3952
|
+
HumanUrlsTest: test_truth
|
3953
|
+
-------------------------
|
3954
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
3955
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3956
|
+
------------------------------------------------------------------------------
|
3957
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
3958
|
+
------------------------------------------------------------------------------
|
3959
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3960
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3961
|
+
------------------------------------------------------------------------------------------------------------
|
3962
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
3963
|
+
------------------------------------------------------------------------------------------------------------
|
3964
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3965
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3966
|
+
----------------------------------------------
|
3967
|
+
SluggableTest: test_validates_presence_of_slug
|
3968
|
+
----------------------------------------------
|
3969
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3970
|
+
[1m[35mTaggable Exists (3.0ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
3971
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3972
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
3973
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3974
|
+
------------------------------------------------
|
3975
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
3976
|
+
------------------------------------------------
|
3977
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
3978
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3979
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-14 21:51:53.445990"], ["updated_at", "2015-11-14 21:51:53.445990"]]
|
3980
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3981
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
3982
|
+
[1m[36mTaggable Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3983
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3984
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3985
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3986
|
+
------------------------------------------------------------------------
|
3987
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
3988
|
+
------------------------------------------------------------------------
|
3989
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3990
|
+
[1m[35mTaggable Exists (0.7ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
3991
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-14 21:51:53.463834"], ["updated_at", "2015-11-14 21:51:53.463834"]]
|
3992
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3993
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3994
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3995
|
+
----------------------------------------------
|
3996
|
+
SluggableTest: test_#to_param_returns_the_slug
|
3997
|
+
----------------------------------------------
|
3998
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3999
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4000
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 21:51:53.469621"], ["updated_at", "2015-11-14 21:51:53.469621"]]
|
4001
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4002
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4003
|
+
[1m[35m (0.5ms)[0m BEGIN
|
4004
|
+
------------------------------------------------------------------------------
|
4005
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
4006
|
+
------------------------------------------------------------------------------
|
4007
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4008
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4009
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4010
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4011
|
+
--------------------------------------------------------------------
|
4012
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
4013
|
+
--------------------------------------------------------------------
|
4014
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4015
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4016
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4017
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4018
|
+
-------------------------------------------------------------------------
|
4019
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
4020
|
+
-------------------------------------------------------------------------
|
4021
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4022
|
+
[1m[35mTaggable Exists (0.8ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4023
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 21:51:53.494221"], ["updated_at", "2015-11-14 21:51:53.494221"]]
|
4024
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
4025
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4026
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4027
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4028
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4029
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4030
|
+
[1m[35m (0.3ms)[0m BEGIN
|
4031
|
+
------------------------------------------------------------------------------
|
4032
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
4033
|
+
------------------------------------------------------------------------------
|
4034
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
4035
|
+
[1m[35m (0.3ms)[0m BEGIN
|
4036
|
+
------------------------------------------------------------------------------------------------------------
|
4037
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
4038
|
+
------------------------------------------------------------------------------------------------------------
|
4039
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4040
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4041
|
+
----------------------------------------------
|
4042
|
+
SluggableTest: test_validates_presence_of_slug
|
4043
|
+
----------------------------------------------
|
4044
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4045
|
+
[1m[35mTaggable Exists (2.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
4046
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4047
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4048
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4049
|
+
------------------------------------------------
|
4050
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
4051
|
+
------------------------------------------------
|
4052
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4053
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4054
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-14 21:53:40.790939"], ["updated_at", "2015-11-14 21:53:40.790939"]]
|
4055
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4056
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
4057
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4058
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4059
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
4060
|
+
[1m[35m (0.4ms)[0m BEGIN
|
4061
|
+
------------------------------------------------------------------------------
|
4062
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
4063
|
+
------------------------------------------------------------------------------
|
4064
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4065
|
+
[1m[35mTaggableWGeneratedSlug Exists (3.2ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-old-slug') LIMIT 1
|
4066
|
+
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", "2015-11-14 21:53:40.816838"], ["updated_at", "2015-11-14 21:53:40.816838"]]
|
4067
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
4068
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4069
|
+
[1m[35mTaggableWGeneratedSlug Exists (1.2ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-new-slug') AND "taggable_w_generated_slugs"."id" != 38) LIMIT 1
|
4070
|
+
[1m[36mSQL (2.9ms)[0m [1mUPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["slug", "my-new-slug"], ["updated_at", "2015-11-14 21:53:40.826134"], ["id", 38]]
|
4071
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
4072
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4073
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4074
|
+
--------------------------------------------------------------------
|
4075
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
4076
|
+
--------------------------------------------------------------------
|
4077
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4078
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.4ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
4079
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-14 21:53:40.843875"], ["updated_at", "2015-11-14 21:53:40.843875"]]
|
4080
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4081
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4082
|
+
[1m[35m (0.4ms)[0m BEGIN
|
4083
|
+
-------------------------------------------------------------------------
|
4084
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
4085
|
+
-------------------------------------------------------------------------
|
4086
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
4087
|
+
[1m[35mTaggable Exists (0.7ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4088
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 21:53:40.855565"], ["updated_at", "2015-11-14 21:53:40.855565"]]
|
4089
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
4090
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4091
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4092
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4093
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
4094
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4095
|
+
------------------------------------------------------------------------
|
4096
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
4097
|
+
------------------------------------------------------------------------
|
4098
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4099
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
4100
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-14 21:53:40.865917"], ["updated_at", "2015-11-14 21:53:40.865917"]]
|
4101
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4102
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4103
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
4104
|
+
----------------------------------------------
|
4105
|
+
SluggableTest: test_#to_param_returns_the_slug
|
4106
|
+
----------------------------------------------
|
4107
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4108
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4109
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-14 21:53:40.871124"], ["updated_at", "2015-11-14 21:53:40.871124"]]
|
4110
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4111
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4112
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4113
|
+
-------------------------
|
4114
|
+
HumanUrlsTest: test_truth
|
4115
|
+
-------------------------
|
4116
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4117
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4118
|
+
[1m[35m (0.5ms)[0m BEGIN
|
4119
|
+
------------------------------------------------------------------------------
|
4120
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
4121
|
+
------------------------------------------------------------------------------
|
4122
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4123
|
+
[1m[35mTaggableWGeneratedSlug Exists (1.1ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
4124
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "my-title"], ["slug", "my-title"], ["created_at", "2015-11-14 21:54:02.919275"], ["updated_at", "2015-11-14 21:54:02.919275"]]
|
4125
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
4126
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4127
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.8ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') AND "taggable_w_generated_slugs"."id" != 40) LIMIT 1
|
4128
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4129
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
4130
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4131
|
+
----------------------------------------------
|
4132
|
+
SluggableTest: test_#to_param_returns_the_slug
|
4133
|
+
----------------------------------------------
|
4134
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
4135
|
+
[1m[36mTaggable Exists (1.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4136
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-14 21:54:02.941422"], ["updated_at", "2015-11-14 21:54:02.941422"]]
|
4137
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4138
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4139
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4140
|
+
------------------------------------------------
|
4141
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
4142
|
+
------------------------------------------------
|
4143
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4144
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4145
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-14 21:54:02.948253"], ["updated_at", "2015-11-14 21:54:02.948253"]]
|
4146
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4147
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4148
|
+
[1m[36mTaggable Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4149
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4150
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4151
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4152
|
+
--------------------------------------------------------------------
|
4153
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
4154
|
+
--------------------------------------------------------------------
|
4155
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4156
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.5ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('') LIMIT 1
|
4157
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4158
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4159
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4160
|
+
------------------------------------------------------------------------
|
4161
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
4162
|
+
------------------------------------------------------------------------
|
4163
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4164
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
4165
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-14 21:54:02.961367"], ["updated_at", "2015-11-14 21:54:02.961367"]]
|
4166
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4167
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4168
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4169
|
+
-------------------------------------------------------------------------
|
4170
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
4171
|
+
-------------------------------------------------------------------------
|
4172
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4173
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4174
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-14 21:54:02.966396"], ["updated_at", "2015-11-14 21:54:02.966396"]]
|
4175
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4176
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4177
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4178
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4179
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4180
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4181
|
+
----------------------------------------------
|
4182
|
+
SluggableTest: test_validates_presence_of_slug
|
4183
|
+
----------------------------------------------
|
4184
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4185
|
+
[1m[35mTaggable Exists (1.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
4186
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4187
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4188
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
4189
|
+
------------------------------------------------------------------------------
|
4190
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
4191
|
+
------------------------------------------------------------------------------
|
4192
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4193
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4194
|
+
------------------------------------------------------------------------------------------------------------
|
4195
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
4196
|
+
------------------------------------------------------------------------------------------------------------
|
4197
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
4198
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
4199
|
+
-------------------------
|
4200
|
+
HumanUrlsTest: test_truth
|
4201
|
+
-------------------------
|
4202
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4203
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4204
|
+
[1m[35m (0.3ms)[0m BEGIN
|
4205
|
+
-------------------------
|
4206
|
+
HumanUrlsTest: test_truth
|
4207
|
+
-------------------------
|
4208
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4209
|
+
[1m[35m (0.3ms)[0m BEGIN
|
4210
|
+
-------------------------------------------------------------------------
|
4211
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
4212
|
+
-------------------------------------------------------------------------
|
4213
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
4214
|
+
[1m[35mTaggable Exists (1.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4215
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 21:55:19.888612"], ["updated_at", "2015-11-14 21:55:19.888612"]]
|
4216
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
4217
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4218
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4219
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4220
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4221
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4222
|
+
------------------------------------------------------------------------
|
4223
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
4224
|
+
------------------------------------------------------------------------
|
4225
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
4226
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
4227
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-14 21:55:19.898931"], ["updated_at", "2015-11-14 21:55:19.898931"]]
|
4228
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4229
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4230
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4231
|
+
----------------------------------------------
|
4232
|
+
SluggableTest: test_validates_presence_of_slug
|
4233
|
+
----------------------------------------------
|
4234
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4235
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1[0m
|
4236
|
+
[1m[35m (0.6ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4237
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
4238
|
+
[1m[35m (0.5ms)[0m BEGIN
|
4239
|
+
------------------------------------------------------------------------------
|
4240
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
4241
|
+
------------------------------------------------------------------------------
|
4242
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4243
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4244
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4245
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4246
|
+
--------------------------------------------------------------------
|
4247
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
4248
|
+
--------------------------------------------------------------------
|
4249
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4250
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4251
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4252
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4253
|
+
----------------------------------------------
|
4254
|
+
SluggableTest: test_#to_param_returns_the_slug
|
4255
|
+
----------------------------------------------
|
4256
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4257
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4258
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 21:55:19.928424"], ["updated_at", "2015-11-14 21:55:19.928424"]]
|
4259
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
4260
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4261
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4262
|
+
------------------------------------------------
|
4263
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
4264
|
+
------------------------------------------------
|
4265
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4266
|
+
[1m[35mTaggable Exists (0.9ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4267
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 21:55:19.935462"], ["updated_at", "2015-11-14 21:55:19.935462"]]
|
4268
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
4269
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4270
|
+
[1m[35mTaggable Exists (0.8ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4271
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4272
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4273
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
4274
|
+
------------------------------------------------------------------------------
|
4275
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
4276
|
+
------------------------------------------------------------------------------
|
4277
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4278
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4279
|
+
------------------------------------------------------------------------------------------------------------
|
4280
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
4281
|
+
------------------------------------------------------------------------------------------------------------
|
4282
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
4283
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4284
|
+
[1m[35m (0.4ms)[0m BEGIN
|
4285
|
+
------------------------------------------------------------------------------
|
4286
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
4287
|
+
------------------------------------------------------------------------------
|
4288
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
4289
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4290
|
+
------------------------------------------------------------------------------------------------------------
|
4291
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
4292
|
+
------------------------------------------------------------------------------------------------------------
|
4293
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4294
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4295
|
+
-------------------------
|
4296
|
+
HumanUrlsTest: test_truth
|
4297
|
+
-------------------------
|
4298
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4299
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4300
|
+
-------------------------------------------------------------------------
|
4301
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
4302
|
+
-------------------------------------------------------------------------
|
4303
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
4304
|
+
[1m[35mTaggable Exists (1.3ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4305
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 21:57:27.397578"], ["updated_at", "2015-11-14 21:57:27.397578"]]
|
4306
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
4307
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
4308
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4309
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4310
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4311
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4312
|
+
------------------------------------------------
|
4313
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
4314
|
+
------------------------------------------------
|
4315
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4316
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4317
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-14 21:57:27.409948"], ["updated_at", "2015-11-14 21:57:27.409948"]]
|
4318
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4319
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4320
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4321
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4322
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4323
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4324
|
+
----------------------------------------------
|
4325
|
+
SluggableTest: test_validates_presence_of_slug
|
4326
|
+
----------------------------------------------
|
4327
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4328
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
4329
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4330
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4331
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4332
|
+
------------------------------------------------------------------------------
|
4333
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
4334
|
+
------------------------------------------------------------------------------
|
4335
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
4336
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-old-slug') LIMIT 1[0m
|
4337
|
+
[1m[35mSQL (2.3ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", "2015-11-14 21:57:27.431185"], ["updated_at", "2015-11-14 21:57:27.431185"]]
|
4338
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4339
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4340
|
+
[1m[36mTaggableWGeneratedSlug Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-new-slug') AND "taggable_w_generated_slugs"."id" != 41) LIMIT 1[0m
|
4341
|
+
[1m[35mSQL (1.2ms)[0m UPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3 [["slug", "my-new-slug"], ["updated_at", "2015-11-14 21:57:27.439013"], ["id", 41]]
|
4342
|
+
[1m[36m (1.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4343
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
4344
|
+
[1m[36mTaggableWGeneratedSlug Exists (1.2ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('') AND "taggable_w_generated_slugs"."id" != 41) LIMIT 1[0m
|
4345
|
+
[1m[35m (0.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4346
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
4347
|
+
[1m[35m (0.3ms)[0m BEGIN
|
4348
|
+
------------------------------------------------------------------------
|
4349
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
4350
|
+
------------------------------------------------------------------------
|
4351
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4352
|
+
[1m[35mTaggable Exists (0.8ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
4353
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-14 21:57:27.465405"], ["updated_at", "2015-11-14 21:57:27.465405"]]
|
4354
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
4355
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4356
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4357
|
+
--------------------------------------------------------------------
|
4358
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
4359
|
+
--------------------------------------------------------------------
|
4360
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4361
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.5ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
4362
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-14 21:57:27.472058"], ["updated_at", "2015-11-14 21:57:27.472058"]]
|
4363
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
4364
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4365
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4366
|
+
----------------------------------------------
|
4367
|
+
SluggableTest: test_#to_param_returns_the_slug
|
4368
|
+
----------------------------------------------
|
4369
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4370
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4371
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 21:57:27.478125"], ["updated_at", "2015-11-14 21:57:27.478125"]]
|
4372
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4373
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4374
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4375
|
+
[1m[35m (0.3ms)[0m BEGIN
|
4376
|
+
------------------------------------------------------------------------------
|
4377
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
4378
|
+
------------------------------------------------------------------------------
|
4379
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
4380
|
+
[1m[35m (0.3ms)[0m BEGIN
|
4381
|
+
------------------------------------------------------------------------------------------------------------
|
4382
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
4383
|
+
------------------------------------------------------------------------------------------------------------
|
4384
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4385
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4386
|
+
------------------------------------------------------------------------
|
4387
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
4388
|
+
------------------------------------------------------------------------
|
4389
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4390
|
+
[1m[35mTaggable Exists (2.0ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
4391
|
+
[1m[36mSQL (2.7ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-14 22:33:17.173037"], ["updated_at", "2015-11-14 22:33:17.173037"]]
|
4392
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
4393
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
4394
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4395
|
+
------------------------------------------------
|
4396
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
4397
|
+
------------------------------------------------
|
4398
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4399
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4400
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 22:33:18.719502"], ["updated_at", "2015-11-14 22:33:18.719502"]]
|
4401
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4402
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4403
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4404
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4405
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4406
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4407
|
+
----------------------------------------------
|
4408
|
+
SluggableTest: test_#to_param_returns_the_slug
|
4409
|
+
----------------------------------------------
|
4410
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4411
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4412
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-14 22:33:20.682734"], ["updated_at", "2015-11-14 22:33:20.682734"]]
|
4413
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4414
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4415
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4416
|
+
------------------------------------------------------------------------------
|
4417
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
4418
|
+
------------------------------------------------------------------------------
|
4419
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
4420
|
+
[1m[36mTaggableWGeneratedSlug Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-old-slug') LIMIT 1[0m
|
4421
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", "2015-11-14 22:33:21.548305"], ["updated_at", "2015-11-14 22:33:21.548305"]]
|
4422
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4423
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4424
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-new-slug') AND "taggable_w_generated_slugs"."id" != 43) LIMIT 1[0m
|
4425
|
+
[1m[35mSQL (0.8ms)[0m UPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3 [["slug", "my-new-slug"], ["updated_at", "2015-11-14 22:33:22.498418"], ["id", 43]]
|
4426
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4427
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
4428
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('') AND "taggable_w_generated_slugs"."id" != 43) LIMIT 1[0m
|
4429
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4430
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4431
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4432
|
+
----------------------------------------------
|
4433
|
+
SluggableTest: test_validates_presence_of_slug
|
4434
|
+
----------------------------------------------
|
4435
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4436
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
4437
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4438
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4439
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
4440
|
+
-------------------------------------------------------------------------
|
4441
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
4442
|
+
-------------------------------------------------------------------------
|
4443
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4444
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4445
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-14 22:33:25.249035"], ["updated_at", "2015-11-14 22:33:25.249035"]]
|
4446
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4447
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4448
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4449
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4450
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4451
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4452
|
+
--------------------------------------------------------------------
|
4453
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
4454
|
+
--------------------------------------------------------------------
|
4455
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4456
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.5ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
4457
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-14 22:33:27.093842"], ["updated_at", "2015-11-14 22:33:27.093842"]]
|
4458
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4459
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4460
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4461
|
+
-------------------------
|
4462
|
+
HumanUrlsTest: test_truth
|
4463
|
+
-------------------------
|
4464
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4465
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4466
|
+
[1m[35m (0.4ms)[0m BEGIN
|
4467
|
+
-------------------------------------------------------------------------
|
4468
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
4469
|
+
-------------------------------------------------------------------------
|
4470
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4471
|
+
[1m[35mTaggable Exists (1.0ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4472
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 22:33:35.496559"], ["updated_at", "2015-11-14 22:33:35.496559"]]
|
4473
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4474
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4475
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4476
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4477
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
4478
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4479
|
+
--------------------------------------------------------------------
|
4480
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
4481
|
+
--------------------------------------------------------------------
|
4482
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4483
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
4484
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-14 22:33:35.514084"], ["updated_at", "2015-11-14 22:33:35.514084"]]
|
4485
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4486
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4487
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4488
|
+
----------------------------------------------
|
4489
|
+
SluggableTest: test_validates_presence_of_slug
|
4490
|
+
----------------------------------------------
|
4491
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4492
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1[0m
|
4493
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4494
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4495
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4496
|
+
----------------------------------------------
|
4497
|
+
SluggableTest: test_#to_param_returns_the_slug
|
4498
|
+
----------------------------------------------
|
4499
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4500
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4501
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 22:33:35.524101"], ["updated_at", "2015-11-14 22:33:35.524101"]]
|
4502
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4503
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4504
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4505
|
+
------------------------------------------------------------------------------
|
4506
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
4507
|
+
------------------------------------------------------------------------------
|
4508
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4509
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.5ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-old-slug') LIMIT 1
|
4510
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", "2015-11-14 22:33:35.529124"], ["updated_at", "2015-11-14 22:33:35.529124"]]
|
4511
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4512
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4513
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.8ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-new-slug') AND "taggable_w_generated_slugs"."id" != 46) LIMIT 1
|
4514
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["slug", "my-new-slug"], ["updated_at", "2015-11-14 22:33:35.533550"], ["id", 46]]
|
4515
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
4516
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4517
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.6ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('') AND "taggable_w_generated_slugs"."id" != 46) LIMIT 1
|
4518
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4519
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4520
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4521
|
+
------------------------------------------------
|
4522
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
4523
|
+
------------------------------------------------
|
4524
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4525
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4526
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-14 22:33:35.546527"], ["updated_at", "2015-11-14 22:33:35.546527"]]
|
4527
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4528
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4529
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4530
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4531
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4532
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4533
|
+
------------------------------------------------------------------------
|
4534
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
4535
|
+
------------------------------------------------------------------------
|
4536
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4537
|
+
[1m[35mTaggable Exists (1.1ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
4538
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-14 22:33:35.557089"], ["updated_at", "2015-11-14 22:33:35.557089"]]
|
4539
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4540
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4541
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4542
|
+
-------------------------
|
4543
|
+
HumanUrlsTest: test_truth
|
4544
|
+
-------------------------
|
4545
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4546
|
+
[1m[35m (0.3ms)[0m BEGIN
|
4547
|
+
------------------------------------------------------------------------------
|
4548
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
4549
|
+
------------------------------------------------------------------------------
|
4550
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4551
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4552
|
+
------------------------------------------------------------------------------------------------------------
|
4553
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
4554
|
+
------------------------------------------------------------------------------------------------------------
|
4555
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4556
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4557
|
+
[1m[35m (0.3ms)[0m BEGIN
|
4558
|
+
-------------------------------------------------------------------------
|
4559
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
4560
|
+
-------------------------------------------------------------------------
|
4561
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4562
|
+
[1m[35mTaggable Exists (1.3ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4563
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 22:37:49.387958"], ["updated_at", "2015-11-14 22:37:49.387958"]]
|
4564
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4565
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4566
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4567
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4568
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
4569
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4570
|
+
------------------------------------------------
|
4571
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
4572
|
+
------------------------------------------------
|
4573
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4574
|
+
[1m[36mTaggable Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4575
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-14 22:37:49.397435"], ["updated_at", "2015-11-14 22:37:49.397435"]]
|
4576
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4577
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4578
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4579
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4580
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4581
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4582
|
+
------------------------------------------------------------------------
|
4583
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
4584
|
+
------------------------------------------------------------------------
|
4585
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4586
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
4587
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-14 22:37:49.405149"], ["updated_at", "2015-11-14 22:37:49.405149"]]
|
4588
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4589
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4590
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4591
|
+
----------------------------------------------
|
4592
|
+
SluggableTest: test_#to_param_returns_the_slug
|
4593
|
+
----------------------------------------------
|
4594
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4595
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4596
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 22:37:49.409672"], ["updated_at", "2015-11-14 22:37:49.409672"]]
|
4597
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4598
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4599
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4600
|
+
----------------------------------------------
|
4601
|
+
SluggableTest: test_validates_presence_of_slug
|
4602
|
+
----------------------------------------------
|
4603
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4604
|
+
[1m[35mTaggable Exists (0.7ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
4605
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4606
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4607
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4608
|
+
--------------------------------------------------------------------
|
4609
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
4610
|
+
--------------------------------------------------------------------
|
4611
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
4612
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
4613
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-14 22:37:49.427068"], ["updated_at", "2015-11-14 22:37:49.427068"]]
|
4614
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4615
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4616
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4617
|
+
------------------------------------------------------------------------------
|
4618
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
4619
|
+
------------------------------------------------------------------------------
|
4620
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4621
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-old-slug') LIMIT 1[0m
|
4622
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", "2015-11-14 22:37:49.433375"], ["updated_at", "2015-11-14 22:37:49.433375"]]
|
4623
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4624
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4625
|
+
[1m[36mTaggableWGeneratedSlug Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-new-slug') AND "taggable_w_generated_slugs"."id" != 48) LIMIT 1[0m
|
4626
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3 [["slug", "my-new-slug"], ["updated_at", "2015-11-14 22:37:49.439091"], ["id", 48]]
|
4627
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4628
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4629
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('') AND "taggable_w_generated_slugs"."id" != 48) LIMIT 1[0m
|
4630
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4631
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4632
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4633
|
+
------------------------------------------------------------------------------
|
4634
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
4635
|
+
------------------------------------------------------------------------------
|
4636
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4637
|
+
[1m[35m (0.3ms)[0m BEGIN
|
4638
|
+
------------------------------------------------------------------------------------------------------------
|
4639
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
4640
|
+
------------------------------------------------------------------------------------------------------------
|
4641
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4642
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4643
|
+
-------------------------
|
4644
|
+
HumanUrlsTest: test_truth
|
4645
|
+
-------------------------
|
4646
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4647
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4648
|
+
[1m[35m (0.3ms)[0m BEGIN
|
4649
|
+
------------------------------------------------------------------------------
|
4650
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
4651
|
+
------------------------------------------------------------------------------
|
4652
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4653
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4654
|
+
------------------------------------------------------------------------------------------------------------
|
4655
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
4656
|
+
------------------------------------------------------------------------------------------------------------
|
4657
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
4658
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4659
|
+
-------------------------
|
4660
|
+
HumanUrlsTest: test_truth
|
4661
|
+
-------------------------
|
4662
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4663
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4664
|
+
------------------------------------------------
|
4665
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
4666
|
+
------------------------------------------------
|
4667
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4668
|
+
[1m[35mTaggable Exists (1.2ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4669
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 22:42:02.075952"], ["updated_at", "2015-11-14 22:42:02.075952"]]
|
4670
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4671
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4672
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4673
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4674
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
4675
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4676
|
+
-------------------------------------------------------------------------
|
4677
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
4678
|
+
-------------------------------------------------------------------------
|
4679
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4680
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4681
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-14 22:42:02.086071"], ["updated_at", "2015-11-14 22:42:02.086071"]]
|
4682
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4683
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
4684
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4685
|
+
[1m[35m (0.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4686
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4687
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4688
|
+
------------------------------------------------------------------------
|
4689
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
4690
|
+
------------------------------------------------------------------------
|
4691
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4692
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
4693
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-14 22:42:02.095933"], ["updated_at", "2015-11-14 22:42:02.095933"]]
|
4694
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
4695
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4696
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4697
|
+
----------------------------------------------
|
4698
|
+
SluggableTest: test_#to_param_returns_the_slug
|
4699
|
+
----------------------------------------------
|
4700
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4701
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4702
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 22:42:02.100571"], ["updated_at", "2015-11-14 22:42:02.100571"]]
|
4703
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4704
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4705
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4706
|
+
------------------------------------------------------------------------------
|
4707
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
4708
|
+
------------------------------------------------------------------------------
|
4709
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4710
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.8ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-old-slug') LIMIT 1
|
4711
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", "2015-11-14 22:42:02.113062"], ["updated_at", "2015-11-14 22:42:02.113062"]]
|
4712
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
4713
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4714
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.9ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-new-slug') AND "taggable_w_generated_slugs"."id" != 49) LIMIT 1
|
4715
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["slug", "my-new-slug"], ["updated_at", "2015-11-14 22:42:02.118769"], ["id", 49]]
|
4716
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
4717
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4718
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.6ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('') AND "taggable_w_generated_slugs"."id" != 49) LIMIT 1
|
4719
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4720
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4721
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4722
|
+
--------------------------------------------------------------------
|
4723
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
4724
|
+
--------------------------------------------------------------------
|
4725
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
4726
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('') LIMIT 1[0m
|
4727
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4728
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4729
|
+
[1m[35m (0.3ms)[0m BEGIN
|
4730
|
+
----------------------------------------------
|
4731
|
+
SluggableTest: test_validates_presence_of_slug
|
4732
|
+
----------------------------------------------
|
4733
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4734
|
+
[1m[35mTaggable Exists (0.7ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
4735
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4736
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4737
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4738
|
+
[1m[35m (0.4ms)[0m BEGIN
|
4739
|
+
-------------------------
|
4740
|
+
HumanUrlsTest: test_truth
|
4741
|
+
-------------------------
|
4742
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4743
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4744
|
+
------------------------------------------------------------------------------
|
4745
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
4746
|
+
------------------------------------------------------------------------------
|
4747
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4748
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4749
|
+
------------------------------------------------------------------------------------------------------------
|
4750
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
4751
|
+
------------------------------------------------------------------------------------------------------------
|
4752
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
4753
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4754
|
+
----------------------------------------------
|
4755
|
+
SluggableTest: test_#to_param_returns_the_slug
|
4756
|
+
----------------------------------------------
|
4757
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4758
|
+
[1m[35mTaggable Exists (1.3ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4759
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 22:43:12.292206"], ["updated_at", "2015-11-14 22:43:12.292206"]]
|
4760
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
4761
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
4762
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4763
|
+
------------------------------------------------
|
4764
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
4765
|
+
------------------------------------------------
|
4766
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4767
|
+
[1m[35mTaggable Exists (0.7ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4768
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 22:43:12.301445"], ["updated_at", "2015-11-14 22:43:12.301445"]]
|
4769
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4770
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4771
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4772
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4773
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
4774
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4775
|
+
----------------------------------------------
|
4776
|
+
SluggableTest: test_validates_presence_of_slug
|
4777
|
+
----------------------------------------------
|
4778
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
4779
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1[0m
|
4780
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4781
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4782
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4783
|
+
--------------------------------------------------------------------
|
4784
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
4785
|
+
--------------------------------------------------------------------
|
4786
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4787
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.8ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
4788
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-14 22:43:12.323622"], ["updated_at", "2015-11-14 22:43:12.323622"]]
|
4789
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4790
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4791
|
+
[1m[35m (0.3ms)[0m BEGIN
|
4792
|
+
------------------------------------------------------------------------
|
4793
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
4794
|
+
------------------------------------------------------------------------
|
4795
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4796
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
4797
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-14 22:43:12.329816"], ["updated_at", "2015-11-14 22:43:12.329816"]]
|
4798
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4799
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4800
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4801
|
+
-------------------------------------------------------------------------
|
4802
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
4803
|
+
-------------------------------------------------------------------------
|
4804
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4805
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4806
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 22:43:12.334680"], ["updated_at", "2015-11-14 22:43:12.334680"]]
|
4807
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4808
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4809
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4810
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4811
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4812
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
4813
|
+
------------------------------------------------------------------------------
|
4814
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
4815
|
+
------------------------------------------------------------------------------
|
4816
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4817
|
+
[1m[36mTaggableWGeneratedSlug Exists (1.3ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-old-slug') LIMIT 1[0m
|
4818
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", "2015-11-14 22:43:12.344900"], ["updated_at", "2015-11-14 22:43:12.344900"]]
|
4819
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4820
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4821
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-new-slug') AND "taggable_w_generated_slugs"."id" != 51) LIMIT 1[0m
|
4822
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3 [["slug", "my-new-slug"], ["updated_at", "2015-11-14 22:43:12.351106"], ["id", 51]]
|
4823
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4824
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
4825
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') AND "taggable_w_generated_slugs"."id" != 51) LIMIT 1[0m
|
4826
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3 [["slug", "my-title"], ["updated_at", "2015-11-14 22:43:12.361759"], ["id", 51]]
|
4827
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4828
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4829
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4830
|
+
[1m[35m (0.3ms)[0m BEGIN
|
4831
|
+
------------------------------------------------------------------------
|
4832
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
4833
|
+
------------------------------------------------------------------------
|
4834
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
4835
|
+
[1m[35mTaggable Exists (1.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
4836
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-14 22:43:54.305400"], ["updated_at", "2015-11-14 22:43:54.305400"]]
|
4837
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
4838
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4839
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4840
|
+
-------------------------------------------------------------------------
|
4841
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
4842
|
+
-------------------------------------------------------------------------
|
4843
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4844
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4845
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 22:43:54.311990"], ["updated_at", "2015-11-14 22:43:54.311990"]]
|
4846
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4847
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4848
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4849
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4850
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4851
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
4852
|
+
------------------------------------------------------------------------------
|
4853
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
4854
|
+
------------------------------------------------------------------------------
|
4855
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
4856
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-old-slug') LIMIT 1[0m
|
4857
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", "2015-11-14 22:43:54.329735"], ["updated_at", "2015-11-14 22:43:54.329735"]]
|
4858
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4859
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4860
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-new-slug') AND "taggable_w_generated_slugs"."id" != 52) LIMIT 1[0m
|
4861
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3 [["slug", "my-new-slug"], ["updated_at", "2015-11-14 22:43:54.335438"], ["id", 52]]
|
4862
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4863
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4864
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') AND "taggable_w_generated_slugs"."id" != 52) LIMIT 1[0m
|
4865
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3 [["slug", "my-title"], ["updated_at", "2015-11-14 22:43:54.346984"], ["id", 52]]
|
4866
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4867
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4868
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4869
|
+
----------------------------------------------
|
4870
|
+
SluggableTest: test_#to_param_returns_the_slug
|
4871
|
+
----------------------------------------------
|
4872
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4873
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
4874
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-14 22:43:54.353040"], ["updated_at", "2015-11-14 22:43:54.353040"]]
|
4875
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4876
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4877
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4878
|
+
--------------------------------------------------------------------
|
4879
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
4880
|
+
--------------------------------------------------------------------
|
4881
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4882
|
+
[1m[36mTaggableWGeneratedSlug Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
4883
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-14 22:43:54.361191"], ["updated_at", "2015-11-14 22:43:54.361191"]]
|
4884
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4885
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4886
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4887
|
+
----------------------------------------------
|
4888
|
+
SluggableTest: test_validates_presence_of_slug
|
4889
|
+
----------------------------------------------
|
4890
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4891
|
+
[1m[36mTaggable Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1[0m
|
4892
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4893
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
4894
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4895
|
+
------------------------------------------------
|
4896
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
4897
|
+
------------------------------------------------
|
4898
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4899
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4900
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 22:43:54.370909"], ["updated_at", "2015-11-14 22:43:54.370909"]]
|
4901
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4902
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4903
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4904
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4905
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4906
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4907
|
+
-------------------------
|
4908
|
+
HumanUrlsTest: test_truth
|
4909
|
+
-------------------------
|
4910
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4911
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4912
|
+
------------------------------------------------------------------------------------------------------------
|
4913
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
4914
|
+
------------------------------------------------------------------------------------------------------------
|
4915
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4916
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4917
|
+
------------------------------------------------------------------------------
|
4918
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
4919
|
+
------------------------------------------------------------------------------
|
4920
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4921
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4922
|
+
[1m[35m (0.4ms)[0m BEGIN
|
4923
|
+
------------------------------------------------------------------------------------------------------------
|
4924
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
4925
|
+
------------------------------------------------------------------------------------------------------------
|
4926
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
4927
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4928
|
+
------------------------------------------------------------------------------
|
4929
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
4930
|
+
------------------------------------------------------------------------------
|
4931
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4932
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4933
|
+
------------------------------------------------
|
4934
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
4935
|
+
------------------------------------------------
|
4936
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
4937
|
+
[1m[35mTaggable Exists (1.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4938
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 22:46:00.019482"], ["updated_at", "2015-11-14 22:46:00.019482"]]
|
4939
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
4940
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4941
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4942
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4943
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
4944
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4945
|
+
------------------------------------------------------------------------------
|
4946
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
4947
|
+
------------------------------------------------------------------------------
|
4948
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
4949
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-old-slug') LIMIT 1[0m
|
4950
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", "2015-11-14 22:46:00.040687"], ["updated_at", "2015-11-14 22:46:00.040687"]]
|
4951
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4952
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4953
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-new-slug') AND "taggable_w_generated_slugs"."id" != 54) LIMIT 1[0m
|
4954
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3 [["slug", "my-new-slug"], ["updated_at", "2015-11-14 22:46:00.046830"], ["id", 54]]
|
4955
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4956
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
4957
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE (LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') AND "taggable_w_generated_slugs"."id" != 54) LIMIT 1[0m
|
4958
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3 [["slug", "my-title"], ["updated_at", "2015-11-14 22:46:00.057697"], ["id", 54]]
|
4959
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4960
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4961
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4962
|
+
--------------------------------------------------------------------
|
4963
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
4964
|
+
--------------------------------------------------------------------
|
4965
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4966
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
4967
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-14 22:46:00.062759"], ["updated_at", "2015-11-14 22:46:00.062759"]]
|
4968
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4969
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4970
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
4971
|
+
----------------------------------------------
|
4972
|
+
SluggableTest: test_validates_presence_of_slug
|
4973
|
+
----------------------------------------------
|
4974
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
4975
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1[0m
|
4976
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
4977
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4978
|
+
[1m[35m (0.3ms)[0m BEGIN
|
4979
|
+
-------------------------------------------------------------------------
|
4980
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
4981
|
+
-------------------------------------------------------------------------
|
4982
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4983
|
+
[1m[35mTaggable Exists (0.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4984
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-14 22:46:00.072296"], ["updated_at", "2015-11-14 22:46:00.072296"]]
|
4985
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
4986
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4987
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
4988
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
4989
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
4990
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
4991
|
+
------------------------------------------------------------------------
|
4992
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
4993
|
+
------------------------------------------------------------------------
|
4994
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
4995
|
+
[1m[36mTaggable Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
4996
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-14 22:46:00.084164"], ["updated_at", "2015-11-14 22:46:00.084164"]]
|
4997
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4998
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4999
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
5000
|
+
----------------------------------------------
|
5001
|
+
SluggableTest: test_#to_param_returns_the_slug
|
5002
|
+
----------------------------------------------
|
5003
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
5004
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
5005
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-14 22:46:00.088667"], ["updated_at", "2015-11-14 22:46:00.088667"]]
|
5006
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5007
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
5008
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
5009
|
+
-------------------------
|
5010
|
+
HumanUrlsTest: test_truth
|
5011
|
+
-------------------------
|
5012
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|