ix 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9051149acba6bf1a68d62e3e186ba90b57a2c517
4
- data.tar.gz: 6e0227919517096ec6b88b871e26fde935267186
3
+ metadata.gz: 25ff4bbf09f8ae54bf43c92cb8b86acef7a41ab4
4
+ data.tar.gz: 53c4238e7f40592fe69071bd14a3b0f58717f51f
5
5
  SHA512:
6
- metadata.gz: 6fca7a7e63487fae2148d0fbfce009bbf351cd6cbc5fb6f47bcea668ae6ea1799f64951c2ee2cc17d02dc84b0f4209b0c20f0da4e77c159fc02a310f3d3df6fa
7
- data.tar.gz: 51c4e45cc341a929c1ef7a86aee086760a52e7ef32ff6197577ed23e0bc86e3e40ac9b05102d41308297b80553edcf8e21f3d29dc5a010e54964d26ae52d066c
6
+ metadata.gz: 3b7447e2f97e92cf9795c8895dfc9c7abb26e1203acadd74436c500be09561171d5c3fb1602ec766e411430eb4a9e90097449623f455c1061e75170b75e79cfe
7
+ data.tar.gz: 180c4e048a4be4604e898e4954ea88007cff6de771e7969789e1f5b32511dd3b52bf05bd42b37c00c0d2b6485f27dc7f8a64a9ffc0d1f84b99d3d33aa16ab178
data/lib/ix/has_ix.rb CHANGED
@@ -4,10 +4,11 @@ module Ix
4
4
  extend ActiveSupport::Concern
5
5
 
6
6
  included do
7
- before_create :set_ix
7
+ before_save :set_ix_if_empty
8
8
  end
9
9
 
10
10
  module ClassMethods
11
+
11
12
  def has_ix(options = {})
12
13
  cattr_accessor :ix_length
13
14
  self.ix_length = (options[:length] / 2) || 4
@@ -15,24 +16,48 @@ module Ix
15
16
  include Ix::HasIx::LocalInstanceMethods
16
17
  end
17
18
 
19
+ def has_ix?
20
+ self.column_names.include? "ix"
21
+ end
22
+
18
23
  def find_ix(ix)
19
24
  self.find_by ix: ix
20
25
  end
26
+
27
+ def fill_blank_ixs
28
+ self.where(ix: nil).each do |record|
29
+ record.save
30
+ end
31
+ end
32
+
21
33
  end
22
34
 
23
35
 
24
36
  module LocalInstanceMethods
25
37
 
38
+ def has_ix?
39
+ self.class.has_ix?
40
+ end
41
+
42
+ def ix?
43
+ self.has_ix? && self.ix ? self.ix : false
44
+ end
45
+
26
46
  private
27
47
 
28
48
  def set_ix
29
- if self.class.column_names.include? "ix"
49
+ if self.has_ix?
30
50
  begin
31
51
  self.ix = SecureRandom.hex(self.ix_length)
32
52
  end while self.class.exists?(ix: self.ix)
33
53
  end
34
54
  end
55
+
56
+ def set_ix_if_empty
57
+ set_ix if self.has_ix? && !ix?
58
+ end
35
59
  end
60
+
36
61
  end
37
62
  end
38
63
 
data/lib/ix/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ix
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -550,5 +550,768 @@ HasIxTest: test_set_ix_should_generate_hex
550
550
   (0.0ms) begin transaction
551
551
  ------------------
552
552
  IxTest: test_truth
