has_public_id 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/has_public_id/activerecord/mixin.rb +4 -2
- data/lib/has_public_id/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +699 -0
- data/test/dummy/test/models/user_test.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17681068cf9fad1ccde3d640318e89bd52aa65f3
|
4
|
+
data.tar.gz: 07c0360bd448332778f07c3951294a9834632473
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31fa3a91d4685fd1e85f24b07a0876e553928efe74d997120ed59598d30370cc197436456de4310f32f53871d7a3753682d48f0d076233903d3702ad9f9b1e03
|
7
|
+
data.tar.gz: ee1967309c8233ccd9ea209136b18a6dd57770e832f21452b3bcbcf4cef1c02921a97bace4965657f5fe41d533c95c98e72ea58fbe34b28b28b247813e983cc1
|
@@ -8,8 +8,10 @@ module HasPublicId
|
|
8
8
|
self.class.public_id_attr
|
9
9
|
end
|
10
10
|
def initialize_public_id
|
11
|
-
|
12
|
-
|
11
|
+
if has_attribute?(public_id_attr)
|
12
|
+
read_attribute(public_id_attr) or
|
13
|
+
write_attribute(public_id_attr, self.class.new_public_id)
|
14
|
+
end
|
13
15
|
end
|
14
16
|
end
|
15
17
|
module Mixin
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -6448,3 +6448,702 @@ HasPublicId::UtilTest: test_new_public_id(with_nil_prefix)
|
|
6448
6448
|
HasPublicId::UtilTest: test_new_public_id(with_prefix)
|
6449
6449
|
------------------------------------------------------
|
6450
6450
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6451
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6452
|
+
[1m[35m (0.2ms)[0m begin transaction
|
6453
|
+
[1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "users"[0m
|
6454
|
+
[1m[35mFixture Insert (1.0ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Sammy', NULL, '2014-11-22 15:05:28', '2014-11-22 15:05:28', 980190962)
|
6455
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Joe', NULL, '2014-11-22 15:05:28', '2014-11-22 15:05:28', 298486374)[0m
|
6456
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Susan', NULL, '2014-11-22 15:05:28', '2014-11-22 15:05:28', 113629430)
|
6457
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
6458
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6459
|
+
----------------------------------------
|
6460
|
+
AdminTest: test_identifier_doesnt_change
|
6461
|
+
----------------------------------------
|
6462
|
+
[1m[36mAdmin Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-CWgjw4lQ9UHs' LIMIT 1[0m
|
6463
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6464
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "ident", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-22 15:05:28.864804"], ["ident", "user-CWgjw4lQ9UHs"], ["updated_at", "2014-11-22 15:05:28.864804"]]
|
6465
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6466
|
+
[1m[36mAdmin Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
6467
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6468
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6469
|
+
[1m[35mAdmin Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
6470
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
6471
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6472
|
+
--------------------------------------------------
|
6473
|
+
AdminTest: test_identifier_initializes_from_parent
|
6474
|
+
--------------------------------------------------
|
6475
|
+
[1m[36mAdmin Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-5zvK2bqpk6Cy' LIMIT 1[0m
|
6476
|
+
[1m[35mAdmin Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-95pQl1FB5t8p' LIMIT 1
|
6477
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6478
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6479
|
+
--------------------------------------------------
|
6480
|
+
AdminTest: test_inherited_class_has_public_id_attr
|
6481
|
+
--------------------------------------------------
|
6482
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
6483
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6484
|
+
---------------------------
|
6485
|
+
HasPublicIdTest: test_Mixin
|
6486
|
+
---------------------------
|
6487
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6488
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6489
|
+
-------------------------------------------
|
6490
|
+
HasPublicId::UtilTest: test_char_set.length
|
6491
|
+
-------------------------------------------
|
6492
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6493
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6494
|
+
--------------------------------------------------
|
6495
|
+
HasPublicId::UtilTest: test_generate_random_suffix
|
6496
|
+
--------------------------------------------------
|
6497
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6498
|
+
[1m[35m (0.2ms)[0m begin transaction
|
6499
|
+
----------------------------------------------------------
|
6500
|
+
HasPublicId::UtilTest: test_generate_random_suffix(length)
|
6501
|
+
----------------------------------------------------------
|
6502
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6503
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6504
|
+
------------------------------------------------------------
|
6505
|
+
HasPublicId::UtilTest: test_new_public_id(with_blank_prefix)
|
6506
|
+
------------------------------------------------------------
|
6507
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6508
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6509
|
+
------------------------------------------------------------
|
6510
|
+
HasPublicId::UtilTest: test_new_public_id(with_false_prefix)
|
6511
|
+
------------------------------------------------------------
|
6512
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6513
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6514
|
+
---------------------------------------------------------
|
6515
|
+
HasPublicId::UtilTest: test_new_public_id(with_join_with)
|
6516
|
+
---------------------------------------------------------
|
6517
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6518
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6519
|
+
----------------------------------------------------------
|
6520
|
+
HasPublicId::UtilTest: test_new_public_id(with_nil_prefix)
|
6521
|
+
----------------------------------------------------------
|
6522
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6523
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6524
|
+
------------------------------------------------------
|
6525
|
+
HasPublicId::UtilTest: test_new_public_id(with_prefix)
|
6526
|
+
------------------------------------------------------
|
6527
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6528
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6529
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "users"[0m
|
6530
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Sammy', NULL, '2014-11-22 15:05:29', '2014-11-22 15:05:29', 980190962)
|
6531
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Joe', NULL, '2014-11-22 15:05:29', '2014-11-22 15:05:29', 298486374)[0m
|
6532
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Susan', NULL, '2014-11-22 15:05:29', '2014-11-22 15:05:29', 113629430)
|
6533
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
6534
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6535
|
+
--------------------------------
|
6536
|
+
UserTest: test_find_by_public_id
|
6537
|
+
--------------------------------
|
6538
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-vb2mr89t5EWm' LIMIT 1[0m
|
6539
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6540
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "ident", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-22 15:05:29.066777"], ["ident", "user-vb2mr89t5EWm"], ["name", "joey"], ["updated_at", "2014-11-22 15:05:29.066777"]]
|
6541
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6542
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" = 'user-vb2mr89t5EWm' ORDER BY "users"."id" ASC LIMIT 1[0m
|
6543
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" = 'bad_key' ORDER BY "users"."id" ASC LIMIT 1
|
6544
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
6545
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6546
|
+
---------------------------------
|
6547
|
+
UserTest: test_find_by_public_id!
|
6548
|
+
---------------------------------
|
6549
|
+
[1m[36mUser Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-4Dl3hM5mH0ko' LIMIT 1[0m
|
6550
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6551
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "ident", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-22 15:05:29.073656"], ["ident", "user-4Dl3hM5mH0ko"], ["name", "joey"], ["updated_at", "2014-11-22 15:05:29.073656"]]
|
6552
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6553
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" = 'user-4Dl3hM5mH0ko' ORDER BY "users"."id" ASC LIMIT 1[0m
|
6554
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" = 'bad_key' ORDER BY "users"."id" ASC LIMIT 1
|
6555
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
6556
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6557
|
+
---------------------------------------
|
6558
|
+
UserTest: test_identifier_doesnt_change
|
6559
|
+
---------------------------------------
|
6560
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-LSkpcwzlNQPp' LIMIT 1[0m
|
6561
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6562
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "ident", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-22 15:05:29.079009"], ["ident", "user-LSkpcwzlNQPp"], ["updated_at", "2014-11-22 15:05:29.079009"]]
|
6563
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6564
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
6565
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6566
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6567
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
6568
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
6569
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6570
|
+
-------------------------------------
|
6571
|
+
UserTest: test_identifier_initializes
|
6572
|
+
-------------------------------------
|
6573
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-uvKT7B6rOoQV' LIMIT 1[0m
|
6574
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-p2UypYtH3vH8' LIMIT 1
|
6575
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6576
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6577
|
+
-------------------------------------
|
6578
|
+
UserTest: test_initialize_public_ids!
|
6579
|
+
-------------------------------------
|
6580
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE "users"."ident" IS NULL[0m
|
6581
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" IS NULL ORDER BY "users"."id" ASC LIMIT 1000
|
6582
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-smTFfBHclB1t' LIMIT 1[0m
|
6583
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-WodIlT28IiDh' LIMIT 1
|
6584
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-O3vUc47p0aUt' LIMIT 1[0m
|
6585
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-5qiRVFT41SQW' LIMIT 1
|
6586
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6587
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 113629430 [["ident", "user-5qiRVFT41SQW"], ["updated_at", "2014-11-22 15:05:29.098261"]]
|
6588
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6589
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-3ncYWr6EoCwV' LIMIT 1
|
6590
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6591
|
+
[1m[35mSQL (1.4ms)[0m UPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 298486374 [["ident", "user-3ncYWr6EoCwV"], ["updated_at", "2014-11-22 15:05:29.102020"]]
|
6592
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6593
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-kOjHuvaOezwn' LIMIT 1
|
6594
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6595
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 980190962 [["ident", "user-kOjHuvaOezwn"], ["updated_at", "2014-11-22 15:05:29.105969"]]
|
6596
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6597
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE "users"."ident" IS NULL
|
6598
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
6599
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6600
|
+
----------------------------
|
6601
|
+
UserTest: test_new_public_id
|
6602
|
+
----------------------------
|
6603
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-ddM8P2ixWO4N' LIMIT 1[0m
|
6604
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6605
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6606
|
+
------------------------------------------
|
6607
|
+
UserTest: test_to_param_matches_identifier
|
6608
|
+
------------------------------------------
|
6609
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-oFCVnDKFW9JT' LIMIT 1
|
6610
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6611
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6612
|
+
-------------------------------
|
6613
|
+
UserTest: test_use_group-by_sql
|
6614
|
+
-------------------------------
|
6615
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT name, count(name) as count FROM "users" GROUP BY name[0m
|
6616
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
6617
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-z7A6WfijmWXs' LIMIT 1[0m
|
6618
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-mIwaAEf1fXzi' LIMIT 1
|
6619
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-E2ZjCq799KcX' LIMIT 1[0m
|
6620
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
6621
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-soyNnZOwzxlL' LIMIT 1[0m
|
6622
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-7a9uIt0rmjRm' LIMIT 1
|
6623
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-cxO2ojj7fADG' LIMIT 1[0m
|
6624
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6625
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6626
|
+
[1m[35m (0.2ms)[0m begin transaction
|
6627
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "users"[0m
|
6628
|
+
[1m[35mFixture Insert (0.8ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Sammy', NULL, '2014-11-22 15:06:03', '2014-11-22 15:06:03', 980190962)
|
6629
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Joe', NULL, '2014-11-22 15:06:03', '2014-11-22 15:06:03', 298486374)[0m
|
6630
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Susan', NULL, '2014-11-22 15:06:03', '2014-11-22 15:06:03', 113629430)
|
6631
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
6632
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6633
|
+
----------------------------------------
|
6634
|
+
AdminTest: test_identifier_doesnt_change
|
6635
|
+
----------------------------------------
|
6636
|
+
[1m[36mAdmin Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-RsQKGsW68Kdv' LIMIT 1[0m
|
6637
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6638
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "ident", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-22 15:06:03.357653"], ["ident", "user-RsQKGsW68Kdv"], ["updated_at", "2014-11-22 15:06:03.357653"]]
|
6639
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6640
|
+
[1m[36mAdmin Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
6641
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6642
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6643
|
+
[1m[35mAdmin Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
6644
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
6645
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6646
|
+
--------------------------------------------------
|
6647
|
+
AdminTest: test_identifier_initializes_from_parent
|
6648
|
+
--------------------------------------------------
|
6649
|
+
[1m[36mAdmin Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-yyesTDSCSXlZ' LIMIT 1[0m
|
6650
|
+
[1m[35mAdmin Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-GeR7BYzJQQCW' LIMIT 1
|
6651
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6652
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6653
|
+
--------------------------------------------------
|
6654
|
+
AdminTest: test_inherited_class_has_public_id_attr
|
6655
|
+
--------------------------------------------------
|
6656
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6657
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6658
|
+
-------------------------------------------
|
6659
|
+
HasPublicId::UtilTest: test_char_set.length
|
6660
|
+
-------------------------------------------
|
6661
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6662
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6663
|
+
--------------------------------------------------
|
6664
|
+
HasPublicId::UtilTest: test_generate_random_suffix
|
6665
|
+
--------------------------------------------------
|
6666
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6667
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6668
|
+
----------------------------------------------------------
|
6669
|
+
HasPublicId::UtilTest: test_generate_random_suffix(length)
|
6670
|
+
----------------------------------------------------------
|
6671
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6672
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6673
|
+
------------------------------------------------------------
|
6674
|
+
HasPublicId::UtilTest: test_new_public_id(with_blank_prefix)
|
6675
|
+
------------------------------------------------------------
|
6676
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6677
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6678
|
+
------------------------------------------------------------
|
6679
|
+
HasPublicId::UtilTest: test_new_public_id(with_false_prefix)
|
6680
|
+
------------------------------------------------------------
|
6681
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6682
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6683
|
+
---------------------------------------------------------
|
6684
|
+
HasPublicId::UtilTest: test_new_public_id(with_join_with)
|
6685
|
+
---------------------------------------------------------
|
6686
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6687
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6688
|
+
----------------------------------------------------------
|
6689
|
+
HasPublicId::UtilTest: test_new_public_id(with_nil_prefix)
|
6690
|
+
----------------------------------------------------------
|
6691
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6692
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6693
|
+
------------------------------------------------------
|
6694
|
+
HasPublicId::UtilTest: test_new_public_id(with_prefix)
|
6695
|
+
------------------------------------------------------
|
6696
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6697
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6698
|
+
---------------------------
|
6699
|
+
HasPublicIdTest: test_Mixin
|
6700
|
+
---------------------------
|
6701
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6702
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6703
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "users"[0m
|
6704
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Sammy', NULL, '2014-11-22 15:06:03', '2014-11-22 15:06:03', 980190962)
|
6705
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Joe', NULL, '2014-11-22 15:06:03', '2014-11-22 15:06:03', 298486374)[0m
|
6706
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Susan', NULL, '2014-11-22 15:06:03', '2014-11-22 15:06:03', 113629430)
|
6707
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
6708
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6709
|
+
--------------------------------
|
6710
|
+
UserTest: test_find_by_public_id
|
6711
|
+
--------------------------------
|
6712
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-d2VbYMUeibnG' LIMIT 1[0m
|
6713
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6714
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "ident", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-22 15:06:03.555126"], ["ident", "user-d2VbYMUeibnG"], ["name", "joey"], ["updated_at", "2014-11-22 15:06:03.555126"]]
|
6715
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6716
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" = 'user-d2VbYMUeibnG' ORDER BY "users"."id" ASC LIMIT 1[0m
|
6717
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" = 'bad_key' ORDER BY "users"."id" ASC LIMIT 1
|
6718
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
6719
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6720
|
+
---------------------------------
|
6721
|
+
UserTest: test_find_by_public_id!
|
6722
|
+
---------------------------------
|
6723
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-KAH84noXH5dl' LIMIT 1[0m
|
6724
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6725
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "ident", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-22 15:06:03.562028"], ["ident", "user-KAH84noXH5dl"], ["name", "joey"], ["updated_at", "2014-11-22 15:06:03.562028"]]
|
6726
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6727
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" = 'user-KAH84noXH5dl' ORDER BY "users"."id" ASC LIMIT 1[0m
|
6728
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" = 'bad_key' ORDER BY "users"."id" ASC LIMIT 1
|
6729
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
6730
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6731
|
+
---------------------------------------
|
6732
|
+
UserTest: test_identifier_doesnt_change
|
6733
|
+
---------------------------------------
|
6734
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-UIpFybegvkGi' LIMIT 1[0m
|
6735
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6736
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "ident", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-22 15:06:03.568978"], ["ident", "user-UIpFybegvkGi"], ["updated_at", "2014-11-22 15:06:03.568978"]]
|
6737
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6738
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
6739
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6740
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6741
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
6742
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
6743
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6744
|
+
-------------------------------------
|
6745
|
+
UserTest: test_identifier_initializes
|
6746
|
+
-------------------------------------
|
6747
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-qYo2DdP8NXDa' LIMIT 1[0m
|
6748
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-i8oGcjWhCUIJ' LIMIT 1
|
6749
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6750
|
+
[1m[35m (0.0ms)[0m begin transaction
|
6751
|
+
-------------------------------------
|
6752
|
+
UserTest: test_initialize_public_ids!
|
6753
|
+
-------------------------------------
|
6754
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE "users"."ident" IS NULL[0m
|
6755
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" IS NULL ORDER BY "users"."id" ASC LIMIT 1000
|
6756
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-fOFgkdTmc8cf' LIMIT 1[0m
|
6757
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-92il8c19DhG7' LIMIT 1
|
6758
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-lJhjqTgMZ0mf' LIMIT 1[0m
|
6759
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-QJaGYfIq8zV4' LIMIT 1
|
6760
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6761
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 113629430 [["ident", "user-QJaGYfIq8zV4"], ["updated_at", "2014-11-22 15:06:03.583862"]]
|
6762
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6763
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-WSUuUQTfwsrM' LIMIT 1
|
6764
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6765
|
+
[1m[35mSQL (1.6ms)[0m UPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 298486374 [["ident", "user-WSUuUQTfwsrM"], ["updated_at", "2014-11-22 15:06:03.587252"]]
|
6766
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6767
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-UW5H6ZrKlDe6' LIMIT 1
|
6768
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6769
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 980190962 [["ident", "user-UW5H6ZrKlDe6"], ["updated_at", "2014-11-22 15:06:03.591599"]]
|
6770
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6771
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE "users"."ident" IS NULL
|
6772
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
6773
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6774
|
+
----------------------------
|
6775
|
+
UserTest: test_new_public_id
|
6776
|
+
----------------------------
|
6777
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-7eVHgb1z8Md0' LIMIT 1[0m
|
6778
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6779
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
6780
|
+
------------------------------------------
|
6781
|
+
UserTest: test_to_param_matches_identifier
|
6782
|
+
------------------------------------------
|
6783
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-LSakXIQW85vi' LIMIT 1
|
6784
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6785
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6786
|
+
-------------------------------
|
6787
|
+
UserTest: test_use_group-by_sql
|
6788
|
+
-------------------------------
|
6789
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT name, count(name) as count FROM "users" GROUP BY name[0m
|
6790
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
6791
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-fLzKTihj9bCh' LIMIT 1[0m
|
6792
|
+
[1m[35mUser Exists (0.6ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-B28gtrTJ4G9s' LIMIT 1
|
6793
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-FhtjBF94GMoT' LIMIT 1[0m
|
6794
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
6795
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-Tmv9stEj14I5' LIMIT 1[0m
|
6796
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-sJ0HIcgnrgpF' LIMIT 1
|
6797
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-O8AlZ0znNhZu' LIMIT 1[0m
|
6798
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6799
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6800
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6801
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "users"[0m
|
6802
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Sammy', NULL, '2014-11-22 15:06:57', '2014-11-22 15:06:57', 980190962)
|
6803
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Joe', NULL, '2014-11-22 15:06:57', '2014-11-22 15:06:57', 298486374)[0m
|
6804
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Susan', NULL, '2014-11-22 15:06:57', '2014-11-22 15:06:57', 113629430)
|
6805
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
6806
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6807
|
+
----------------------------------------
|
6808
|
+
AdminTest: test_identifier_doesnt_change
|
6809
|
+
----------------------------------------
|
6810
|
+
[1m[36mAdmin Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-e5IDeb4mzwEw' LIMIT 1[0m
|
6811
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6812
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "ident", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-22 15:06:57.826180"], ["ident", "user-e5IDeb4mzwEw"], ["updated_at", "2014-11-22 15:06:57.826180"]]
|
6813
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6814
|
+
[1m[36mAdmin Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
6815
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6816
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6817
|
+
[1m[35mAdmin Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
6818
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
6819
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6820
|
+
--------------------------------------------------
|
6821
|
+
AdminTest: test_identifier_initializes_from_parent
|
6822
|
+
--------------------------------------------------
|
6823
|
+
[1m[36mAdmin Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-UCkjDckA1T2j' LIMIT 1[0m
|
6824
|
+
[1m[35mAdmin Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-OpQJoQcmQCZC' LIMIT 1
|
6825
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6826
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6827
|
+
--------------------------------------------------
|
6828
|
+
AdminTest: test_inherited_class_has_public_id_attr
|
6829
|
+
--------------------------------------------------
|
6830
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6831
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6832
|
+
-------------------------------------------
|
6833
|
+
HasPublicId::UtilTest: test_char_set.length
|
6834
|
+
-------------------------------------------
|
6835
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6836
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6837
|
+
--------------------------------------------------
|
6838
|
+
HasPublicId::UtilTest: test_generate_random_suffix
|
6839
|
+
--------------------------------------------------
|
6840
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6841
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6842
|
+
----------------------------------------------------------
|
6843
|
+
HasPublicId::UtilTest: test_generate_random_suffix(length)
|
6844
|
+
----------------------------------------------------------
|
6845
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6846
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6847
|
+
------------------------------------------------------------
|
6848
|
+
HasPublicId::UtilTest: test_new_public_id(with_blank_prefix)
|
6849
|
+
------------------------------------------------------------
|
6850
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6851
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6852
|
+
------------------------------------------------------------
|
6853
|
+
HasPublicId::UtilTest: test_new_public_id(with_false_prefix)
|
6854
|
+
------------------------------------------------------------
|
6855
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6856
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6857
|
+
---------------------------------------------------------
|
6858
|
+
HasPublicId::UtilTest: test_new_public_id(with_join_with)
|
6859
|
+
---------------------------------------------------------
|
6860
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6861
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6862
|
+
----------------------------------------------------------
|
6863
|
+
HasPublicId::UtilTest: test_new_public_id(with_nil_prefix)
|
6864
|
+
----------------------------------------------------------
|
6865
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6866
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6867
|
+
------------------------------------------------------
|
6868
|
+
HasPublicId::UtilTest: test_new_public_id(with_prefix)
|
6869
|
+
------------------------------------------------------
|
6870
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6871
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6872
|
+
---------------------------
|
6873
|
+
HasPublicIdTest: test_Mixin
|
6874
|
+
---------------------------
|
6875
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6876
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6877
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
6878
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Sammy', NULL, '2014-11-22 15:06:58', '2014-11-22 15:06:58', 980190962)
|
6879
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Joe', NULL, '2014-11-22 15:06:58', '2014-11-22 15:06:58', 298486374)[0m
|
6880
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Susan', NULL, '2014-11-22 15:06:58', '2014-11-22 15:06:58', 113629430)
|
6881
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
6882
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6883
|
+
--------------------------------
|
6884
|
+
UserTest: test_find_by_public_id
|
6885
|
+
--------------------------------
|
6886
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-OopbRfjolVbZ' LIMIT 1[0m
|
6887
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6888
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "ident", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-22 15:06:58.045623"], ["ident", "user-OopbRfjolVbZ"], ["name", "joey"], ["updated_at", "2014-11-22 15:06:58.045623"]]
|
6889
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6890
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" = 'user-OopbRfjolVbZ' ORDER BY "users"."id" ASC LIMIT 1[0m
|
6891
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" = 'bad_key' ORDER BY "users"."id" ASC LIMIT 1
|
6892
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
6893
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6894
|
+
---------------------------------
|
6895
|
+
UserTest: test_find_by_public_id!
|
6896
|
+
---------------------------------
|
6897
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-rvqZ9MAdX7zQ' LIMIT 1[0m
|
6898
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6899
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "ident", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-22 15:06:58.050994"], ["ident", "user-rvqZ9MAdX7zQ"], ["name", "joey"], ["updated_at", "2014-11-22 15:06:58.050994"]]
|
6900
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
6901
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" = 'user-rvqZ9MAdX7zQ' ORDER BY "users"."id" ASC LIMIT 1[0m
|
6902
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" = 'bad_key' ORDER BY "users"."id" ASC LIMIT 1
|
6903
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
6904
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6905
|
+
---------------------------------------
|
6906
|
+
UserTest: test_identifier_doesnt_change
|
6907
|
+
---------------------------------------
|
6908
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-4n2XoK9gLiWU' LIMIT 1[0m
|
6909
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
6910
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "ident", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-22 15:06:58.056937"], ["ident", "user-4n2XoK9gLiWU"], ["updated_at", "2014-11-22 15:06:58.056937"]]
|
6911
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
6912
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
6913
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
6914
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6915
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
6916
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
6917
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6918
|
+
-------------------------------------
|
6919
|
+
UserTest: test_identifier_initializes
|
6920
|
+
-------------------------------------
|
6921
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-uokE7trBfncT' LIMIT 1[0m
|
6922
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-ignZcmdTdXtR' LIMIT 1
|
6923
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6924
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6925
|
+
-------------------------------------
|
6926
|
+
UserTest: test_initialize_public_ids!
|
6927
|
+
-------------------------------------
|
6928
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE "users"."ident" IS NULL[0m
|
6929
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" IS NULL ORDER BY "users"."id" ASC LIMIT 1000
|
6930
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-QquiO4zPTsUD' LIMIT 1[0m
|
6931
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-jPim6UUwCXGf' LIMIT 1
|
6932
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-0PErvXej34Tj' LIMIT 1[0m
|
6933
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-55slCzcTQeJ8' LIMIT 1
|
6934
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6935
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 113629430 [["ident", "user-55slCzcTQeJ8"], ["updated_at", "2014-11-22 15:06:58.072608"]]
|
6936
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6937
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-qB40Tq0tvw8s' LIMIT 1
|
6938
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
6939
|
+
[1m[35mSQL (1.2ms)[0m UPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 298486374 [["ident", "user-qB40Tq0tvw8s"], ["updated_at", "2014-11-22 15:06:58.076905"]]
|
6940
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6941
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-Qqs0qyesPs2X' LIMIT 1
|
6942
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
6943
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 980190962 [["ident", "user-Qqs0qyesPs2X"], ["updated_at", "2014-11-22 15:06:58.079996"]]
|
6944
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
6945
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE "users"."ident" IS NULL
|
6946
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
6947
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6948
|
+
----------------------------
|
6949
|
+
UserTest: test_new_public_id
|
6950
|
+
----------------------------
|
6951
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-zRxHQiEzoCqD' LIMIT 1[0m
|
6952
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6953
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
6954
|
+
------------------------------------------
|
6955
|
+
UserTest: test_to_param_matches_identifier
|
6956
|
+
------------------------------------------
|
6957
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-eOiNvKLf4hAK' LIMIT 1
|
6958
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6959
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6960
|
+
-------------------------------
|
6961
|
+
UserTest: test_use_group-by_sql
|
6962
|
+
-------------------------------
|
6963
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT name, count(name) as count FROM "users" GROUP BY name[0m
|
6964
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users"
|
6965
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-Z8rjVS6wfSpM' LIMIT 1[0m
|
6966
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-ODA3EMDuuuGk' LIMIT 1
|
6967
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-gxc1EDulylZw' LIMIT 1[0m
|
6968
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
6969
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-D5z9vgoYpB9u' LIMIT 1[0m
|
6970
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-0rgE02ltVBxE' LIMIT 1
|
6971
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-tFcXZVMCpRjp' LIMIT 1[0m
|
6972
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
6973
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
6974
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6975
|
+
---------------------------
|
6976
|
+
HasPublicIdTest: test_Mixin
|
6977
|
+
---------------------------
|
6978
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6979
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6980
|
+
-------------------------------------------
|
6981
|
+
HasPublicId::UtilTest: test_char_set.length
|
6982
|
+
-------------------------------------------
|
6983
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
6984
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6985
|
+
--------------------------------------------------
|
6986
|
+
HasPublicId::UtilTest: test_generate_random_suffix
|
6987
|
+
--------------------------------------------------
|
6988
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6989
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6990
|
+
----------------------------------------------------------
|
6991
|
+
HasPublicId::UtilTest: test_generate_random_suffix(length)
|
6992
|
+
----------------------------------------------------------
|
6993
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6994
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6995
|
+
------------------------------------------------------------
|
6996
|
+
HasPublicId::UtilTest: test_new_public_id(with_blank_prefix)
|
6997
|
+
------------------------------------------------------------
|
6998
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
6999
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7000
|
+
------------------------------------------------------------
|
7001
|
+
HasPublicId::UtilTest: test_new_public_id(with_false_prefix)
|
7002
|
+
------------------------------------------------------------
|
7003
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7004
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7005
|
+
---------------------------------------------------------
|
7006
|
+
HasPublicId::UtilTest: test_new_public_id(with_join_with)
|
7007
|
+
---------------------------------------------------------
|
7008
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7009
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7010
|
+
----------------------------------------------------------
|
7011
|
+
HasPublicId::UtilTest: test_new_public_id(with_nil_prefix)
|
7012
|
+
----------------------------------------------------------
|
7013
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7014
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7015
|
+
------------------------------------------------------
|
7016
|
+
HasPublicId::UtilTest: test_new_public_id(with_prefix)
|
7017
|
+
------------------------------------------------------
|
7018
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7019
|
+
[1m[35m (0.2ms)[0m begin transaction
|
7020
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "users"[0m
|
7021
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Sammy', NULL, '2014-11-22 15:07:18', '2014-11-22 15:07:18', 980190962)
|
7022
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Joe', NULL, '2014-11-22 15:07:18', '2014-11-22 15:07:18', 298486374)[0m
|
7023
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Susan', NULL, '2014-11-22 15:07:18', '2014-11-22 15:07:18', 113629430)
|
7024
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
7025
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7026
|
+
----------------------------------------
|
7027
|
+
AdminTest: test_identifier_doesnt_change
|
7028
|
+
----------------------------------------
|
7029
|
+
[1m[36mAdmin Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-2Kc37uMfLo0C' LIMIT 1[0m
|
7030
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7031
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "ident", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-22 15:07:18.210078"], ["ident", "user-2Kc37uMfLo0C"], ["updated_at", "2014-11-22 15:07:18.210078"]]
|
7032
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7033
|
+
[1m[36mAdmin Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
7034
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7035
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7036
|
+
[1m[35mAdmin Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
7037
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7038
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7039
|
+
--------------------------------------------------
|
7040
|
+
AdminTest: test_identifier_initializes_from_parent
|
7041
|
+
--------------------------------------------------
|
7042
|
+
[1m[36mAdmin Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-sjtWg1bsLuoV' LIMIT 1[0m
|
7043
|
+
[1m[35mAdmin Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-5W0kNn0j83uG' LIMIT 1
|
7044
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7045
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7046
|
+
--------------------------------------------------
|
7047
|
+
AdminTest: test_inherited_class_has_public_id_attr
|
7048
|
+
--------------------------------------------------
|
7049
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
7050
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7051
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "users"[0m
|
7052
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Sammy', NULL, '2014-11-22 15:07:18', '2014-11-22 15:07:18', 980190962)
|
7053
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Joe', NULL, '2014-11-22 15:07:18', '2014-11-22 15:07:18', 298486374)[0m
|
7054
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Susan', NULL, '2014-11-22 15:07:18', '2014-11-22 15:07:18', 113629430)
|
7055
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
7056
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7057
|
+
--------------------------------
|
7058
|
+
UserTest: test_find_by_public_id
|
7059
|
+
--------------------------------
|
7060
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-XBDHOLVp1gxG' LIMIT 1[0m
|
7061
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7062
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "ident", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-22 15:07:18.228854"], ["ident", "user-XBDHOLVp1gxG"], ["name", "joey"], ["updated_at", "2014-11-22 15:07:18.228854"]]
|
7063
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7064
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" = 'user-XBDHOLVp1gxG' ORDER BY "users"."id" ASC LIMIT 1[0m
|
7065
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" = 'bad_key' ORDER BY "users"."id" ASC LIMIT 1
|
7066
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7067
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7068
|
+
---------------------------------
|
7069
|
+
UserTest: test_find_by_public_id!
|
7070
|
+
---------------------------------
|
7071
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-qSZvT8U94i0Q' LIMIT 1[0m
|
7072
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7073
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "ident", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", "2014-11-22 15:07:18.236201"], ["ident", "user-qSZvT8U94i0Q"], ["name", "joey"], ["updated_at", "2014-11-22 15:07:18.236201"]]
|
7074
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7075
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" = 'user-qSZvT8U94i0Q' ORDER BY "users"."id" ASC LIMIT 1[0m
|
7076
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" = 'bad_key' ORDER BY "users"."id" ASC LIMIT 1
|
7077
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
7078
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7079
|
+
---------------------------------------
|
7080
|
+
UserTest: test_identifier_doesnt_change
|
7081
|
+
---------------------------------------
|
7082
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-54nQm7yWR1rc' LIMIT 1[0m
|
7083
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
7084
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "ident", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-22 15:07:18.242670"], ["ident", "user-54nQm7yWR1rc"], ["updated_at", "2014-11-22 15:07:18.242670"]]
|
7085
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
7086
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
7087
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
7088
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7089
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
7090
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
7091
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7092
|
+
-------------------------------------
|
7093
|
+
UserTest: test_identifier_initializes
|
7094
|
+
-------------------------------------
|
7095
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-kU0GCspG3CHe' LIMIT 1[0m
|
7096
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-rc9uKsb9JuZ4' LIMIT 1
|
7097
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7098
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7099
|
+
-------------------------------------
|
7100
|
+
UserTest: test_initialize_public_ids!
|
7101
|
+
-------------------------------------
|
7102
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE "users"."ident" IS NULL[0m
|
7103
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" IS NULL ORDER BY "users"."id" ASC LIMIT 1000
|
7104
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-v11QrqISKrKR' LIMIT 1[0m
|
7105
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-vIh2ldaQp77a' LIMIT 1
|
7106
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-EAMZx37JPiVv' LIMIT 1[0m
|
7107
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-3HiV6oMuVXR8' LIMIT 1
|
7108
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7109
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 113629430 [["ident", "user-3HiV6oMuVXR8"], ["updated_at", "2014-11-22 15:07:18.256886"]]
|
7110
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7111
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-tqI8KJEwH1Aj' LIMIT 1
|
7112
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
7113
|
+
[1m[35mSQL (1.7ms)[0m UPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 298486374 [["ident", "user-tqI8KJEwH1Aj"], ["updated_at", "2014-11-22 15:07:18.261503"]]
|
7114
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7115
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-6oeIPQgKsTBf' LIMIT 1
|
7116
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
7117
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 980190962 [["ident", "user-6oeIPQgKsTBf"], ["updated_at", "2014-11-22 15:07:18.266249"]]
|
7118
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
7119
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE "users"."ident" IS NULL
|
7120
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
7121
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7122
|
+
----------------------------
|
7123
|
+
UserTest: test_new_public_id
|
7124
|
+
----------------------------
|
7125
|
+
[1m[36mUser Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-nKOyJEqH03tF' LIMIT 1[0m
|
7126
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7127
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7128
|
+
------------------------------------------
|
7129
|
+
UserTest: test_to_param_matches_identifier
|
7130
|
+
------------------------------------------
|
7131
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-VYC7kOIiF448' LIMIT 1
|
7132
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
7133
|
+
[1m[35m (0.1ms)[0m begin transaction
|
7134
|
+
-------------------------------
|
7135
|
+
UserTest: test_use_group-by_sql
|
7136
|
+
-------------------------------
|
7137
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT name, count(name) as count FROM "users" GROUP BY name[0m
|
7138
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-icEDNPUJCrWM' LIMIT 1
|
7139
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-EALGWjrdlHmH' LIMIT 1[0m
|
7140
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-Hz1tTYaXfUwA' LIMIT 1
|
7141
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
7142
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-zUWtNexFseK3' LIMIT 1
|
7143
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-uH3NpvRyRy13' LIMIT 1[0m
|
7144
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-oMQEDPvZGtdr' LIMIT 1
|
7145
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
7146
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-I6F4ZnZCRfGv' LIMIT 1
|
7147
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-OBqHyC44GUiE' LIMIT 1[0m
|
7148
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-HOYx0L8WNR4H' LIMIT 1
|
7149
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|