553
+ ------------------
554
+  (0.0ms) rollback transaction
555
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
556
+  (0.1ms) begin transaction
557
+ ------------------
558
+ IxTest: test_truth
559
+ ------------------
560
+  (0.1ms) rollback transaction
561
+  (0.1ms) begin transaction
562
+ ------------------------------------------------------------
563
+ HasIxTest: test_fill_blank_ixs_should_result_in_no_blank_ixs
564
+ ------------------------------------------------------------
565
+  (0.1ms) SAVEPOINT active_record_1
566
+ User Exists (13.5ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'f934bd4c' LIMIT 1
567
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 12:54:37.675798"], ["ix", "f934bd4c"], ["updated_at", "2014-06-04 12:54:37.675798"]]
568
+  (0.1ms) RELEASE SAVEPOINT active_record_1
569
+  (0.0ms) SAVEPOINT active_record_1
570
+ SQL (0.4ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["ix", nil], ["updated_at", "2014-06-04 12:54:37.712551"]]
571
+  (0.1ms) RELEASE SAVEPOINT active_record_1
572
+  (0.0ms) SAVEPOINT active_record_1
573
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '7db4c7c3' LIMIT 1
574
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 12:54:37.714573"], ["ix", "7db4c7c3"], ["updated_at", "2014-06-04 12:54:37.714573"]]
575
+  (0.0ms) RELEASE SAVEPOINT active_record_1
576
+  (0.0ms) SAVEPOINT active_record_1
577
+ SQL (0.1ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 2 [["ix", nil], ["updated_at", "2014-06-04 12:54:37.716323"]]
578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
579
+  (0.0ms) SAVEPOINT active_record_1
580
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '676227d3' LIMIT 1
581
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 12:54:37.717088"], ["ix", "676227d3"], ["updated_at", "2014-06-04 12:54:37.717088"]]
582
+  (0.0ms) RELEASE SAVEPOINT active_record_1
583
+  (0.0ms) SAVEPOINT active_record_1
584
+ SQL (0.1ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 3 [["ix", nil], ["updated_at", "2014-06-04 12:54:37.718299"]]
585
+  (0.0ms) RELEASE SAVEPOINT active_record_1
586
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" IS NULL
587
+  (0.6ms) rollback transaction
588
+  (0.1ms) begin transaction
589
+ --------------------------------------------
590
+ HasIxTest: test_find_ix_should_recall_object
591
+ --------------------------------------------
592
+  (0.0ms) SAVEPOINT active_record_1
593
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '794c3823' LIMIT 1
594
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 12:54:37.720874"], ["ix", "794c3823"], ["updated_at", "2014-06-04 12:54:37.720874"]]
595
+  (0.0ms) RELEASE SAVEPOINT active_record_1
596
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" = '794c3823' LIMIT 1
597
+  (1.0ms) rollback transaction
598
+  (0.1ms) begin transaction
599
+ ------------------------------------------
600
+ HasIxTest: test_set_ix_should_generate_hex
601
+ ------------------------------------------
602
+  (0.1ms) SAVEPOINT active_record_1
603
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '3d555c22' LIMIT 1
604
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 12:54:37.724949"], ["ix", "3d555c22"], ["updated_at", "2014-06-04 12:54:37.724949"]]
605
+  (0.0ms) RELEASE SAVEPOINT active_record_1
606
+  (1.0ms) rollback transaction
607
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
608
+  (0.1ms) begin transaction
609
+ ------------------
610
+ IxTest: test_truth
611
+ ------------------
612
+  (0.0ms) rollback transaction
613
+  (0.0ms) begin transaction
614
+ ------------------------------------------------------------
615
+ HasIxTest: test_fill_blank_ixs_should_result_in_no_blank_ixs
616
+ ------------------------------------------------------------
617
+  (0.0ms) SAVEPOINT active_record_1
618
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
619
+  (0.0ms) rollback transaction
620
+  (0.0ms) begin transaction
621
+ --------------------------------------------
622
+ HasIxTest: test_find_ix_should_recall_object
623
+ --------------------------------------------
624
+  (0.0ms) SAVEPOINT active_record_1
625
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
626
+  (0.0ms) rollback transaction
627
+  (0.0ms) begin transaction
628
+ ------------------------------------------
629
+ HasIxTest: test_set_ix_should_generate_hex
630
+ ------------------------------------------
631
+  (0.0ms) SAVEPOINT active_record_1
632
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
633
+  (0.0ms) rollback transaction
634
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
635
+  (0.1ms) begin transaction
636
+ ------------------
637
+ IxTest: test_truth
638
+ ------------------
639
+  (0.0ms) rollback transaction
640
+  (0.0ms) begin transaction
641
+ ------------------------------------------------------------
642
+ HasIxTest: test_fill_blank_ixs_should_result_in_no_blank_ixs
643
+ ------------------------------------------------------------
644
+  (0.0ms) SAVEPOINT active_record_1
645
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
646
+  (0.1ms) rollback transaction
647
+  (0.0ms) begin transaction
648
+ --------------------------------------------
649
+ HasIxTest: test_find_ix_should_recall_object
650
+ --------------------------------------------
651
+  (0.0ms) SAVEPOINT active_record_1
652
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
653
+  (0.0ms) rollback transaction
654
+  (0.0ms) begin transaction
655
+ ------------------------------------------
656
+ HasIxTest: test_set_ix_should_generate_hex
657
+ ------------------------------------------
658
+  (0.0ms) SAVEPOINT active_record_1
659
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
660
+  (0.0ms) rollback transaction
661
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
662
+  (0.1ms) begin transaction
663
+ ------------------------------------------------------------
664
+ HasIxTest: test_fill_blank_ixs_should_result_in_no_blank_ixs
665
+ ------------------------------------------------------------
666
+  (0.0ms) SAVEPOINT active_record_1
667
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
668
+  (0.0ms) rollback transaction
669
+  (0.1ms) begin transaction
670
+ --------------------------------------------
671
+ HasIxTest: test_find_ix_should_recall_object
672
+ --------------------------------------------
673
+  (0.0ms) SAVEPOINT active_record_1
674
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
675
+  (0.0ms) rollback transaction
676
+  (0.1ms) begin transaction
677
+ ------------------------------------------
678
+ HasIxTest: test_set_ix_should_generate_hex
679
+ ------------------------------------------
680
+  (0.0ms) SAVEPOINT active_record_1
681
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
682
+  (0.0ms) rollback transaction
683
+  (0.0ms) begin transaction
684
+ ------------------
685
+ IxTest: test_truth
686
+ ------------------
687
+  (0.0ms) rollback transaction
688
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
689
+  (0.1ms) begin transaction
690
+ ------------------
691
+ IxTest: test_truth
692
+ ------------------
693
+  (0.0ms) rollback transaction
694
+  (0.0ms) begin transaction
695
+ ------------------------------------------------------------
696
+ HasIxTest: test_fill_blank_ixs_should_result_in_no_blank_ixs
697
+ ------------------------------------------------------------
698
+  (0.0ms) SAVEPOINT active_record_1
699
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '42ff89bc' LIMIT 1
700
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'cdfa3f44' LIMIT 1
701
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-06-04 13:06:37.317232"], ["updated_at", "2014-06-04 13:06:37.317232"]]
702
+  (0.1ms) RELEASE SAVEPOINT active_record_1
703
+  (0.0ms) SAVEPOINT active_record_1
704
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'f532d3e5' LIMIT 1
705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
706
+  (0.0ms) SAVEPOINT active_record_1
707
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'c23093ec' LIMIT 1
708
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '7aa077ee' LIMIT 1
709
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-06-04 13:06:37.324765"], ["updated_at", "2014-06-04 13:06:37.324765"]]
710
+  (0.0ms) RELEASE SAVEPOINT active_record_1
711
+  (0.0ms) SAVEPOINT active_record_1
712
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'e691857e' LIMIT 1
713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
714
+  (0.0ms) SAVEPOINT active_record_1
715
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '4fb67f50' LIMIT 1
716
+ User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '69a8986c' LIMIT 1
717
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-06-04 13:06:37.327625"], ["updated_at", "2014-06-04 13:06:37.327625"]]
718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
719
+  (0.0ms) SAVEPOINT active_record_1
720
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'b0c19ce2' LIMIT 1
721
+  (0.0ms) RELEASE SAVEPOINT active_record_1
722
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" IS NULL
723
+  (0.0ms) SAVEPOINT active_record_1
724
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '10c2d052' LIMIT 1
725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
726
+  (0.0ms) SAVEPOINT active_record_1
727
+ User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '6e564ca2' LIMIT 1
728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
729
+  (0.0ms) SAVEPOINT active_record_1
730
+ User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'abe04e02' LIMIT 1
731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
732
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE "users"."ix" IS NULL
733
+  (0.8ms) rollback transaction
734
+  (0.1ms) begin transaction
735
+ --------------------------------------------
736
+ HasIxTest: test_find_ix_should_recall_object
737
+ --------------------------------------------
738
+  (0.0ms) SAVEPOINT active_record_1
739
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'a30dbdc9' LIMIT 1
740
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '46daffe7' LIMIT 1
741
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-06-04 13:06:37.398660"], ["updated_at", "2014-06-04 13:06:37.398660"]]
742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
743
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" IS NULL LIMIT 1
744
+  (0.5ms) rollback transaction
745
+  (0.1ms) begin transaction
746
+ ------------------------------------------
747
+ HasIxTest: test_set_ix_should_generate_hex
748
+ ------------------------------------------
749
+  (0.0ms) SAVEPOINT active_record_1
750
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '33882073' LIMIT 1
751
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '4865a9f2' LIMIT 1
752
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-06-04 13:06:37.402514"], ["updated_at", "2014-06-04 13:06:37.402514"]]
753
+  (0.0ms) RELEASE SAVEPOINT active_record_1
754
+  (0.6ms) rollback transaction
755
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
756
+  (0.1ms) begin transaction
757
+ ------------------------------------------------------------
758
+ HasIxTest: test_fill_blank_ixs_should_result_in_no_blank_ixs
759
+ ------------------------------------------------------------
760
+  (0.0ms) SAVEPOINT active_record_1
761
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '03d9bc7a' LIMIT 1
762
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '3dfb3342' LIMIT 1
763
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-06-04 13:07:15.069697"], ["updated_at", "2014-06-04 13:07:15.069697"]]
764
+  (0.1ms) RELEASE SAVEPOINT active_record_1
765
+  (0.0ms) SAVEPOINT active_record_1
766
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '31ad46dd' LIMIT 1
767
+  (0.0ms) RELEASE SAVEPOINT active_record_1
768
+  (0.0ms) SAVEPOINT active_record_1
769
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '8295e616' LIMIT 1
770
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '670534d8' LIMIT 1
771
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-06-04 13:07:15.075296"], ["updated_at", "2014-06-04 13:07:15.075296"]]
772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
773
+  (0.0ms) SAVEPOINT active_record_1
774
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'ad3b8da9' LIMIT 1
775
+  (0.0ms) RELEASE SAVEPOINT active_record_1
776
+  (0.0ms) SAVEPOINT active_record_1
777
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '14888c1c' LIMIT 1
778
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'eae83616' LIMIT 1
779
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-06-04 13:07:15.078064"], ["updated_at", "2014-06-04 13:07:15.078064"]]
780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
781
+  (0.0ms) SAVEPOINT active_record_1
782
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '023dd751' LIMIT 1
783
+  (0.0ms) RELEASE SAVEPOINT active_record_1
784
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" IS NULL
785
+  (0.0ms) SAVEPOINT active_record_1
786
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '52cec80d' LIMIT 1
787
+  (0.0ms) RELEASE SAVEPOINT active_record_1
788
+  (0.0ms) SAVEPOINT active_record_1
789
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '25b10e92' LIMIT 1
790
+  (0.0ms) RELEASE SAVEPOINT active_record_1
791
+  (0.0ms) SAVEPOINT active_record_1
792
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '615f1425' LIMIT 1
793
+  (0.0ms) RELEASE SAVEPOINT active_record_1
794
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE "users"."ix" IS NULL
795
+  (1.6ms) rollback transaction
796
+  (0.2ms) begin transaction
797
+ --------------------------------------------
798
+ HasIxTest: test_find_ix_should_recall_object
799
+ --------------------------------------------
800
+  (0.1ms) SAVEPOINT active_record_1
801
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '16bc3faa' LIMIT 1
802
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'd1e121c3' LIMIT 1
803
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-06-04 13:07:15.095785"], ["updated_at", "2014-06-04 13:07:15.095785"]]
804
+  (0.0ms) RELEASE SAVEPOINT active_record_1
805
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" IS NULL LIMIT 1
806
+  (0.4ms) rollback transaction
807
+  (0.1ms) begin transaction
808
+ ------------------------------------------
809
+ HasIxTest: test_set_ix_should_generate_hex
810
+ ------------------------------------------
811
+  (0.1ms) SAVEPOINT active_record_1
812
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '547b2b0c' LIMIT 1
813
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '6766a367' LIMIT 1
814
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2014-06-04 13:07:15.100573"], ["updated_at", "2014-06-04 13:07:15.100573"]]
815
+  (0.0ms) RELEASE SAVEPOINT active_record_1
816
+  (0.7ms) rollback transaction
817
+  (0.1ms) begin transaction
818
+ ------------------
819
+ IxTest: test_truth
820
+ ------------------
821
+  (0.0ms) rollback transaction
822
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
823
+  (0.1ms) begin transaction
824
+ ------------------
825
+ IxTest: test_truth
826
+ ------------------
827
+  (0.0ms) rollback transaction
828
+  (0.0ms) begin transaction
829
+ ------------------------------------------------------------
830
+ HasIxTest: test_fill_blank_ixs_should_result_in_no_blank_ixs
831
+ ------------------------------------------------------------
832
+  (0.0ms) SAVEPOINT active_record_1
833
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '7152d521' LIMIT 1
834
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'aa746242' LIMIT 1
835
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:07:33.261071"], ["ix", "aa746242"], ["updated_at", "2014-06-04 13:07:33.261071"]]
836
+  (0.0ms) RELEASE SAVEPOINT active_record_1
837
+  (0.0ms) SAVEPOINT active_record_1
838
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '07bea6df' LIMIT 1
839
+ SQL (0.5ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["ix", "07bea6df"], ["updated_at", "2014-06-04 13:07:33.265602"]]
840
+  (0.0ms) RELEASE SAVEPOINT active_record_1
841
+  (0.0ms) SAVEPOINT active_record_1
842
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'e43a177d' LIMIT 1
843
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '3a23cfd9' LIMIT 1
844
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:07:33.268027"], ["ix", "3a23cfd9"], ["updated_at", "2014-06-04 13:07:33.268027"]]
845
+  (0.0ms) RELEASE SAVEPOINT active_record_1
846
+  (0.0ms) SAVEPOINT active_record_1
847
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'fd4b235b' LIMIT 1
848
+ SQL (0.1ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 2 [["ix", "fd4b235b"], ["updated_at", "2014-06-04 13:07:33.269658"]]
849
+  (0.0ms) RELEASE SAVEPOINT active_record_1
850
+  (0.0ms) SAVEPOINT active_record_1
851
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'ea3cb0a0' LIMIT 1
852
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '2cb8905f' LIMIT 1
853
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:07:33.270786"], ["ix", "2cb8905f"], ["updated_at", "2014-06-04 13:07:33.270786"]]
854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
855
+  (0.0ms) SAVEPOINT active_record_1
856
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'e63596b6' LIMIT 1
857
+ SQL (0.1ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 3 [["ix", "e63596b6"], ["updated_at", "2014-06-04 13:07:33.272209"]]
858
+  (0.0ms) RELEASE SAVEPOINT active_record_1
859
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" IS NULL
860
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE "users"."ix" IS NULL
861
+  (1.5ms) rollback transaction
862
+  (0.1ms) begin transaction
863
+ --------------------------------------------
864
+ HasIxTest: test_find_ix_should_recall_object
865
+ --------------------------------------------
866
+  (0.1ms) SAVEPOINT active_record_1
867
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '3a3cae7b' LIMIT 1
868
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'ca73b306' LIMIT 1
869
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:07:33.277426"], ["ix", "ca73b306"], ["updated_at", "2014-06-04 13:07:33.277426"]]
870
+  (0.1ms) RELEASE SAVEPOINT active_record_1
871
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" = 'ca73b306' LIMIT 1
872
+  (0.5ms) rollback transaction
873
+  (0.1ms) begin transaction
874
+ ------------------------------------------
875
+ HasIxTest: test_set_ix_should_generate_hex
876
+ ------------------------------------------
877
+  (0.0ms) SAVEPOINT active_record_1
878
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'a89c2d50' LIMIT 1
879
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '1d36d5f1' LIMIT 1
880
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:07:33.282414"], ["ix", "1d36d5f1"], ["updated_at", "2014-06-04 13:07:33.282414"]]
881
+  (0.0ms) RELEASE SAVEPOINT active_record_1
882
+  (1.6ms) rollback transaction
883
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
884
+  (0.1ms) begin transaction
885
+ ------------------
886
+ IxTest: test_truth
887
+ ------------------
888
+  (0.1ms) rollback transaction
889
+  (0.1ms) begin transaction
890
+ ------------------------------------------------------------
891
+ HasIxTest: test_fill_blank_ixs_should_result_in_no_blank_ixs
892
+ ------------------------------------------------------------
893
+  (0.1ms) SAVEPOINT active_record_1
894
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '1635eb42' LIMIT 1
895
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:11:53.442307"], ["ix", "1635eb42"], ["updated_at", "2014-06-04 13:11:53.442307"]]
896
+  (0.1ms) RELEASE SAVEPOINT active_record_1
897
+  (0.0ms) SAVEPOINT active_record_1
898
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '4955fb1c' LIMIT 1
899
+ SQL (0.4ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["ix", "4955fb1c"], ["updated_at", "2014-06-04 13:11:53.447785"]]
900
+  (0.1ms) RELEASE SAVEPOINT active_record_1
901
+  (0.0ms) SAVEPOINT active_record_1
902
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '75c5af03' LIMIT 1
903
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:11:53.450285"], ["ix", "75c5af03"], ["updated_at", "2014-06-04 13:11:53.450285"]]
904
+  (0.0ms) RELEASE SAVEPOINT active_record_1
905
+  (0.0ms) SAVEPOINT active_record_1
906
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'e6004233' LIMIT 1
907
+ SQL (0.1ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 2 [["ix", "e6004233"], ["updated_at", "2014-06-04 13:11:53.451587"]]
908
+  (0.0ms) RELEASE SAVEPOINT active_record_1
909
+  (0.0ms) SAVEPOINT active_record_1
910
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '76d3a350' LIMIT 1
911
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:11:53.452874"], ["ix", "76d3a350"], ["updated_at", "2014-06-04 13:11:53.452874"]]
912
+  (0.1ms) RELEASE SAVEPOINT active_record_1
913
+  (0.0ms) SAVEPOINT active_record_1
914
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '7ceb09af' LIMIT 1
915
+ SQL (0.1ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 3 [["ix", "7ceb09af"], ["updated_at", "2014-06-04 13:11:53.454836"]]
916
+  (0.1ms) RELEASE SAVEPOINT active_record_1
917
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" IS NULL
918
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE "users"."ix" IS NULL
919
+  (0.6ms) rollback transaction
920
+  (0.1ms) begin transaction
921
+ --------------------------------------------
922
+ HasIxTest: test_find_ix_should_recall_object
923
+ --------------------------------------------
924
+  (0.0ms) SAVEPOINT active_record_1
925
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'c1854c91' LIMIT 1
926
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:11:53.458902"], ["ix", "c1854c91"], ["updated_at", "2014-06-04 13:11:53.458902"]]
927
+  (0.0ms) RELEASE SAVEPOINT active_record_1
928
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" = 'c1854c91' LIMIT 1
929
+  (0.6ms) rollback transaction
930
+  (0.1ms) begin transaction
931
+ ------------------------------------------
932
+ HasIxTest: test_set_ix_should_generate_hex
933
+ ------------------------------------------
934
+  (0.0ms) SAVEPOINT active_record_1
935
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '2b0e48b0' LIMIT 1
936
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:11:53.462098"], ["ix", "2b0e48b0"], ["updated_at", "2014-06-04 13:11:53.462098"]]
937
+  (0.0ms) RELEASE SAVEPOINT active_record_1
938
+  (0.5ms) rollback transaction
939
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
940
+  (0.1ms) begin transaction
941
+ ------------------
942
+ IxTest: test_truth
943
+ ------------------
944
+  (0.0ms) rollback transaction
945
+  (0.0ms) begin transaction
946
+ ------------------------------------------------------------
947
+ HasIxTest: test_fill_blank_ixs_should_result_in_no_blank_ixs
948
+ ------------------------------------------------------------
949
+  (0.0ms) SAVEPOINT active_record_1
950
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'd89db856' LIMIT 1
951
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:17:07.578993"], ["ix", "d89db856"], ["updated_at", "2014-06-04 13:17:07.578993"]]
952
+  (0.0ms) RELEASE SAVEPOINT active_record_1
953
+  (0.0ms) SAVEPOINT active_record_1
954
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '5f8dad44' LIMIT 1
955
+ SQL (0.4ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["ix", "5f8dad44"], ["updated_at", "2014-06-04 13:17:07.583033"]]
956
+  (0.0ms) RELEASE SAVEPOINT active_record_1
957
+  (0.0ms) SAVEPOINT active_record_1
958
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '94d8838c' LIMIT 1
959
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:17:07.585380"], ["ix", "94d8838c"], ["updated_at", "2014-06-04 13:17:07.585380"]]
960
+  (0.0ms) RELEASE SAVEPOINT active_record_1
961
+  (0.0ms) SAVEPOINT active_record_1
962
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '12d9be64' LIMIT 1
963
+ SQL (0.1ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 2 [["ix", "12d9be64"], ["updated_at", "2014-06-04 13:17:07.586739"]]
964
+  (0.0ms) RELEASE SAVEPOINT active_record_1
965
+  (0.0ms) SAVEPOINT active_record_1
966
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'd95b460d' LIMIT 1
967
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:17:07.587823"], ["ix", "d95b460d"], ["updated_at", "2014-06-04 13:17:07.587823"]]
968
+  (0.0ms) RELEASE SAVEPOINT active_record_1
969
+  (0.0ms) SAVEPOINT active_record_1
970
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'fd33e9b8' LIMIT 1
971
+ SQL (0.1ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 3 [["ix", "fd33e9b8"], ["updated_at", "2014-06-04 13:17:07.588904"]]
972
+  (0.1ms) RELEASE SAVEPOINT active_record_1
973
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" IS NULL
974
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE "users"."ix" IS NULL
975
+  (1.4ms) rollback transaction
976
+  (0.1ms) begin transaction
977
+ --------------------------------------------
978
+ HasIxTest: test_find_ix_should_recall_object
979
+ --------------------------------------------
980
+  (0.1ms) SAVEPOINT active_record_1
981
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '8ffdba17' LIMIT 1
982
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:17:07.593903"], ["ix", "8ffdba17"], ["updated_at", "2014-06-04 13:17:07.593903"]]
983
+  (0.1ms) RELEASE SAVEPOINT active_record_1
984
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."ix" = '8ffdba17' LIMIT 1
985
+  (0.6ms) rollback transaction
986
+  (0.1ms) begin transaction
987
+ ------------------------------------------
988
+ HasIxTest: test_set_ix_should_generate_hex
989
+ ------------------------------------------
990
+  (0.0ms) SAVEPOINT active_record_1
991
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'd55be633' LIMIT 1
992
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:17:07.598234"], ["ix", "d55be633"], ["updated_at", "2014-06-04 13:17:07.598234"]]
993
+  (0.1ms) RELEASE SAVEPOINT active_record_1
994
+  (1.9ms) rollback transaction
995
+  (0.1ms) begin transaction
996
+ -----------------------------------------------
997
+ HasIxTest: test_should_be_able_to_regenerate_ix
998
+ -----------------------------------------------
999
+  (0.0ms) SAVEPOINT active_record_1
1000
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'd1784499' LIMIT 1
1001
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:17:07.602797"], ["ix", "d1784499"], ["updated_at", "2014-06-04 13:17:07.602797"]]
1002
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1003
+  (0.1ms) SAVEPOINT active_record_1
1004
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '1dd83787' LIMIT 1
1005
+ SQL (0.6ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["ix", "1dd83787"], ["updated_at", "2014-06-04 13:17:07.604574"]]
1006
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1007
+  (0.7ms) rollback transaction
1008
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1009
+  (0.1ms) begin transaction
1010
+ ------------------
1011
+ IxTest: test_truth
1012
+ ------------------
1013
+  (0.0ms) rollback transaction
1014
+  (0.0ms) begin transaction
1015
+ ------------------------------------------------------------
1016
+ HasIxTest: test_fill_blank_ixs_should_result_in_no_blank_ixs
1017
+ ------------------------------------------------------------
1018
+  (0.0ms) SAVEPOINT active_record_1
1019
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '83644265' LIMIT 1
1020
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:17:23.728374"], ["ix", "83644265"], ["updated_at", "2014-06-04 13:17:23.728374"]]
1021
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1022
+  (0.0ms) SAVEPOINT active_record_1
1023
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'd9a8c42f' LIMIT 1
1024
+ SQL (0.4ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["ix", "d9a8c42f"], ["updated_at", "2014-06-04 13:17:23.732543"]]
1025
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1026
+  (0.0ms) SAVEPOINT active_record_1
1027
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '15e1f47d' LIMIT 1
1028
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:17:23.734916"], ["ix", "15e1f47d"], ["updated_at", "2014-06-04 13:17:23.734916"]]
1029
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1030
+  (0.0ms) SAVEPOINT active_record_1
1031
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '50de7d50' LIMIT 1
1032
+ SQL (0.1ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 2 [["ix", "50de7d50"], ["updated_at", "2014-06-04 13:17:23.736757"]]
1033
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1034
+  (0.1ms) SAVEPOINT active_record_1
1035
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '70c52aef' LIMIT 1
1036
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:17:23.738785"], ["ix", "70c52aef"], ["updated_at", "2014-06-04 13:17:23.738785"]]
1037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1038
+  (0.0ms) SAVEPOINT active_record_1
1039
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '3de4a938' LIMIT 1
1040
+ SQL (0.1ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 3 [["ix", "3de4a938"], ["updated_at", "2014-06-04 13:17:23.740454"]]
1041
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1042
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" IS NULL
1043
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE "users"."ix" IS NULL
1044
+  (1.2ms) rollback transaction
1045
+  (0.1ms) begin transaction
1046
+ --------------------------------------------
1047
+ HasIxTest: test_find_ix_should_recall_object
1048
+ --------------------------------------------
1049
+  (0.1ms) SAVEPOINT active_record_1
1050
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '237b6235' LIMIT 1
1051
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:17:23.745993"], ["ix", "237b6235"], ["updated_at", "2014-06-04 13:17:23.745993"]]
1052
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1053
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" = '237b6235' LIMIT 1
1054
+  (0.5ms) rollback transaction
1055
+  (0.1ms) begin transaction
1056
+ ------------------------------------------
1057
+ HasIxTest: test_set_ix_should_generate_hex
1058
+ ------------------------------------------
1059
+  (0.1ms) SAVEPOINT active_record_1
1060
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'c0d78a7f' LIMIT 1
1061
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:17:23.749856"], ["ix", "c0d78a7f"], ["updated_at", "2014-06-04 13:17:23.749856"]]
1062
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1063
+  (0.5ms) rollback transaction
1064
+  (0.1ms) begin transaction
1065
+ -----------------------------------------------
1066
+ HasIxTest: test_should_be_able_to_regenerate_ix
1067
+ -----------------------------------------------
1068
+  (0.0ms) SAVEPOINT active_record_1
1069
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '3e48001f' LIMIT 1
1070
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:17:23.752772"], ["ix", "3e48001f"], ["updated_at", "2014-06-04 13:17:23.752772"]]
1071
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1072
+  (0.0ms) SAVEPOINT active_record_1
1073
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'bbb4b41c' LIMIT 1
1074
+ SQL (0.5ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["ix", "bbb4b41c"], ["updated_at", "2014-06-04 13:17:23.754973"]]
1075
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1076
+  (0.7ms) rollback transaction
1077
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1078
+  (0.1ms) begin transaction
1079
+ ------------------------------------------------------------
1080
+ HasIxTest: test_fill_blank_ixs_should_result_in_no_blank_ixs
1081
+ ------------------------------------------------------------
1082
+  (0.0ms) SAVEPOINT active_record_1
1083
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '1a1a405a' LIMIT 1
1084
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:27:09.218888"], ["ix", "1a1a405a"], ["updated_at", "2014-06-04 13:27:09.218888"]]
1085
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1086
+  (0.0ms) SAVEPOINT active_record_1
1087
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '5cffb5b2' LIMIT 1
1088
+ SQL (0.4ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["ix", "5cffb5b2"], ["updated_at", "2014-06-04 13:27:09.222980"]]
1089
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1090
+  (0.0ms) SAVEPOINT active_record_1
1091
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '1669c4c7' LIMIT 1
1092
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:27:09.225414"], ["ix", "1669c4c7"], ["updated_at", "2014-06-04 13:27:09.225414"]]
1093
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1094
+  (0.0ms) SAVEPOINT active_record_1
1095
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '0c711d6b' LIMIT 1
1096
+ SQL (0.1ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 2 [["ix", "0c711d6b"], ["updated_at", "2014-06-04 13:27:09.226956"]]
1097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1098
+  (0.0ms) SAVEPOINT active_record_1
1099
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '9650a172' LIMIT 1
1100
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:27:09.228195"], ["ix", "9650a172"], ["updated_at", "2014-06-04 13:27:09.228195"]]
1101
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1102
+  (0.0ms) SAVEPOINT active_record_1
1103
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '3cab2e06' LIMIT 1
1104
+ SQL (0.1ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 3 [["ix", "3cab2e06"], ["updated_at", "2014-06-04 13:27:09.229285"]]
1105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1106
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" IS NULL
1107
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE "users"."ix" IS NULL
1108
+  (1.5ms) rollback transaction
1109
+  (0.1ms) begin transaction
1110
+ --------------------------------------------
1111
+ HasIxTest: test_find_ix_should_recall_object
1112
+ --------------------------------------------
1113
+  (0.1ms) SAVEPOINT active_record_1
1114
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '72fd925f' LIMIT 1
1115
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:27:09.234404"], ["ix", "72fd925f"], ["updated_at", "2014-06-04 13:27:09.234404"]]
1116
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1117
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" = '72fd925f' LIMIT 1
1118
+  (0.6ms) rollback transaction
1119
+  (0.1ms) begin transaction
1120
+ ------------------------------------------
1121
+ HasIxTest: test_set_ix_should_generate_hex
1122
+ ------------------------------------------
1123
+  (0.0ms) SAVEPOINT active_record_1
1124
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'b6166d1a' LIMIT 1
1125
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:27:09.237957"], ["ix", "b6166d1a"], ["updated_at", "2014-06-04 13:27:09.237957"]]
1126
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1127
+  (0.5ms) rollback transaction
1128
+  (0.1ms) begin transaction
1129
+ -----------------------------------------------
1130
+ HasIxTest: test_should_be_able_to_regenerate_ix
1131
+ -----------------------------------------------
1132
+  (0.1ms) SAVEPOINT active_record_1
1133
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '2fc1e3ce' LIMIT 1
1134
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:27:09.241656"], ["ix", "2fc1e3ce"], ["updated_at", "2014-06-04 13:27:09.241656"]]
1135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1136
+  (0.0ms) SAVEPOINT active_record_1
1137
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'f906e62a' LIMIT 1
1138
+ SQL (0.4ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["ix", "f906e62a"], ["updated_at", "2014-06-04 13:27:09.243539"]]
1139
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1140
+  (0.4ms) rollback transaction
1141
+  (0.1ms) begin transaction
1142
+ ------------------
1143
+ IxTest: test_truth
1144
+ ------------------
1145
+  (0.0ms) rollback transaction
1146
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1147
+  (0.1ms) begin transaction
1148
+ ------------------
1149
+ IxTest: test_truth
1150
+ ------------------
1151
+  (0.0ms) rollback transaction
1152
+  (0.0ms) begin transaction
1153
+ ------------------------------------------------------------
1154
+ HasIxTest: test_fill_blank_ixs_should_result_in_no_blank_ixs
1155
+ ------------------------------------------------------------
1156
+  (0.0ms) SAVEPOINT active_record_1
1157
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '7b5e7e99' LIMIT 1
1158
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:31:06.807247"], ["ix", "7b5e7e99"], ["updated_at", "2014-06-04 13:31:06.807247"]]
1159
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1160
+  (0.0ms) SAVEPOINT active_record_1
1161
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'f8a9eb77' LIMIT 1
1162
+ SQL (0.5ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["ix", "f8a9eb77"], ["updated_at", "2014-06-04 13:31:06.811564"]]
1163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1164
+  (0.0ms) SAVEPOINT active_record_1
1165
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '30f5ea83' LIMIT 1
1166
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:31:06.813975"], ["ix", "30f5ea83"], ["updated_at", "2014-06-04 13:31:06.813975"]]
1167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1168
+  (0.0ms) SAVEPOINT active_record_1
1169
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'aa1959ac' LIMIT 1
1170
+ SQL (0.1ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 2 [["ix", "aa1959ac"], ["updated_at", "2014-06-04 13:31:06.815280"]]
1171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1172
+  (0.0ms) SAVEPOINT active_record_1
1173
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '99404b71' LIMIT 1
1174
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:31:06.816328"], ["ix", "99404b71"], ["updated_at", "2014-06-04 13:31:06.816328"]]
1175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1176
+  (0.0ms) SAVEPOINT active_record_1
1177
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '0c0fa5f2' LIMIT 1
1178
+ SQL (0.1ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 3 [["ix", "0c0fa5f2"], ["updated_at", "2014-06-04 13:31:06.817631"]]
1179
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1180
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" IS NULL
1181
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE "users"."ix" IS NULL
1182
+  (1.2ms) rollback transaction
1183
+  (0.1ms) begin transaction
1184
+ --------------------------------------------
1185
+ HasIxTest: test_find_ix_should_recall_object
1186
+ --------------------------------------------
1187
+  (0.1ms) SAVEPOINT active_record_1
1188
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '5a8ff9c3' LIMIT 1
1189
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:31:06.822496"], ["ix", "5a8ff9c3"], ["updated_at", "2014-06-04 13:31:06.822496"]]
1190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1191
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" = '5a8ff9c3' LIMIT 1
1192
+  (0.4ms) rollback transaction
1193
+  (0.1ms) begin transaction
1194
+ ------------------------------------------
1195
+ HasIxTest: test_set_ix_should_generate_hex
1196
+ ------------------------------------------
1197
+  (0.0ms) SAVEPOINT active_record_1
1198
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'c149c88e' LIMIT 1
1199
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:31:06.826151"], ["ix", "c149c88e"], ["updated_at", "2014-06-04 13:31:06.826151"]]
1200
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1201
+  (2.8ms) rollback transaction
1202
+  (0.1ms) begin transaction
1203
+ -----------------------------------------------
1204
+ HasIxTest: test_should_be_able_to_regenerate_ix
1205
+ -----------------------------------------------
1206
+  (0.0ms) SAVEPOINT active_record_1
1207
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '055a055a' LIMIT 1
1208
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:31:06.831993"], ["ix", "055a055a"], ["updated_at", "2014-06-04 13:31:06.831993"]]
1209
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1210
+  (0.1ms) SAVEPOINT active_record_1
1211
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'b4db3bcf' LIMIT 1
1212
+ SQL (0.4ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["ix", "b4db3bcf"], ["updated_at", "2014-06-04 13:31:06.834294"]]
1213
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1214
+  (0.7ms) rollback transaction
1215
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1216
+  (0.1ms) begin transaction
1217
+ ------------------
1218
+ IxTest: test_truth
1219
+ ------------------
1220
+  (0.0ms) rollback transaction
1221
+  (0.0ms) begin transaction
1222
+ ------------------------------------------------------------
1223
+ HasIxTest: test_fill_blank_ixs_should_result_in_no_blank_ixs
1224
+ ------------------------------------------------------------
1225
+  (0.0ms) SAVEPOINT active_record_1
1226
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1227
+  (0.1ms) rollback transaction
1228
+  (0.0ms) begin transaction
1229
+ --------------------------------------------
1230
+ HasIxTest: test_find_ix_should_recall_object
1231
+ --------------------------------------------
1232
+  (0.0ms) SAVEPOINT active_record_1
1233
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1234
+  (0.0ms) rollback transaction
1235
+  (0.0ms) begin transaction
1236
+ ------------------------------------------
1237
+ HasIxTest: test_set_ix_should_generate_hex
1238
+ ------------------------------------------
1239
+  (0.0ms) SAVEPOINT active_record_1
1240
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1241
+  (0.0ms) rollback transaction
1242
+  (0.0ms) begin transaction
1243
+ -----------------------------------------------
1244
+ HasIxTest: test_should_be_able_to_regenerate_ix
1245
+ -----------------------------------------------
1246
+  (0.0ms) SAVEPOINT active_record_1
1247
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1248
+  (0.0ms) rollback transaction
1249
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1250
+  (0.1ms) begin transaction
1251
+ ------------------------------------------------------------
1252
+ HasIxTest: test_fill_blank_ixs_should_result_in_no_blank_ixs
1253
+ ------------------------------------------------------------
1254
+  (0.0ms) SAVEPOINT active_record_1
1255
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'eebaa63b' LIMIT 1
1256
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:37:20.642825"], ["ix", "eebaa63b"], ["updated_at", "2014-06-04 13:37:20.642825"]]
1257
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1258
+  (0.0ms) SAVEPOINT active_record_1
1259
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '74d28c8f' LIMIT 1
1260
+ SQL (0.4ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["ix", "74d28c8f"], ["updated_at", "2014-06-04 13:37:20.647075"]]
1261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1262
+  (0.1ms) SAVEPOINT active_record_1
1263
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '322e18f7' LIMIT 1
1264
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:37:20.650240"], ["ix", "322e18f7"], ["updated_at", "2014-06-04 13:37:20.650240"]]
1265
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1266
+  (0.0ms) SAVEPOINT active_record_1
1267
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '4b20f157' LIMIT 1
1268
+ SQL (0.1ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 2 [["ix", "4b20f157"], ["updated_at", "2014-06-04 13:37:20.652026"]]
1269
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1270
+  (0.0ms) SAVEPOINT active_record_1
1271
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'd59f1de8' LIMIT 1
1272
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:37:20.653553"], ["ix", "d59f1de8"], ["updated_at", "2014-06-04 13:37:20.653553"]]
1273
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1274
+  (0.0ms) SAVEPOINT active_record_1
1275
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '1357087b' LIMIT 1
1276
+ SQL (0.1ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 3 [["ix", "1357087b"], ["updated_at", "2014-06-04 13:37:20.654975"]]
1277
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1278
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" IS NULL
1279
+  (0.1ms) SELECT COUNT(*) FROM "users" WHERE "users"."ix" IS NULL
1280
+  (1.2ms) rollback transaction
1281
+  (0.1ms) begin transaction
1282
+ --------------------------------------------
1283
+ HasIxTest: test_find_ix_should_recall_object
1284
+ --------------------------------------------
1285
+  (0.0ms) SAVEPOINT active_record_1
1286
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '26cd8a4d' LIMIT 1
1287
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:37:20.660186"], ["ix", "26cd8a4d"], ["updated_at", "2014-06-04 13:37:20.660186"]]
1288
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1289
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."ix" = '26cd8a4d' LIMIT 1
1290
+  (0.6ms) rollback transaction
1291
+  (0.1ms) begin transaction
1292
+ ------------------------------------------
1293
+ HasIxTest: test_set_ix_should_generate_hex
1294
+ ------------------------------------------
1295
+  (0.1ms) SAVEPOINT active_record_1
1296
+ User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = 'ee59cc39' LIMIT 1
1297
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:37:20.664656"], ["ix", "ee59cc39"], ["updated_at", "2014-06-04 13:37:20.664656"]]
1298
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1299
+  (2.8ms) rollback transaction
1300
+  (0.1ms) begin transaction
1301
+ -----------------------------------------------
1302
+ HasIxTest: test_should_be_able_to_regenerate_ix
1303
+ -----------------------------------------------
1304
+  (0.0ms) SAVEPOINT active_record_1
1305
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '2adf3872' LIMIT 1
1306
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "ix", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-04 13:37:20.670696"], ["ix", "2adf3872"], ["updated_at", "2014-06-04 13:37:20.670696"]]
1307
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1308
+  (0.0ms) SAVEPOINT active_record_1
1309
+ User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."ix" = '0bb2455f' LIMIT 1
1310
+ SQL (0.4ms) UPDATE "users" SET "ix" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["ix", "0bb2455f"], ["updated_at", "2014-06-04 13:37:20.672574"]]
1311
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1312
+  (0.6ms) rollback transaction
1313
+  (0.1ms) begin transaction
1314
+ ------------------
1315
+ IxTest: test_truth
553
1316
  ------------------
554
1317
   (0.0ms) rollback transaction
data/test/has_ix_test.rb CHANGED
@@ -19,4 +19,34 @@ class HasIxTest < ActiveSupport::TestCase
19
19
  user2 = User.find_ix(user1_ix)
20
20
  assert_equal user1.id, user2.id
21
21
  end
22
+
23
+ def test_fill_blank_ixs_should_result_in_no_blank_ixs
24
+ user1 = User.new
25
+ user1.save
26
+ user1.ix = nil
27
+ user1.save
28
+ user2 = User.new
29
+ user2.save
30
+ user2.ix = nil
31
+ user2.save
32
+ user3 = User.new
33
+ user3.save
34
+ user3.ix = nil
35
+ user3.save
36
+
37
+ User.fill_blank_ixs
38
+ assert_equal User.where(ix: nil).count, 0
39
+ end
40
+
41
+ def test_should_be_able_to_regenerate_ix
42
+ user1 = User.new
43
+ user1.save
44
+ initial_ix = user1.ix
45
+
46
+ user1.ix = nil
47
+ user1.save
48
+ new_ix = user1.ix
49
+
50
+ assert_not_equal initial_ix, new_ix
51
+ end
22
52
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Heard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-03 00:00:00.000000000 Z
11
+ date: 2014-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails