acts_as_integer_infinitable 0.0.1 → 0.0.2

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: 506d10ddb29f5dc6a1cac4c3f89b57c4ac3f9645
4
- data.tar.gz: c66145819c8265bd39d03d19a8b4a4cfeceb3c03
3
+ metadata.gz: 79708439d0e627a03618fcb0dda176952fe51b49
4
+ data.tar.gz: 9fd78e314e691b1a7bfcd1347c395cb4ea95aa3b
5
5
  SHA512:
6
- metadata.gz: c85b92de7df8f39de00456ef93a993afe4af35717bc447f493b22d208d564b69ade8f0a267dcb8ac61e2a1d6d7220fd2c314ca67e0c2ef2955fe72d02bc5d0e6
7
- data.tar.gz: a9966a5517bac74ca15d7c6b3409cc2ddc997dd805d0ccbdb4666986f3ac9333f6ae8835ee742289854965b4d75c83f005e9f78d8efe5a3189403cbbc52cc845
6
+ metadata.gz: b119a9836f68d08750744567b807107f0526659a14cdb70d85f02b5a0182858cbf01cff5a01de8e977e7e0e61b38e9f47debd2fbe446ff7c4a3e66b56498e204
7
+ data.tar.gz: 360a65fc332659073f4b653290171b185c7d847905a93a42c83b01dcba2454e4e30cb529f17e55701918748bdb0925f99711bfe043e9d645f0ade76bd31db518
data/README.rdoc CHANGED
@@ -1,3 +1,63 @@
1
- = IntegerWithInfinity
1
+ # ActsAsIntegerInfinitable
2
+
3
+ Allows the fields to store an Infinity value.
4
+
5
+ Overrides the setter and getter of those fields in order to capture
6
+ and return Infinity when appropiate.
7
+
8
+ Then you can use it as any other value and get the desired result, like
9
+ decrementing, incrementing, comparing with <, >, ==, etc.
10
+
11
+ It sets and specific value in the database (like -1, 0 or nil) to use as Infinity.
12
+
13
+ ## Installation
14
+
15
+ To use it, add it to your Gemfile:
16
+
17
+ ```ruby
18
+ gem 'acts_as_integer_infinitable'
19
+ ```
20
+
21
+ and bundle:
22
+
23
+ ```shell
24
+ bundle
25
+ ```
26
+
27
+ ## Usage
28
+
29
+ Example:
30
+ ```ruby
31
+ class LibrarySubscription < ActiveRecord::Base
32
+ acts_as_integer_infinitable [:available_books]
33
+
34
+ def rent_book
35
+ #Do other things...
36
+ self.available_books -= 1
37
+ save
38
+ end
39
+ end
40
+
41
+ > simple_subscription = LibrarySubscription.new(available_books: 5)
42
+ > simple_subscription.available_books
43
+ => 5
44
+ > simple_subscription.rent_book
45
+ > simple_subscription.available_books
46
+ => 4
47
+
48
+ > complete_subscription = LibrarySubscription.new(available_books: Float::INFINITY)
49
+ > long_subscription.available_books
50
+ => Infinity
51
+ > long_subscription.rent_book
52
+ > long_subscription.available_books
53
+ => Infinity
54
+ ```
55
+
56
+ ## Contributing
57
+
58
+ Pull request are welcome!
59
+
60
+ ## License
61
+
62
+ See [LICENSE](https://github.com/pablogonzalezalba/acts_as_integer_infinitable/blob/master/LICENSE)
2
63
 
3
- This project rocks and uses MIT-LICENSE.
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ require 'rdoc/task'
8
8
 
9
9
  RDoc::Task.new(:rdoc) do |rdoc|
10
10
  rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'IntegerWithInfinity'
11
+ rdoc.title = 'ActsAsIntegerInfinitable'
12
12
  rdoc.options << '--line-numbers'
13
13
  rdoc.rdoc_files.include('README.rdoc')
14
14
  rdoc.rdoc_files.include('lib/**/*.rb')
@@ -5,20 +5,58 @@ module ActsAsIntegerInfinitable
5
5
  end
6
6
 
7
7
  module ClassMethods
8
- def acts_as_integer_infinitable(options = {})
9
- if options[:fields].blank?
10
- fail 'It is required to set which fields should be infinitable'
11
- end
8
+ # Allows the fields to store an Infinity value.
9
+ #
10
+ # Overrides the setter and getter of those fields in order to capture
11
+ # and return Infinity when appropiate.
12
+ #
13
+ # Then you can use it as any other value and get the desired result, like
14
+ # decrementing, incrementing, comparing with <, >, ==, etc.
15
+ #
16
+ # Example:
17
+ # class LibrarySubscription < ActiveRecord::Base
18
+ # acts_as_integer_infinitable [:available_books]
19
+ #
20
+ # def rent_book
21
+ # # Do other things...
22
+ # self.available_books -= 1
23
+ # save
24
+ # end
25
+ # end
26
+ #
27
+ # > simple_subscription = LibrarySubscription.new(available_books: 5)
28
+ # > simple_subscription.available_books
29
+ # => 5
30
+ # > simple_subscription.rent_book
31
+ # > simple_subscription.available_books
32
+ # => 4
33
+ #
34
+ # > complete_subscription = LibrarySubscription.new(available_books: Float::INFINITY)
35
+ # > long_subscription.available_books
36
+ # => Infinity
37
+ # > long_subscription.rent_book
38
+ # > long_subscription.available_books
39
+ # => Infinity
40
+ #
41
+ # == Parameters
42
+ # * +fields+ - An Array with the fields that will be infinitable. They have
43
+ # to be integers in the database.
44
+ #
45
+ # == Options
46
+ # * +:infinity_value+ - The value that will be converted to Infinity.
47
+ # Default: -1. Another popular value is `nil`.
48
+ def acts_as_integer_infinitable(fields, options = {})
49
+ options[:infinity_value] = -1 unless options.key? :infinity_value
12
50
 
13
- options[:fields].each do |field|
51
+ fields.each do |field|
14
52
  define_method("#{field}=") do |value|
15
- int_value = value == Float::INFINITY ? -1 : value
53
+ int_value = value == Float::INFINITY ? options[:infinity_value] : value
16
54
  write_attribute(field, int_value)
17
55
  end
18
56
 
19
57
  define_method("#{field}") do
20
58
  value = read_attribute(field)
21
- value == -1 ? Float::INFINITY : value
59
+ value == options[:infinity_value] ? Float::INFINITY : value
22
60
  end
23
61
  end
24
62
  end
@@ -1,3 +1,3 @@
1
1
  module ActsAsIntegerInfinitable
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -6,25 +6,37 @@ class ActsAsIntegerInfinitableTest < ActiveSupport::TestCase
6
6
  end
7
7
 
8
8
  def test_a_number_after_saving_should_be_the_same
9
- subscription = Subscription.create(duration: 5)
10
- assert_equal 5, subscription.reload.duration
9
+ subscription = LibrarySubscription.create(available_books: 5)
10
+ assert_equal 5, subscription.reload.available_books
11
+ end
12
+
13
+ def test_a_number_should_decrement
14
+ subscription = LibrarySubscription.create(available_books: 5)
15
+ subscription.rent_book
16
+ assert_equal 4, subscription.reload.available_books
11
17
  end
12
18
 
13
19
  def test_assing_infinity_on_creation_should_be_infinity
14
- subscription = Subscription.create(duration: Float::INFINITY)
15
- assert_equal Float::INFINITY, subscription.duration
20
+ subscription = LibrarySubscription.create(available_books: Float::INFINITY)
21
+ assert_equal Float::INFINITY, subscription.available_books
22
+ end
23
+
24
+ def test_infinity_after_decrement_should_not_change
25
+ subscription = LibrarySubscription.create(available_books: Float::INFINITY)
26
+ subscription.rent_book
27
+ assert_equal Float::INFINITY, subscription.reload.available_books
16
28
  end
17
29
 
18
30
  def test_assing_infinity_on_creation_should_be_infinity_after_reloading
19
- subscription = Subscription.create(duration: Float::INFINITY)
20
- assert_equal Float::INFINITY, subscription.reload.duration
31
+ subscription = LibrarySubscription.create(available_books: Float::INFINITY)
32
+ assert_equal Float::INFINITY, subscription.reload.available_books
21
33
  end
22
34
 
23
35
  def test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
24
- subscription = Subscription.create
25
- subscription.duration = Float::INFINITY
36
+ subscription = LibrarySubscription.create
37
+ subscription.available_books = Float::INFINITY
26
38
  subscription.save
27
- assert_equal Float::INFINITY, subscription.reload.duration
39
+ assert_equal Float::INFINITY, subscription.reload.available_books
28
40
  end
29
41
 
30
42
  def test_works_on_multiple_fields
@@ -33,4 +45,15 @@ class ActsAsIntegerInfinitableTest < ActiveSupport::TestCase
33
45
  assert_equal Float::INFINITY, tireless_warrior.movements_available
34
46
  assert_equal Float::INFINITY, tireless_warrior.attacks_available
35
47
  end
48
+
49
+ def test_can_define_different_value_as_infinity
50
+ poor = Person.create(funds: 0)
51
+ assert_equal 0, poor.funds
52
+
53
+ debtor = Person.create(funds: -1)
54
+ assert_equal -1, debtor.funds
55
+
56
+ super_millonaire = Person.create(funds: Float::INFINITY)
57
+ assert_equal Float::INFINITY, super_millonaire.funds
58
+ end
36
59
  end
@@ -0,0 +1,8 @@
1
+ class LibrarySubscription < ActiveRecord::Base
2
+ acts_as_integer_infinitable [:available_books]
3
+
4
+ def rent_book
5
+ self.available_books -= 1
6
+ save
7
+ end
8
+ end
@@ -0,0 +1,3 @@
1
+ class Person < ActiveRecord::Base
2
+ acts_as_integer_infinitable [:funds], infinity_value: nil
3
+ end
@@ -1,3 +1,3 @@
1
1
  class TirelessWarrior < ActiveRecord::Base
2
- acts_as_integer_infinitable fields: %i(movements_available attacks_available)
2
+ acts_as_integer_infinitable %i(movements_available attacks_available)
3
3
  end
Binary file
@@ -0,0 +1,9 @@
1
+ class CreatePeople < ActiveRecord::Migration
2
+ def change
3
+ create_table :people do |t|
4
+ t.integer :funds
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ class RenameSubscriptionToLibrarySubscription < ActiveRecord::Migration
2
+ def change
3
+ rename_table :subscriptions, :library_subscriptions
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class RenameDurationToAvailableBooks < ActiveRecord::Migration
2
+ def change
3
+ rename_column :library_subscriptions, :duration, :available_books
4
+ end
5
+ end
@@ -11,10 +11,16 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20150622001416) do
14
+ ActiveRecord::Schema.define(version: 20150622044503) do
15
15
 
16
- create_table "subscriptions", force: true do |t|
17
- t.integer "duration"
16
+ create_table "library_subscriptions", force: true do |t|
17
+ t.integer "available_books"
18
+ t.datetime "created_at"
19
+ t.datetime "updated_at"
20
+ end
21
+
22
+ create_table "people", force: true do |t|
23
+ t.integer "funds"
18
24
  t.datetime "created_at"
19
25
  t.datetime "updated_at"
20
26
  end
Binary file
@@ -28,3 +28,27 @@ Migrating to CreateTirelessWarriors (20150622001416)
28
28
  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150622001416"]]
29
29
   (159.2ms) commit transaction
30
30
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
31
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
32
+ Migrating to CreatePeople (20150622035909)
33
+  (0.2ms) begin transaction
34
+  (0.3ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "funds" integer, "created_at" datetime, "updated_at" datetime) 
35
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150622035909"]]
36
+  (163.4ms) commit transaction
37
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
38
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
39
+ Migrating to RenameSubscriptionToLibrarySubscription (20150622044418)
40
+  (0.1ms) begin transaction
41
+  (0.5ms) ALTER TABLE "subscriptions" RENAME TO "library_subscriptions"
42
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150622044418"]]
43
+  (183.4ms) commit transaction
44
+ Migrating to RenameDurationToAvailableBooks (20150622044503)
45
+  (0.2ms) begin transaction
46
+  (0.4ms) CREATE TEMPORARY TABLE "alibrary_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "available_books" integer, "created_at" datetime, "updated_at" datetime) 
47
+  (0.1ms) SELECT * FROM "library_subscriptions"
48
+  (0.3ms) DROP TABLE "library_subscriptions"
49
+  (0.2ms) CREATE TABLE "library_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "available_books" integer, "created_at" datetime, "updated_at" datetime)
50
+  (0.1ms) SELECT * FROM "alibrary_subscriptions"
51
+  (0.3ms) DROP TABLE "alibrary_subscriptions"
52
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150622044503"]]
53
+  (131.7ms) commit transaction
54
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -714,3 +714,2488 @@ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
714
714
  SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 00:51:08.020985"], ["movements_available", -1], ["updated_at", "2015-06-22 00:51:08.020985"]]
715
715
   (0.1ms) RELEASE SAVEPOINT active_record_1
716
716
   (0.1ms) rollback transaction
717
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
718
+  (125.3ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "funds" integer, "created_at" datetime, "updated_at" datetime) 
719
+  (132.7ms) CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "duration" integer, "created_at" datetime, "updated_at" datetime)
720
+  (192.0ms) CREATE TABLE "tireless_warriors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "movements_available" integer, "attacks_available" integer, "created_at" datetime, "updated_at" datetime) 
721
+  (72.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
722
+  (0.3ms) select sqlite_version(*)
723
+  (73.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
724
+  (0.2ms) SELECT version FROM "schema_migrations"
725
+  (91.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150622035909')
726
+  (91.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150622001416')
727
+  (92.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150621232010')
728
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
729
+  (0.1ms) begin transaction
730
+ ---------------------------------------------------------------------------
731
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
732
+ ---------------------------------------------------------------------------
733
+  (0.1ms) SAVEPOINT active_record_1
734
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 03:59:50.970617"], ["duration", 5], ["updated_at", "2015-06-22 03:59:50.970617"]]
735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
736
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
737
+  (0.1ms) rollback transaction
738
+  (0.0ms) begin transaction
739
+ ---------------------------------------------------------------------------------------------------------
740
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
741
+ ---------------------------------------------------------------------------------------------------------
742
+  (0.1ms) SAVEPOINT active_record_1
743
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 03:59:50.989084"], ["updated_at", "2015-06-22 03:59:50.989084"]]
744
+  (0.0ms) RELEASE SAVEPOINT active_record_1
745
+  (0.0ms) SAVEPOINT active_record_1
746
+ SQL (0.2ms) UPDATE "subscriptions" SET "duration" = ?, "updated_at" = ? WHERE "subscriptions"."id" = 1 [["duration", -1], ["updated_at", "2015-06-22 03:59:50.990387"]]
747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
748
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
749
+  (0.1ms) rollback transaction
750
+  (0.0ms) begin transaction
751
+ ---------------------------------------------------------------------------------
752
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
753
+ ---------------------------------------------------------------------------------
754
+  (0.0ms) SAVEPOINT active_record_1
755
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 03:59:50.993418"], ["duration", -1], ["updated_at", "2015-06-22 03:59:50.993418"]]
756
+  (0.0ms) RELEASE SAVEPOINT active_record_1
757
+  (0.1ms) rollback transaction
758
+  (0.0ms) begin transaction
759
+ -------------------------------------------------------------------------------------------------
760
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
761
+ -------------------------------------------------------------------------------------------------
762
+  (0.0ms) SAVEPOINT active_record_1
763
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 03:59:50.994980"], ["duration", -1], ["updated_at", "2015-06-22 03:59:50.994980"]]
764
+  (0.0ms) RELEASE SAVEPOINT active_record_1
765
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
766
+  (0.1ms) rollback transaction
767
+  (0.0ms) begin transaction
768
+ -------------------------------------------------------------------------
769
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
770
+ -------------------------------------------------------------------------
771
+  (0.1ms) SAVEPOINT active_record_1
772
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 03:59:51.000747"], ["funds", 0], ["updated_at", "2015-06-22 03:59:51.000747"]]
773
+  (0.0ms) RELEASE SAVEPOINT active_record_1
774
+  (0.1ms) rollback transaction
775
+  (0.0ms) begin transaction
776
+ ----------------------------------------
777
+ ActsAsIntegerInfinitableTest: test_truth
778
+ ----------------------------------------
779
+  (0.0ms) rollback transaction
780
+  (0.0ms) begin transaction
781
+ -----------------------------------------------------------
782
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
783
+ -----------------------------------------------------------
784
+  (0.0ms) SAVEPOINT active_record_1
785
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 03:59:51.005195"], ["movements_available", -1], ["updated_at", "2015-06-22 03:59:51.005195"]]
786
+  (0.0ms) RELEASE SAVEPOINT active_record_1
787
+  (0.1ms) rollback transaction
788
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
789
+  (0.1ms) begin transaction
790
+ ---------------------------------------------------------------------------
791
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
792
+ ---------------------------------------------------------------------------
793
+  (0.0ms) SAVEPOINT active_record_1
794
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:00:05.003158"], ["duration", 5], ["updated_at", "2015-06-22 04:00:05.003158"]]
795
+  (0.1ms) RELEASE SAVEPOINT active_record_1
796
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
797
+  (0.1ms) rollback transaction
798
+  (0.0ms) begin transaction
799
+ ---------------------------------------------------------------------------------------------------------
800
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
801
+ ---------------------------------------------------------------------------------------------------------
802
+  (0.0ms) SAVEPOINT active_record_1
803
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:00:05.011174"], ["updated_at", "2015-06-22 04:00:05.011174"]]
804
+  (0.0ms) RELEASE SAVEPOINT active_record_1
805
+  (0.0ms) SAVEPOINT active_record_1
806
+ SQL (0.2ms) UPDATE "subscriptions" SET "duration" = ?, "updated_at" = ? WHERE "subscriptions"."id" = 1 [["duration", -1], ["updated_at", "2015-06-22 04:00:05.012261"]]
807
+  (0.0ms) RELEASE SAVEPOINT active_record_1
808
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
809
+  (0.1ms) rollback transaction
810
+  (0.0ms) begin transaction
811
+ ---------------------------------------------------------------------------------
812
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
813
+ ---------------------------------------------------------------------------------
814
+  (0.0ms) SAVEPOINT active_record_1
815
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:00:05.015159"], ["duration", -1], ["updated_at", "2015-06-22 04:00:05.015159"]]
816
+  (0.1ms) RELEASE SAVEPOINT active_record_1
817
+  (0.1ms) rollback transaction
818
+  (0.1ms) begin transaction
819
+ -------------------------------------------------------------------------------------------------
820
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
821
+ -------------------------------------------------------------------------------------------------
822
+  (0.1ms) SAVEPOINT active_record_1
823
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:00:05.017076"], ["duration", -1], ["updated_at", "2015-06-22 04:00:05.017076"]]
824
+  (0.1ms) RELEASE SAVEPOINT active_record_1
825
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
826
+  (0.1ms) rollback transaction
827
+  (0.1ms) begin transaction
828
+ -------------------------------------------------------------------------
829
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
830
+ -------------------------------------------------------------------------
831
+  (0.1ms) SAVEPOINT active_record_1
832
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:00:05.024698"], ["funds", 0], ["updated_at", "2015-06-22 04:00:05.024698"]]
833
+  (0.1ms) RELEASE SAVEPOINT active_record_1
834
+  (0.0ms) SAVEPOINT active_record_1
835
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:00:05.026581"], ["funds", -1], ["updated_at", "2015-06-22 04:00:05.026581"]]
836
+  (0.1ms) RELEASE SAVEPOINT active_record_1
837
+  (0.0ms) SAVEPOINT active_record_1
838
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:00:05.027982"], ["updated_at", "2015-06-22 04:00:05.027982"]]
839
+  (0.1ms) RELEASE SAVEPOINT active_record_1
840
+  (0.1ms) rollback transaction
841
+  (0.1ms) begin transaction
842
+ ----------------------------------------
843
+ ActsAsIntegerInfinitableTest: test_truth
844
+ ----------------------------------------
845
+  (0.0ms) rollback transaction
846
+  (0.1ms) begin transaction
847
+ -----------------------------------------------------------
848
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
849
+ -----------------------------------------------------------
850
+  (0.1ms) SAVEPOINT active_record_1
851
+ SQL (0.3ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:00:05.032896"], ["movements_available", -1], ["updated_at", "2015-06-22 04:00:05.032896"]]
852
+  (0.1ms) RELEASE SAVEPOINT active_record_1
853
+  (0.2ms) rollback transaction
854
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
855
+  (0.1ms) begin transaction
856
+ ---------------------------------------------------------------------------
857
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
858
+ ---------------------------------------------------------------------------
859
+  (0.0ms) SAVEPOINT active_record_1
860
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:00:46.228579"], ["duration", 5], ["updated_at", "2015-06-22 04:00:46.228579"]]
861
+  (0.0ms) RELEASE SAVEPOINT active_record_1
862
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
863
+  (0.1ms) rollback transaction
864
+  (0.1ms) begin transaction
865
+ ---------------------------------------------------------------------------------------------------------
866
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
867
+ ---------------------------------------------------------------------------------------------------------
868
+  (0.1ms) SAVEPOINT active_record_1
869
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:00:46.236998"], ["updated_at", "2015-06-22 04:00:46.236998"]]
870
+  (0.0ms) RELEASE SAVEPOINT active_record_1
871
+  (0.0ms) SAVEPOINT active_record_1
872
+ SQL (0.2ms) UPDATE "subscriptions" SET "duration" = ?, "updated_at" = ? WHERE "subscriptions"."id" = 1 [["duration", -1], ["updated_at", "2015-06-22 04:00:46.238278"]]
873
+  (0.0ms) RELEASE SAVEPOINT active_record_1
874
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
875
+  (0.1ms) rollback transaction
876
+  (0.0ms) begin transaction
877
+ ---------------------------------------------------------------------------------
878
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
879
+ ---------------------------------------------------------------------------------
880
+  (0.0ms) SAVEPOINT active_record_1
881
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:00:46.241196"], ["duration", -1], ["updated_at", "2015-06-22 04:00:46.241196"]]
882
+  (0.0ms) RELEASE SAVEPOINT active_record_1
883
+  (0.1ms) rollback transaction
884
+  (0.0ms) begin transaction
885
+ -------------------------------------------------------------------------------------------------
886
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
887
+ -------------------------------------------------------------------------------------------------
888
+  (0.0ms) SAVEPOINT active_record_1
889
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:00:46.242731"], ["duration", -1], ["updated_at", "2015-06-22 04:00:46.242731"]]
890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
891
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
892
+  (0.1ms) rollback transaction
893
+  (0.0ms) begin transaction
894
+ -------------------------------------------------------------------------
895
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
896
+ -------------------------------------------------------------------------
897
+  (0.1ms) SAVEPOINT active_record_1
898
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:00:46.248372"], ["funds", 0], ["updated_at", "2015-06-22 04:00:46.248372"]]
899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
900
+  (0.0ms) SAVEPOINT active_record_1
901
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:00:46.249697"], ["funds", -1], ["updated_at", "2015-06-22 04:00:46.249697"]]
902
+  (0.0ms) RELEASE SAVEPOINT active_record_1
903
+  (0.0ms) SAVEPOINT active_record_1
904
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:00:46.250766"], ["updated_at", "2015-06-22 04:00:46.250766"]]
905
+  (0.1ms) RELEASE SAVEPOINT active_record_1
906
+  (0.1ms) rollback transaction
907
+  (0.0ms) begin transaction
908
+ ----------------------------------------
909
+ ActsAsIntegerInfinitableTest: test_truth
910
+ ----------------------------------------
911
+  (0.0ms) rollback transaction
912
+  (0.0ms) begin transaction
913
+ -----------------------------------------------------------
914
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
915
+ -----------------------------------------------------------
916
+  (0.0ms) SAVEPOINT active_record_1
917
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:00:46.254370"], ["movements_available", -1], ["updated_at", "2015-06-22 04:00:46.254370"]]
918
+  (0.0ms) RELEASE SAVEPOINT active_record_1
919
+  (0.1ms) rollback transaction
920
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
921
+  (0.1ms) begin transaction
922
+ ---------------------------------------------------------------------------
923
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
924
+ ---------------------------------------------------------------------------
925
+  (0.0ms) SAVEPOINT active_record_1
926
+ SQL (0.4ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:02:01.560739"], ["duration", 5], ["updated_at", "2015-06-22 04:02:01.560739"]]
927
+  (0.1ms) RELEASE SAVEPOINT active_record_1
928
+ Subscription Load (0.2ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
929
+  (0.2ms) rollback transaction
930
+  (0.1ms) begin transaction
931
+ ---------------------------------------------------------------------------------------------------------
932
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
933
+ ---------------------------------------------------------------------------------------------------------
934
+  (0.1ms) SAVEPOINT active_record_1
935
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:02:01.570583"], ["updated_at", "2015-06-22 04:02:01.570583"]]
936
+  (0.1ms) RELEASE SAVEPOINT active_record_1
937
+  (0.0ms) SAVEPOINT active_record_1
938
+ SQL (0.2ms) UPDATE "subscriptions" SET "duration" = ?, "updated_at" = ? WHERE "subscriptions"."id" = 1 [["duration", -1], ["updated_at", "2015-06-22 04:02:01.572233"]]
939
+  (0.1ms) RELEASE SAVEPOINT active_record_1
940
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
941
+  (0.2ms) rollback transaction
942
+  (0.1ms) begin transaction
943
+ ---------------------------------------------------------------------------------
944
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
945
+ ---------------------------------------------------------------------------------
946
+  (0.0ms) SAVEPOINT active_record_1
947
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:02:01.575907"], ["duration", -1], ["updated_at", "2015-06-22 04:02:01.575907"]]
948
+  (0.1ms) RELEASE SAVEPOINT active_record_1
949
+  (0.1ms) rollback transaction
950
+  (0.1ms) begin transaction
951
+ -------------------------------------------------------------------------------------------------
952
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
953
+ -------------------------------------------------------------------------------------------------
954
+  (0.1ms) SAVEPOINT active_record_1
955
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:02:01.578069"], ["duration", -1], ["updated_at", "2015-06-22 04:02:01.578069"]]
956
+  (0.1ms) RELEASE SAVEPOINT active_record_1
957
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
958
+  (0.1ms) rollback transaction
959
+  (0.1ms) begin transaction
960
+ -------------------------------------------------------------------------
961
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
962
+ -------------------------------------------------------------------------
963
+  (0.1ms) SAVEPOINT active_record_1
964
+ SQL (0.3ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:02:01.585990"], ["funds", 0], ["updated_at", "2015-06-22 04:02:01.585990"]]
965
+  (0.1ms) RELEASE SAVEPOINT active_record_1
966
+  (0.1ms) SAVEPOINT active_record_1
967
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:02:01.588040"], ["funds", -1], ["updated_at", "2015-06-22 04:02:01.588040"]]
968
+  (0.1ms) RELEASE SAVEPOINT active_record_1
969
+  (0.1ms) SAVEPOINT active_record_1
970
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:02:01.589611"], ["updated_at", "2015-06-22 04:02:01.589611"]]
971
+  (0.1ms) RELEASE SAVEPOINT active_record_1
972
+  (0.2ms) rollback transaction
973
+  (0.1ms) begin transaction
974
+ ----------------------------------------
975
+ ActsAsIntegerInfinitableTest: test_truth
976
+ ----------------------------------------
977
+  (0.0ms) rollback transaction
978
+  (0.1ms) begin transaction
979
+ -----------------------------------------------------------
980
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
981
+ -----------------------------------------------------------
982
+  (0.1ms) SAVEPOINT active_record_1
983
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:02:01.594880"], ["movements_available", -1], ["updated_at", "2015-06-22 04:02:01.594880"]]
984
+  (0.0ms) RELEASE SAVEPOINT active_record_1
985
+  (0.1ms) rollback transaction
986
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
987
+  (0.1ms) begin transaction
988
+ ---------------------------------------------------------------------------
989
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
990
+ ---------------------------------------------------------------------------
991
+  (0.0ms) SAVEPOINT active_record_1
992
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:03:39.570274"], ["duration", 5], ["updated_at", "2015-06-22 04:03:39.570274"]]
993
+  (0.0ms) RELEASE SAVEPOINT active_record_1
994
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
995
+  (0.1ms) rollback transaction
996
+  (0.1ms) begin transaction
997
+ ---------------------------------------------------------------------------------------------------------
998
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
999
+ ---------------------------------------------------------------------------------------------------------
1000
+  (0.1ms) SAVEPOINT active_record_1
1001
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:03:39.578548"], ["updated_at", "2015-06-22 04:03:39.578548"]]
1002
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1003
+  (0.0ms) SAVEPOINT active_record_1
1004
+ SQL (0.2ms) UPDATE "subscriptions" SET "duration" = ?, "updated_at" = ? WHERE "subscriptions"."id" = 1 [["duration", -1], ["updated_at", "2015-06-22 04:03:39.579719"]]
1005
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1006
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1007
+  (0.1ms) rollback transaction
1008
+  (0.0ms) begin transaction
1009
+ ---------------------------------------------------------------------------------
1010
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
1011
+ ---------------------------------------------------------------------------------
1012
+  (0.0ms) SAVEPOINT active_record_1
1013
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:03:39.582447"], ["duration", -1], ["updated_at", "2015-06-22 04:03:39.582447"]]
1014
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1015
+  (0.1ms) rollback transaction
1016
+  (0.0ms) begin transaction
1017
+ -------------------------------------------------------------------------------------------------
1018
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
1019
+ -------------------------------------------------------------------------------------------------
1020
+  (0.0ms) SAVEPOINT active_record_1
1021
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:03:39.583974"], ["duration", -1], ["updated_at", "2015-06-22 04:03:39.583974"]]
1022
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1023
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1024
+  (0.1ms) rollback transaction
1025
+  (0.1ms) begin transaction
1026
+ -------------------------------------------------------------------------
1027
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
1028
+ -------------------------------------------------------------------------
1029
+  (0.0ms) SAVEPOINT active_record_1
1030
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:03:39.589505"], ["funds", 0], ["updated_at", "2015-06-22 04:03:39.589505"]]
1031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1032
+  (0.0ms) SAVEPOINT active_record_1
1033
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:03:39.590931"], ["funds", -1], ["updated_at", "2015-06-22 04:03:39.590931"]]
1034
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1035
+  (0.0ms) SAVEPOINT active_record_1
1036
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:03:39.592042"], ["updated_at", "2015-06-22 04:03:39.592042"]]
1037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1038
+  (0.1ms) rollback transaction
1039
+  (0.0ms) begin transaction
1040
+ ----------------------------------------
1041
+ ActsAsIntegerInfinitableTest: test_truth
1042
+ ----------------------------------------
1043
+  (0.0ms) rollback transaction
1044
+  (0.0ms) begin transaction
1045
+ -----------------------------------------------------------
1046
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
1047
+ -----------------------------------------------------------
1048
+  (0.1ms) SAVEPOINT active_record_1
1049
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:03:39.596487"], ["movements_available", -1], ["updated_at", "2015-06-22 04:03:39.596487"]]
1050
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1051
+  (0.1ms) rollback transaction
1052
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1053
+  (0.1ms) begin transaction
1054
+ ---------------------------------------------------------------------------
1055
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
1056
+ ---------------------------------------------------------------------------
1057
+  (0.1ms) SAVEPOINT active_record_1
1058
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:03:54.736152"], ["duration", 5], ["updated_at", "2015-06-22 04:03:54.736152"]]
1059
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1060
+ Subscription Load (0.2ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1061
+  (0.1ms) rollback transaction
1062
+  (0.0ms) begin transaction
1063
+ ---------------------------------------------------------------------------------------------------------
1064
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
1065
+ ---------------------------------------------------------------------------------------------------------
1066
+  (0.0ms) SAVEPOINT active_record_1
1067
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:03:54.744401"], ["updated_at", "2015-06-22 04:03:54.744401"]]
1068
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1069
+  (0.0ms) SAVEPOINT active_record_1
1070
+ SQL (0.2ms) UPDATE "subscriptions" SET "duration" = ?, "updated_at" = ? WHERE "subscriptions"."id" = 1 [["duration", -1], ["updated_at", "2015-06-22 04:03:54.745545"]]
1071
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1072
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1073
+  (0.1ms) rollback transaction
1074
+  (0.1ms) begin transaction
1075
+ ---------------------------------------------------------------------------------
1076
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
1077
+ ---------------------------------------------------------------------------------
1078
+  (0.0ms) SAVEPOINT active_record_1
1079
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:03:54.748223"], ["duration", -1], ["updated_at", "2015-06-22 04:03:54.748223"]]
1080
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1081
+  (0.1ms) rollback transaction
1082
+  (0.0ms) begin transaction
1083
+ -------------------------------------------------------------------------------------------------
1084
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
1085
+ -------------------------------------------------------------------------------------------------
1086
+  (0.0ms) SAVEPOINT active_record_1
1087
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:03:54.749713"], ["duration", -1], ["updated_at", "2015-06-22 04:03:54.749713"]]
1088
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1089
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1090
+  (0.1ms) rollback transaction
1091
+  (0.0ms) begin transaction
1092
+ -------------------------------------------------------------------------
1093
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
1094
+ -------------------------------------------------------------------------
1095
+  (0.0ms) SAVEPOINT active_record_1
1096
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:03:54.753428"], ["funds", 0], ["updated_at", "2015-06-22 04:03:54.753428"]]
1097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1098
+  (0.0ms) SAVEPOINT active_record_1
1099
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:03:54.756908"], ["funds", -1], ["updated_at", "2015-06-22 04:03:54.756908"]]
1100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1101
+  (0.0ms) SAVEPOINT active_record_1
1102
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:03:54.757917"], ["updated_at", "2015-06-22 04:03:54.757917"]]
1103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1104
+  (0.1ms) rollback transaction
1105
+  (0.1ms) begin transaction
1106
+ ----------------------------------------
1107
+ ActsAsIntegerInfinitableTest: test_truth
1108
+ ----------------------------------------
1109
+  (0.0ms) rollback transaction
1110
+  (0.0ms) begin transaction
1111
+ -----------------------------------------------------------
1112
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
1113
+ -----------------------------------------------------------
1114
+  (0.0ms) SAVEPOINT active_record_1
1115
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:03:54.761468"], ["movements_available", -1], ["updated_at", "2015-06-22 04:03:54.761468"]]
1116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1117
+  (0.1ms) rollback transaction
1118
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1119
+  (0.1ms) begin transaction
1120
+ ---------------------------------------------------------------------------
1121
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
1122
+ ---------------------------------------------------------------------------
1123
+  (0.0ms) SAVEPOINT active_record_1
1124
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:04:08.294741"], ["duration", 5], ["updated_at", "2015-06-22 04:04:08.294741"]]
1125
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1126
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1127
+  (0.1ms) rollback transaction
1128
+  (0.0ms) begin transaction
1129
+ ---------------------------------------------------------------------------------------------------------
1130
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
1131
+ ---------------------------------------------------------------------------------------------------------
1132
+  (0.0ms) SAVEPOINT active_record_1
1133
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:04:08.303168"], ["updated_at", "2015-06-22 04:04:08.303168"]]
1134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1135
+  (0.0ms) SAVEPOINT active_record_1
1136
+ SQL (0.2ms) UPDATE "subscriptions" SET "duration" = ?, "updated_at" = ? WHERE "subscriptions"."id" = 1 [["duration", -1], ["updated_at", "2015-06-22 04:04:08.304291"]]
1137
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1138
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1139
+  (0.1ms) rollback transaction
1140
+  (0.0ms) begin transaction
1141
+ ---------------------------------------------------------------------------------
1142
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
1143
+ ---------------------------------------------------------------------------------
1144
+  (0.0ms) SAVEPOINT active_record_1
1145
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:04:08.306926"], ["duration", -1], ["updated_at", "2015-06-22 04:04:08.306926"]]
1146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1147
+  (0.1ms) rollback transaction
1148
+  (0.0ms) begin transaction
1149
+ -------------------------------------------------------------------------------------------------
1150
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
1151
+ -------------------------------------------------------------------------------------------------
1152
+  (0.0ms) SAVEPOINT active_record_1
1153
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:04:08.308431"], ["duration", -1], ["updated_at", "2015-06-22 04:04:08.308431"]]
1154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1155
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1156
+  (0.1ms) rollback transaction
1157
+  (0.1ms) begin transaction
1158
+ -------------------------------------------------------------------------
1159
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
1160
+ -------------------------------------------------------------------------
1161
+  (0.0ms) SAVEPOINT active_record_1
1162
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:04:08.312044"], ["funds", 0], ["updated_at", "2015-06-22 04:04:08.312044"]]
1163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1164
+  (0.0ms) SAVEPOINT active_record_1
1165
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:04:08.315467"], ["funds", -1], ["updated_at", "2015-06-22 04:04:08.315467"]]
1166
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1167
+  (0.0ms) SAVEPOINT active_record_1
1168
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:04:08.316644"], ["updated_at", "2015-06-22 04:04:08.316644"]]
1169
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1170
+  (0.1ms) rollback transaction
1171
+  (0.1ms) begin transaction
1172
+ ----------------------------------------
1173
+ ActsAsIntegerInfinitableTest: test_truth
1174
+ ----------------------------------------
1175
+  (0.1ms) rollback transaction
1176
+  (0.0ms) begin transaction
1177
+ -----------------------------------------------------------
1178
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
1179
+ -----------------------------------------------------------
1180
+  (0.0ms) SAVEPOINT active_record_1
1181
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:04:08.320360"], ["movements_available", -1], ["updated_at", "2015-06-22 04:04:08.320360"]]
1182
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1183
+  (0.1ms) rollback transaction
1184
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1185
+  (0.1ms) begin transaction
1186
+ ---------------------------------------------------------------------------
1187
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
1188
+ ---------------------------------------------------------------------------
1189
+  (0.0ms) SAVEPOINT active_record_1
1190
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:09:43.999551"], ["duration", 5], ["updated_at", "2015-06-22 04:09:43.999551"]]
1191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1192
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1193
+  (0.1ms) rollback transaction
1194
+  (0.0ms) begin transaction
1195
+ ---------------------------------------------------------------------------------------------------------
1196
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
1197
+ ---------------------------------------------------------------------------------------------------------
1198
+  (0.0ms) SAVEPOINT active_record_1
1199
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:09:44.007627"], ["updated_at", "2015-06-22 04:09:44.007627"]]
1200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1201
+  (0.0ms) SAVEPOINT active_record_1
1202
+ SQL (0.2ms) UPDATE "subscriptions" SET "duration" = ?, "updated_at" = ? WHERE "subscriptions"."id" = 1 [["duration", -1], ["updated_at", "2015-06-22 04:09:44.008775"]]
1203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1204
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1205
+  (0.1ms) rollback transaction
1206
+  (0.0ms) begin transaction
1207
+ ---------------------------------------------------------------------------------
1208
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
1209
+ ---------------------------------------------------------------------------------
1210
+  (0.1ms) SAVEPOINT active_record_1
1211
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:09:44.011406"], ["duration", -1], ["updated_at", "2015-06-22 04:09:44.011406"]]
1212
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1213
+  (0.1ms) rollback transaction
1214
+  (0.0ms) begin transaction
1215
+ -------------------------------------------------------------------------------------------------
1216
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
1217
+ -------------------------------------------------------------------------------------------------
1218
+  (0.0ms) SAVEPOINT active_record_1
1219
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:09:44.012982"], ["duration", -1], ["updated_at", "2015-06-22 04:09:44.012982"]]
1220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1221
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1222
+  (0.1ms) rollback transaction
1223
+  (0.0ms) begin transaction
1224
+ -------------------------------------------------------------------------
1225
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
1226
+ -------------------------------------------------------------------------
1227
+  (0.0ms) SAVEPOINT active_record_1
1228
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:09:44.016687"], ["funds", 0], ["updated_at", "2015-06-22 04:09:44.016687"]]
1229
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1230
+  (0.1ms) SAVEPOINT active_record_1
1231
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:09:44.020120"], ["funds", -1], ["updated_at", "2015-06-22 04:09:44.020120"]]
1232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1233
+  (0.0ms) SAVEPOINT active_record_1
1234
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:09:44.021160"], ["updated_at", "2015-06-22 04:09:44.021160"]]
1235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1236
+  (0.2ms) rollback transaction
1237
+  (0.0ms) begin transaction
1238
+ ----------------------------------------
1239
+ ActsAsIntegerInfinitableTest: test_truth
1240
+ ----------------------------------------
1241
+  (0.0ms) rollback transaction
1242
+  (0.0ms) begin transaction
1243
+ -----------------------------------------------------------
1244
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
1245
+ -----------------------------------------------------------
1246
+  (0.0ms) SAVEPOINT active_record_1
1247
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:09:44.024785"], ["movements_available", -1], ["updated_at", "2015-06-22 04:09:44.024785"]]
1248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1249
+  (0.1ms) rollback transaction
1250
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1251
+  (0.1ms) begin transaction
1252
+ ---------------------------------------------------------------------------
1253
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
1254
+ ---------------------------------------------------------------------------
1255
+  (0.0ms) rollback transaction
1256
+  (0.0ms) begin transaction
1257
+ ------------------------------------------------------------
1258
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
1259
+ ------------------------------------------------------------
1260
+  (0.0ms) rollback transaction
1261
+  (0.0ms) begin transaction
1262
+ ---------------------------------------------------------------------------------------------------------
1263
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
1264
+ ---------------------------------------------------------------------------------------------------------
1265
+  (0.0ms) rollback transaction
1266
+  (0.0ms) begin transaction
1267
+ ---------------------------------------------------------------------------------
1268
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
1269
+ ---------------------------------------------------------------------------------
1270
+  (0.0ms) rollback transaction
1271
+  (0.0ms) begin transaction
1272
+ -------------------------------------------------------------------------------------------------
1273
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
1274
+ -------------------------------------------------------------------------------------------------
1275
+  (0.0ms) rollback transaction
1276
+  (0.0ms) begin transaction
1277
+ -------------------------------------------------------------------------
1278
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
1279
+ -------------------------------------------------------------------------
1280
+  (0.0ms) SAVEPOINT active_record_1
1281
+ SQL (0.3ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:43:22.770591"], ["funds", 0], ["updated_at", "2015-06-22 04:43:22.770591"]]
1282
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1283
+  (0.0ms) SAVEPOINT active_record_1
1284
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:43:22.776315"], ["funds", -1], ["updated_at", "2015-06-22 04:43:22.776315"]]
1285
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1286
+  (0.0ms) SAVEPOINT active_record_1
1287
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:43:22.777368"], ["updated_at", "2015-06-22 04:43:22.777368"]]
1288
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1289
+  (0.1ms) rollback transaction
1290
+  (0.0ms) begin transaction
1291
+ -----------------------------------------------------------------------------
1292
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
1293
+ -----------------------------------------------------------------------------
1294
+  (0.0ms) rollback transaction
1295
+  (0.0ms) begin transaction
1296
+ ----------------------------------------
1297
+ ActsAsIntegerInfinitableTest: test_truth
1298
+ ----------------------------------------
1299
+  (0.0ms) rollback transaction
1300
+  (0.0ms) begin transaction
1301
+ -----------------------------------------------------------
1302
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
1303
+ -----------------------------------------------------------
1304
+  (0.0ms) SAVEPOINT active_record_1
1305
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:43:22.781618"], ["movements_available", -1], ["updated_at", "2015-06-22 04:43:22.781618"]]
1306
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1307
+  (0.1ms) rollback transaction
1308
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1309
+  (91.9ms) CREATE TABLE "library_subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "available_books" integer, "created_at" datetime, "updated_at" datetime) 
1310
+  (75.3ms) CREATE TABLE "people" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "funds" integer, "created_at" datetime, "updated_at" datetime)
1311
+  (90.9ms) CREATE TABLE "tireless_warriors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "movements_available" integer, "attacks_available" integer, "created_at" datetime, "updated_at" datetime) 
1312
+  (157.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1313
+  (0.3ms) select sqlite_version(*)
1314
+  (174.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1315
+  (0.2ms) SELECT version FROM "schema_migrations"
1316
+  (191.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150622044503')
1317
+  (158.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150622001416')
1318
+  (184.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150622044418')
1319
+  (175.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150621232010')
1320
+  (242.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150622035909')
1321
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1322
+  (0.1ms) begin transaction
1323
+ ---------------------------------------------------------------------------
1324
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
1325
+ ---------------------------------------------------------------------------
1326
+  (0.1ms) SAVEPOINT active_record_1
1327
+ SQL (1.0ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:45:48.930842"], ["updated_at", "2015-06-22 04:45:48.930842"]]
1328
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1329
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1330
+  (0.2ms) rollback transaction
1331
+  (0.1ms) begin transaction
1332
+ ------------------------------------------------------------
1333
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
1334
+ ------------------------------------------------------------
1335
+  (0.1ms) SAVEPOINT active_record_1
1336
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:45:48.941294"], ["updated_at", "2015-06-22 04:45:48.941294"]]
1337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1338
+  (0.1ms) rollback transaction
1339
+  (0.0ms) begin transaction
1340
+ ---------------------------------------------------------------------------------------------------------
1341
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
1342
+ ---------------------------------------------------------------------------------------------------------
1343
+  (0.1ms) SAVEPOINT active_record_1
1344
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:45:48.943552"], ["updated_at", "2015-06-22 04:45:48.943552"]]
1345
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1346
+  (0.0ms) SAVEPOINT active_record_1
1347
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 04:45:48.944947"]]
1348
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1349
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1350
+  (0.2ms) rollback transaction
1351
+  (0.1ms) begin transaction
1352
+ ---------------------------------------------------------------------------------
1353
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
1354
+ ---------------------------------------------------------------------------------
1355
+  (0.1ms) SAVEPOINT active_record_1
1356
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:45:48.948703"], ["updated_at", "2015-06-22 04:45:48.948703"]]
1357
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1358
+  (0.2ms) rollback transaction
1359
+  (0.1ms) begin transaction
1360
+ -------------------------------------------------------------------------------------------------
1361
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
1362
+ -------------------------------------------------------------------------------------------------
1363
+  (0.1ms) SAVEPOINT active_record_1
1364
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:45:48.950785"], ["updated_at", "2015-06-22 04:45:48.950785"]]
1365
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1366
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1367
+  (0.1ms) rollback transaction
1368
+  (0.1ms) begin transaction
1369
+ -------------------------------------------------------------------------
1370
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
1371
+ -------------------------------------------------------------------------
1372
+  (0.1ms) SAVEPOINT active_record_1
1373
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:45:48.955735"], ["funds", 0], ["updated_at", "2015-06-22 04:45:48.955735"]]
1374
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1375
+  (0.1ms) SAVEPOINT active_record_1
1376
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:45:48.960588"], ["funds", -1], ["updated_at", "2015-06-22 04:45:48.960588"]]
1377
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1378
+  (0.0ms) SAVEPOINT active_record_1
1379
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:45:48.962046"], ["updated_at", "2015-06-22 04:45:48.962046"]]
1380
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1381
+  (0.1ms) rollback transaction
1382
+  (0.1ms) begin transaction
1383
+ -----------------------------------------------------------------------------
1384
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
1385
+ -----------------------------------------------------------------------------
1386
+  (0.1ms) SAVEPOINT active_record_1
1387
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:45:48.964353"], ["updated_at", "2015-06-22 04:45:48.964353"]]
1388
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1389
+  (0.1ms) rollback transaction
1390
+  (0.1ms) begin transaction
1391
+ ----------------------------------------
1392
+ ActsAsIntegerInfinitableTest: test_truth
1393
+ ----------------------------------------
1394
+  (0.0ms) rollback transaction
1395
+  (0.1ms) begin transaction
1396
+ -----------------------------------------------------------
1397
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
1398
+ -----------------------------------------------------------
1399
+  (0.1ms) SAVEPOINT active_record_1
1400
+ SQL (0.3ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:45:48.969593"], ["movements_available", -1], ["updated_at", "2015-06-22 04:45:48.969593"]]
1401
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1402
+  (0.1ms) rollback transaction
1403
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1404
+  (0.1ms) begin transaction
1405
+ ---------------------------------------------------------------------------
1406
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
1407
+ ---------------------------------------------------------------------------
1408
+  (0.1ms) rollback transaction
1409
+  (0.0ms) begin transaction
1410
+ ------------------------------------------------------------
1411
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
1412
+ ------------------------------------------------------------
1413
+  (0.0ms) rollback transaction
1414
+  (0.0ms) begin transaction
1415
+ ---------------------------------------------------------------------------------------------------------
1416
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
1417
+ ---------------------------------------------------------------------------------------------------------
1418
+  (0.0ms) rollback transaction
1419
+  (0.0ms) begin transaction
1420
+ ---------------------------------------------------------------------------------
1421
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
1422
+ ---------------------------------------------------------------------------------
1423
+  (0.0ms) rollback transaction
1424
+  (0.0ms) begin transaction
1425
+ -------------------------------------------------------------------------------------------------
1426
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
1427
+ -------------------------------------------------------------------------------------------------
1428
+  (0.0ms) rollback transaction
1429
+  (0.0ms) begin transaction
1430
+ -------------------------------------------------------------------------
1431
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
1432
+ -------------------------------------------------------------------------
1433
+  (0.0ms) SAVEPOINT active_record_1
1434
+ SQL (0.3ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:46:59.951002"], ["funds", 0], ["updated_at", "2015-06-22 04:46:59.951002"]]
1435
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1436
+  (0.0ms) SAVEPOINT active_record_1
1437
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:46:59.956812"], ["funds", -1], ["updated_at", "2015-06-22 04:46:59.956812"]]
1438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1439
+  (0.0ms) SAVEPOINT active_record_1
1440
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:46:59.957866"], ["updated_at", "2015-06-22 04:46:59.957866"]]
1441
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1442
+  (0.1ms) rollback transaction
1443
+  (0.0ms) begin transaction
1444
+ -----------------------------------------------------------------------------
1445
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
1446
+ -----------------------------------------------------------------------------
1447
+  (0.0ms) rollback transaction
1448
+  (0.0ms) begin transaction
1449
+ ----------------------------------------
1450
+ ActsAsIntegerInfinitableTest: test_truth
1451
+ ----------------------------------------
1452
+  (0.0ms) rollback transaction
1453
+  (0.0ms) begin transaction
1454
+ -----------------------------------------------------------
1455
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
1456
+ -----------------------------------------------------------
1457
+  (0.0ms) SAVEPOINT active_record_1
1458
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:46:59.962837"], ["movements_available", -1], ["updated_at", "2015-06-22 04:46:59.962837"]]
1459
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1460
+  (0.1ms) rollback transaction
1461
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1462
+  (0.1ms) begin transaction
1463
+ ---------------------------------------------------------------------------
1464
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
1465
+ ---------------------------------------------------------------------------
1466
+  (0.1ms) SAVEPOINT active_record_1
1467
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:47:18.887298"], ["updated_at", "2015-06-22 04:47:18.887298"]]
1468
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1469
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1470
+  (0.1ms) rollback transaction
1471
+  (0.1ms) begin transaction
1472
+ ------------------------------------------------------------
1473
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
1474
+ ------------------------------------------------------------
1475
+  (0.0ms) SAVEPOINT active_record_1
1476
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:47:18.896648"], ["updated_at", "2015-06-22 04:47:18.896648"]]
1477
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1478
+  (0.1ms) rollback transaction
1479
+  (0.1ms) begin transaction
1480
+ ---------------------------------------------------------------------------------------------------------
1481
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
1482
+ ---------------------------------------------------------------------------------------------------------
1483
+  (0.1ms) SAVEPOINT active_record_1
1484
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:47:18.898839"], ["updated_at", "2015-06-22 04:47:18.898839"]]
1485
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1486
+  (0.0ms) SAVEPOINT active_record_1
1487
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 04:47:18.900162"]]
1488
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1489
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1490
+  (0.2ms) rollback transaction
1491
+  (0.1ms) begin transaction
1492
+ ---------------------------------------------------------------------------------
1493
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
1494
+ ---------------------------------------------------------------------------------
1495
+  (0.0ms) SAVEPOINT active_record_1
1496
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:47:18.903410"], ["updated_at", "2015-06-22 04:47:18.903410"]]
1497
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1498
+  (0.1ms) rollback transaction
1499
+  (0.1ms) begin transaction
1500
+ -------------------------------------------------------------------------------------------------
1501
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
1502
+ -------------------------------------------------------------------------------------------------
1503
+  (0.0ms) SAVEPOINT active_record_1
1504
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:47:18.905379"], ["updated_at", "2015-06-22 04:47:18.905379"]]
1505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1506
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1507
+  (0.1ms) rollback transaction
1508
+  (0.0ms) begin transaction
1509
+ -------------------------------------------------------------------------
1510
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
1511
+ -------------------------------------------------------------------------
1512
+  (0.1ms) SAVEPOINT active_record_1
1513
+ SQL (0.3ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:47:18.909972"], ["funds", 0], ["updated_at", "2015-06-22 04:47:18.909972"]]
1514
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1515
+  (0.0ms) SAVEPOINT active_record_1
1516
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:47:18.914681"], ["funds", -1], ["updated_at", "2015-06-22 04:47:18.914681"]]
1517
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1518
+  (0.0ms) SAVEPOINT active_record_1
1519
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:47:18.916035"], ["updated_at", "2015-06-22 04:47:18.916035"]]
1520
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1521
+  (0.1ms) rollback transaction
1522
+  (0.1ms) begin transaction
1523
+ -----------------------------------------------------------------------------
1524
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
1525
+ -----------------------------------------------------------------------------
1526
+  (0.0ms) SAVEPOINT active_record_1
1527
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:47:18.918165"], ["updated_at", "2015-06-22 04:47:18.918165"]]
1528
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1529
+  (0.1ms) rollback transaction
1530
+  (0.1ms) begin transaction
1531
+ ----------------------------------------
1532
+ ActsAsIntegerInfinitableTest: test_truth
1533
+ ----------------------------------------
1534
+  (0.1ms) rollback transaction
1535
+  (0.0ms) begin transaction
1536
+ -----------------------------------------------------------
1537
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
1538
+ -----------------------------------------------------------
1539
+  (0.1ms) SAVEPOINT active_record_1
1540
+ SQL (0.3ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:47:18.923400"], ["movements_available", -1], ["updated_at", "2015-06-22 04:47:18.923400"]]
1541
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1542
+  (0.1ms) rollback transaction
1543
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1544
+  (0.1ms) begin transaction
1545
+ ---------------------------------------------------------------------------
1546
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
1547
+ ---------------------------------------------------------------------------
1548
+  (0.0ms) SAVEPOINT active_record_1
1549
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:51:50.885616"], ["updated_at", "2015-06-22 04:51:50.885616"]]
1550
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1551
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1552
+  (0.1ms) rollback transaction
1553
+  (0.0ms) begin transaction
1554
+ ------------------------------------------------------------
1555
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
1556
+ ------------------------------------------------------------
1557
+  (0.0ms) SAVEPOINT active_record_1
1558
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:51:50.893546"], ["updated_at", "2015-06-22 04:51:50.893546"]]
1559
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1560
+  (0.1ms) rollback transaction
1561
+  (0.0ms) begin transaction
1562
+ ---------------------------------------------------------------------------------------------------------
1563
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
1564
+ ---------------------------------------------------------------------------------------------------------
1565
+  (0.0ms) SAVEPOINT active_record_1
1566
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:51:50.895111"], ["updated_at", "2015-06-22 04:51:50.895111"]]
1567
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1568
+  (0.0ms) SAVEPOINT active_record_1
1569
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 04:51:50.896071"]]
1570
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1571
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1572
+  (0.1ms) rollback transaction
1573
+  (0.0ms) begin transaction
1574
+ ---------------------------------------------------------------------------------
1575
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
1576
+ ---------------------------------------------------------------------------------
1577
+  (0.1ms) SAVEPOINT active_record_1
1578
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:51:50.898707"], ["updated_at", "2015-06-22 04:51:50.898707"]]
1579
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1580
+  (0.1ms) rollback transaction
1581
+  (0.0ms) begin transaction
1582
+ -------------------------------------------------------------------------------------------------
1583
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
1584
+ -------------------------------------------------------------------------------------------------
1585
+  (0.0ms) SAVEPOINT active_record_1
1586
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:51:50.900152"], ["updated_at", "2015-06-22 04:51:50.900152"]]
1587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1588
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1589
+  (0.1ms) rollback transaction
1590
+  (0.0ms) begin transaction
1591
+ -------------------------------------------------------------------------
1592
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
1593
+ -------------------------------------------------------------------------
1594
+  (0.0ms) SAVEPOINT active_record_1
1595
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:51:50.903754"], ["funds", 0], ["updated_at", "2015-06-22 04:51:50.903754"]]
1596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1597
+  (0.0ms) SAVEPOINT active_record_1
1598
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:51:50.907848"], ["funds", -1], ["updated_at", "2015-06-22 04:51:50.907848"]]
1599
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1600
+  (0.0ms) SAVEPOINT active_record_1
1601
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:51:50.908840"], ["updated_at", "2015-06-22 04:51:50.908840"]]
1602
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1603
+  (0.1ms) rollback transaction
1604
+  (0.0ms) begin transaction
1605
+ -----------------------------------------------------------------------------
1606
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
1607
+ -----------------------------------------------------------------------------
1608
+  (0.0ms) SAVEPOINT active_record_1
1609
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:51:50.910418"], ["updated_at", "2015-06-22 04:51:50.910418"]]
1610
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1611
+  (0.1ms) rollback transaction
1612
+  (0.0ms) begin transaction
1613
+ ----------------------------------------
1614
+ ActsAsIntegerInfinitableTest: test_truth
1615
+ ----------------------------------------
1616
+  (0.0ms) rollback transaction
1617
+  (0.0ms) begin transaction
1618
+ -----------------------------------------------------------
1619
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
1620
+ -----------------------------------------------------------
1621
+  (0.0ms) SAVEPOINT active_record_1
1622
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:51:50.914061"], ["movements_available", -1], ["updated_at", "2015-06-22 04:51:50.914061"]]
1623
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1624
+  (0.1ms) rollback transaction
1625
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1626
+  (0.1ms) begin transaction
1627
+ ---------------------------------------------------------------------------
1628
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
1629
+ ---------------------------------------------------------------------------
1630
+  (0.0ms) SAVEPOINT active_record_1
1631
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:52:09.108658"], ["updated_at", "2015-06-22 04:52:09.108658"]]
1632
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1633
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1634
+  (0.1ms) rollback transaction
1635
+  (0.0ms) begin transaction
1636
+ ------------------------------------------------------------
1637
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
1638
+ ------------------------------------------------------------
1639
+  (0.0ms) SAVEPOINT active_record_1
1640
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:52:09.117075"], ["updated_at", "2015-06-22 04:52:09.117075"]]
1641
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1642
+  (0.1ms) rollback transaction
1643
+  (0.0ms) begin transaction
1644
+ ---------------------------------------------------------------------------------------------------------
1645
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
1646
+ ---------------------------------------------------------------------------------------------------------
1647
+  (0.0ms) SAVEPOINT active_record_1
1648
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:52:09.118839"], ["updated_at", "2015-06-22 04:52:09.118839"]]
1649
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1650
+  (0.0ms) SAVEPOINT active_record_1
1651
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 04:52:09.119888"]]
1652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1653
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1654
+  (0.1ms) rollback transaction
1655
+  (0.0ms) begin transaction
1656
+ ---------------------------------------------------------------------------------
1657
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
1658
+ ---------------------------------------------------------------------------------
1659
+  (0.0ms) SAVEPOINT active_record_1
1660
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:52:09.122653"], ["updated_at", "2015-06-22 04:52:09.122653"]]
1661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1662
+  (0.1ms) rollback transaction
1663
+  (0.0ms) begin transaction
1664
+ -------------------------------------------------------------------------------------------------
1665
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
1666
+ -------------------------------------------------------------------------------------------------
1667
+  (0.0ms) SAVEPOINT active_record_1
1668
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:52:09.124284"], ["updated_at", "2015-06-22 04:52:09.124284"]]
1669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1670
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1671
+  (0.1ms) rollback transaction
1672
+  (0.0ms) begin transaction
1673
+ -------------------------------------------------------------------------
1674
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
1675
+ -------------------------------------------------------------------------
1676
+  (0.0ms) SAVEPOINT active_record_1
1677
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:52:09.128066"], ["funds", 0], ["updated_at", "2015-06-22 04:52:09.128066"]]
1678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1679
+  (0.0ms) SAVEPOINT active_record_1
1680
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:52:09.131813"], ["funds", -1], ["updated_at", "2015-06-22 04:52:09.131813"]]
1681
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1682
+  (0.0ms) SAVEPOINT active_record_1
1683
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:52:09.132951"], ["updated_at", "2015-06-22 04:52:09.132951"]]
1684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1685
+  (0.1ms) rollback transaction
1686
+  (0.0ms) begin transaction
1687
+ -----------------------------------------------------------------------------
1688
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
1689
+ -----------------------------------------------------------------------------
1690
+  (0.0ms) SAVEPOINT active_record_1
1691
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:52:09.134790"], ["updated_at", "2015-06-22 04:52:09.134790"]]
1692
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1693
+  (0.1ms) rollback transaction
1694
+  (0.0ms) begin transaction
1695
+ ----------------------------------------
1696
+ ActsAsIntegerInfinitableTest: test_truth
1697
+ ----------------------------------------
1698
+  (0.0ms) rollback transaction
1699
+  (0.0ms) begin transaction
1700
+ -----------------------------------------------------------
1701
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
1702
+ -----------------------------------------------------------
1703
+  (0.1ms) SAVEPOINT active_record_1
1704
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:52:09.138857"], ["movements_available", -1], ["updated_at", "2015-06-22 04:52:09.138857"]]
1705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1706
+  (0.1ms) rollback transaction
1707
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1708
+  (0.1ms) begin transaction
1709
+ ---------------------------------------------------------------------------
1710
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
1711
+ ---------------------------------------------------------------------------
1712
+  (0.0ms) SAVEPOINT active_record_1
1713
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:52:53.640905"], ["updated_at", "2015-06-22 04:52:53.640905"]]
1714
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1715
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1716
+  (0.1ms) rollback transaction
1717
+  (0.0ms) begin transaction
1718
+ ------------------------------------------------------------
1719
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
1720
+ ------------------------------------------------------------
1721
+  (0.0ms) SAVEPOINT active_record_1
1722
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:52:53.648820"], ["updated_at", "2015-06-22 04:52:53.648820"]]
1723
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1724
+  (0.0ms) SAVEPOINT active_record_1
1725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1726
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1727
+  (0.1ms) rollback transaction
1728
+  (0.0ms) begin transaction
1729
+ ---------------------------------------------------------------------------------------------------------
1730
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
1731
+ ---------------------------------------------------------------------------------------------------------
1732
+  (0.0ms) SAVEPOINT active_record_1
1733
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:52:53.651485"], ["updated_at", "2015-06-22 04:52:53.651485"]]
1734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1735
+  (0.0ms) SAVEPOINT active_record_1
1736
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 04:52:53.652500"]]
1737
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1738
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1739
+  (0.1ms) rollback transaction
1740
+  (0.0ms) begin transaction
1741
+ ---------------------------------------------------------------------------------
1742
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
1743
+ ---------------------------------------------------------------------------------
1744
+  (0.0ms) SAVEPOINT active_record_1
1745
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:52:53.655216"], ["updated_at", "2015-06-22 04:52:53.655216"]]
1746
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1747
+  (0.1ms) rollback transaction
1748
+  (0.0ms) begin transaction
1749
+ -------------------------------------------------------------------------------------------------
1750
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
1751
+ -------------------------------------------------------------------------------------------------
1752
+  (0.0ms) SAVEPOINT active_record_1
1753
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:52:53.656662"], ["updated_at", "2015-06-22 04:52:53.656662"]]
1754
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1755
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1756
+  (0.1ms) rollback transaction
1757
+  (0.0ms) begin transaction
1758
+ -------------------------------------------------------------------------
1759
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
1760
+ -------------------------------------------------------------------------
1761
+  (0.0ms) SAVEPOINT active_record_1
1762
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:52:53.660366"], ["funds", 0], ["updated_at", "2015-06-22 04:52:53.660366"]]
1763
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1764
+  (0.1ms) SAVEPOINT active_record_1
1765
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:52:53.664098"], ["funds", -1], ["updated_at", "2015-06-22 04:52:53.664098"]]
1766
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1767
+  (0.0ms) SAVEPOINT active_record_1
1768
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:52:53.665176"], ["updated_at", "2015-06-22 04:52:53.665176"]]
1769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1770
+  (0.1ms) rollback transaction
1771
+  (0.0ms) begin transaction
1772
+ -----------------------------------------------------------------------------
1773
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
1774
+ -----------------------------------------------------------------------------
1775
+  (0.1ms) SAVEPOINT active_record_1
1776
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:52:53.666794"], ["updated_at", "2015-06-22 04:52:53.666794"]]
1777
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1778
+  (0.0ms) SAVEPOINT active_record_1
1779
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1780
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1781
+  (0.1ms) rollback transaction
1782
+  (0.0ms) begin transaction
1783
+ ----------------------------------------
1784
+ ActsAsIntegerInfinitableTest: test_truth
1785
+ ----------------------------------------
1786
+  (0.0ms) rollback transaction
1787
+  (0.0ms) begin transaction
1788
+ -----------------------------------------------------------
1789
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
1790
+ -----------------------------------------------------------
1791
+  (0.0ms) SAVEPOINT active_record_1
1792
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:52:53.671431"], ["movements_available", -1], ["updated_at", "2015-06-22 04:52:53.671431"]]
1793
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1794
+  (0.1ms) rollback transaction
1795
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1796
+  (0.1ms) begin transaction
1797
+ ---------------------------------------------------------------------------
1798
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
1799
+ ---------------------------------------------------------------------------
1800
+  (0.0ms) SAVEPOINT active_record_1
1801
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:53:58.471824"], ["updated_at", "2015-06-22 04:53:58.471824"]]
1802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1803
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1804
+  (0.1ms) rollback transaction
1805
+  (0.0ms) begin transaction
1806
+ ------------------------------------------------------------
1807
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
1808
+ ------------------------------------------------------------
1809
+  (0.0ms) SAVEPOINT active_record_1
1810
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:53:58.479792"], ["updated_at", "2015-06-22 04:53:58.479792"]]
1811
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1812
+  (0.0ms) SAVEPOINT active_record_1
1813
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1814
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1815
+  (0.1ms) rollback transaction
1816
+  (0.1ms) begin transaction
1817
+ ---------------------------------------------------------------------------------------------------------
1818
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
1819
+ ---------------------------------------------------------------------------------------------------------
1820
+  (0.0ms) SAVEPOINT active_record_1
1821
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:53:58.482449"], ["updated_at", "2015-06-22 04:53:58.482449"]]
1822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1823
+  (0.0ms) SAVEPOINT active_record_1
1824
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 04:53:58.483482"]]
1825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1826
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1827
+  (0.1ms) rollback transaction
1828
+  (0.0ms) begin transaction
1829
+ ---------------------------------------------------------------------------------
1830
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
1831
+ ---------------------------------------------------------------------------------
1832
+  (0.0ms) SAVEPOINT active_record_1
1833
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:53:58.486092"], ["updated_at", "2015-06-22 04:53:58.486092"]]
1834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1835
+  (0.1ms) rollback transaction
1836
+  (0.0ms) begin transaction
1837
+ -------------------------------------------------------------------------------------------------
1838
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
1839
+ -------------------------------------------------------------------------------------------------
1840
+  (0.0ms) SAVEPOINT active_record_1
1841
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:53:58.487581"], ["updated_at", "2015-06-22 04:53:58.487581"]]
1842
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1843
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1844
+  (0.1ms) rollback transaction
1845
+  (0.0ms) begin transaction
1846
+ -------------------------------------------------------------------------
1847
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
1848
+ -------------------------------------------------------------------------
1849
+  (0.0ms) SAVEPOINT active_record_1
1850
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:53:58.491204"], ["funds", 0], ["updated_at", "2015-06-22 04:53:58.491204"]]
1851
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1852
+  (0.0ms) SAVEPOINT active_record_1
1853
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:53:58.494615"], ["funds", -1], ["updated_at", "2015-06-22 04:53:58.494615"]]
1854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1855
+  (0.0ms) SAVEPOINT active_record_1
1856
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:53:58.495657"], ["updated_at", "2015-06-22 04:53:58.495657"]]
1857
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1858
+  (0.1ms) rollback transaction
1859
+  (0.0ms) begin transaction
1860
+ -----------------------------------------------------------------------------
1861
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
1862
+ -----------------------------------------------------------------------------
1863
+  (0.0ms) SAVEPOINT active_record_1
1864
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:53:58.497218"], ["updated_at", "2015-06-22 04:53:58.497218"]]
1865
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1866
+  (0.0ms) SAVEPOINT active_record_1
1867
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1868
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1869
+  (0.0ms) SAVEPOINT active_record_1
1870
+ SQL (0.1ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", 5], ["updated_at", "2015-06-22 04:53:58.499109"]]
1871
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1872
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1873
+  (0.1ms) rollback transaction
1874
+  (0.0ms) begin transaction
1875
+ ----------------------------------------
1876
+ ActsAsIntegerInfinitableTest: test_truth
1877
+ ----------------------------------------
1878
+  (0.0ms) rollback transaction
1879
+  (0.0ms) begin transaction
1880
+ -----------------------------------------------------------
1881
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
1882
+ -----------------------------------------------------------
1883
+  (0.0ms) SAVEPOINT active_record_1
1884
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:53:58.503243"], ["movements_available", -1], ["updated_at", "2015-06-22 04:53:58.503243"]]
1885
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1886
+  (0.1ms) rollback transaction
1887
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1888
+  (0.1ms) begin transaction
1889
+ ---------------------------------------------------------------------------
1890
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
1891
+ ---------------------------------------------------------------------------
1892
+  (0.0ms) SAVEPOINT active_record_1
1893
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:54:07.969235"], ["updated_at", "2015-06-22 04:54:07.969235"]]
1894
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1895
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1896
+  (0.1ms) rollback transaction
1897
+  (0.0ms) begin transaction
1898
+ ------------------------------------------------------------
1899
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
1900
+ ------------------------------------------------------------
1901
+  (0.0ms) SAVEPOINT active_record_1
1902
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:54:07.977316"], ["updated_at", "2015-06-22 04:54:07.977316"]]
1903
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1904
+  (0.0ms) SAVEPOINT active_record_1
1905
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1906
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1907
+  (0.1ms) rollback transaction
1908
+  (0.0ms) begin transaction
1909
+ ---------------------------------------------------------------------------------------------------------
1910
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
1911
+ ---------------------------------------------------------------------------------------------------------
1912
+  (0.0ms) SAVEPOINT active_record_1
1913
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:54:07.979883"], ["updated_at", "2015-06-22 04:54:07.979883"]]
1914
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1915
+  (0.0ms) SAVEPOINT active_record_1
1916
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 04:54:07.980857"]]
1917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1918
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1919
+  (0.1ms) rollback transaction
1920
+  (0.0ms) begin transaction
1921
+ ---------------------------------------------------------------------------------
1922
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
1923
+ ---------------------------------------------------------------------------------
1924
+  (0.0ms) SAVEPOINT active_record_1
1925
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:54:07.983484"], ["updated_at", "2015-06-22 04:54:07.983484"]]
1926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1927
+  (0.1ms) rollback transaction
1928
+  (0.0ms) begin transaction
1929
+ -------------------------------------------------------------------------------------------------
1930
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
1931
+ -------------------------------------------------------------------------------------------------
1932
+  (0.0ms) SAVEPOINT active_record_1
1933
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:54:07.985080"], ["updated_at", "2015-06-22 04:54:07.985080"]]
1934
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1935
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1936
+  (0.1ms) rollback transaction
1937
+  (0.0ms) begin transaction
1938
+ -------------------------------------------------------------------------
1939
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
1940
+ -------------------------------------------------------------------------
1941
+  (0.0ms) SAVEPOINT active_record_1
1942
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:54:07.989476"], ["funds", 0], ["updated_at", "2015-06-22 04:54:07.989476"]]
1943
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1944
+  (0.0ms) SAVEPOINT active_record_1
1945
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:54:07.993111"], ["funds", -1], ["updated_at", "2015-06-22 04:54:07.993111"]]
1946
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1947
+  (0.0ms) SAVEPOINT active_record_1
1948
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:54:07.994176"], ["updated_at", "2015-06-22 04:54:07.994176"]]
1949
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1950
+  (0.1ms) rollback transaction
1951
+  (0.0ms) begin transaction
1952
+ -----------------------------------------------------------------------------
1953
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
1954
+ -----------------------------------------------------------------------------
1955
+  (0.0ms) SAVEPOINT active_record_1
1956
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:54:07.995834"], ["updated_at", "2015-06-22 04:54:07.995834"]]
1957
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1958
+  (0.0ms) SAVEPOINT active_record_1
1959
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1960
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1961
+  (0.2ms) rollback transaction
1962
+  (0.0ms) begin transaction
1963
+ ----------------------------------------
1964
+ ActsAsIntegerInfinitableTest: test_truth
1965
+ ----------------------------------------
1966
+  (0.0ms) rollback transaction
1967
+  (0.0ms) begin transaction
1968
+ -----------------------------------------------------------
1969
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
1970
+ -----------------------------------------------------------
1971
+  (0.0ms) SAVEPOINT active_record_1
1972
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:54:08.001036"], ["movements_available", -1], ["updated_at", "2015-06-22 04:54:08.001036"]]
1973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1974
+  (0.1ms) rollback transaction
1975
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1976
+  (0.1ms) begin transaction
1977
+ ---------------------------------------------------------------------------
1978
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
1979
+ ---------------------------------------------------------------------------
1980
+  (0.0ms) SAVEPOINT active_record_1
1981
+ SQL (0.4ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:54:18.669702"], ["updated_at", "2015-06-22 04:54:18.669702"]]
1982
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1983
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1984
+  (0.1ms) rollback transaction
1985
+  (0.0ms) begin transaction
1986
+ ------------------------------------------------------------
1987
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
1988
+ ------------------------------------------------------------
1989
+  (0.0ms) SAVEPOINT active_record_1
1990
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:54:18.679302"], ["updated_at", "2015-06-22 04:54:18.679302"]]
1991
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1992
+  (0.0ms) SAVEPOINT active_record_1
1993
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1994
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
1995
+  (0.1ms) rollback transaction
1996
+  (0.1ms) begin transaction
1997
+ ---------------------------------------------------------------------------------------------------------
1998
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
1999
+ ---------------------------------------------------------------------------------------------------------
2000
+  (0.1ms) SAVEPOINT active_record_1
2001
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:54:18.682482"], ["updated_at", "2015-06-22 04:54:18.682482"]]
2002
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2003
+  (0.0ms) SAVEPOINT active_record_1
2004
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 04:54:18.683772"]]
2005
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2006
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2007
+  (0.1ms) rollback transaction
2008
+  (0.1ms) begin transaction
2009
+ ---------------------------------------------------------------------------------
2010
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
2011
+ ---------------------------------------------------------------------------------
2012
+  (0.0ms) SAVEPOINT active_record_1
2013
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:54:18.687048"], ["updated_at", "2015-06-22 04:54:18.687048"]]
2014
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2015
+  (0.1ms) rollback transaction
2016
+  (0.0ms) begin transaction
2017
+ -------------------------------------------------------------------------------------------------
2018
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
2019
+ -------------------------------------------------------------------------------------------------
2020
+  (0.0ms) SAVEPOINT active_record_1
2021
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:54:18.688983"], ["updated_at", "2015-06-22 04:54:18.688983"]]
2022
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2023
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2024
+  (0.1ms) rollback transaction
2025
+  (0.1ms) begin transaction
2026
+ -------------------------------------------------------------------------
2027
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
2028
+ -------------------------------------------------------------------------
2029
+  (0.0ms) SAVEPOINT active_record_1
2030
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:54:18.693633"], ["funds", 0], ["updated_at", "2015-06-22 04:54:18.693633"]]
2031
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2032
+  (0.0ms) SAVEPOINT active_record_1
2033
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:54:18.697946"], ["funds", -1], ["updated_at", "2015-06-22 04:54:18.697946"]]
2034
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2035
+  (0.0ms) SAVEPOINT active_record_1
2036
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:54:18.699362"], ["updated_at", "2015-06-22 04:54:18.699362"]]
2037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2038
+  (0.2ms) rollback transaction
2039
+  (0.1ms) begin transaction
2040
+ -----------------------------------------------------------------------------
2041
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
2042
+ -----------------------------------------------------------------------------
2043
+  (0.1ms) SAVEPOINT active_record_1
2044
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:54:18.701546"], ["updated_at", "2015-06-22 04:54:18.701546"]]
2045
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2046
+  (0.0ms) SAVEPOINT active_record_1
2047
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2048
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2049
+  (0.1ms) rollback transaction
2050
+  (0.0ms) begin transaction
2051
+ ----------------------------------------
2052
+ ActsAsIntegerInfinitableTest: test_truth
2053
+ ----------------------------------------
2054
+  (0.0ms) rollback transaction
2055
+  (0.0ms) begin transaction
2056
+ -----------------------------------------------------------
2057
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
2058
+ -----------------------------------------------------------
2059
+  (0.1ms) SAVEPOINT active_record_1
2060
+ SQL (0.3ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:54:18.707444"], ["movements_available", -1], ["updated_at", "2015-06-22 04:54:18.707444"]]
2061
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2062
+  (0.1ms) rollback transaction
2063
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
2064
+  (0.1ms) begin transaction
2065
+ ---------------------------------------------------------------------------
2066
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
2067
+ ---------------------------------------------------------------------------
2068
+  (0.1ms) SAVEPOINT active_record_1
2069
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:54:52.332156"], ["updated_at", "2015-06-22 04:54:52.332156"]]
2070
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2071
+ LibrarySubscription Load (0.2ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2072
+  (0.1ms) rollback transaction
2073
+  (0.1ms) begin transaction
2074
+ ------------------------------------------------------------
2075
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
2076
+ ------------------------------------------------------------
2077
+  (0.1ms) SAVEPOINT active_record_1
2078
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:54:52.341460"], ["updated_at", "2015-06-22 04:54:52.341460"]]
2079
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2080
+  (0.0ms) SAVEPOINT active_record_1
2081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2082
+  (0.1ms) rollback transaction
2083
+  (0.0ms) begin transaction
2084
+ ---------------------------------------------------------------------------------------------------------
2085
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
2086
+ ---------------------------------------------------------------------------------------------------------
2087
+  (0.0ms) SAVEPOINT active_record_1
2088
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:54:52.343889"], ["updated_at", "2015-06-22 04:54:52.343889"]]
2089
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2090
+  (0.0ms) SAVEPOINT active_record_1
2091
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 04:54:52.345086"]]
2092
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2093
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2094
+  (0.1ms) rollback transaction
2095
+  (0.1ms) begin transaction
2096
+ ---------------------------------------------------------------------------------
2097
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
2098
+ ---------------------------------------------------------------------------------
2099
+  (0.0ms) SAVEPOINT active_record_1
2100
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:54:52.348501"], ["updated_at", "2015-06-22 04:54:52.348501"]]
2101
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2102
+  (0.1ms) rollback transaction
2103
+  (0.1ms) begin transaction
2104
+ -------------------------------------------------------------------------------------------------
2105
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
2106
+ -------------------------------------------------------------------------------------------------
2107
+  (0.1ms) SAVEPOINT active_record_1
2108
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:54:52.350135"], ["updated_at", "2015-06-22 04:54:52.350135"]]
2109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2110
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2111
+  (0.1ms) rollback transaction
2112
+  (0.0ms) begin transaction
2113
+ -------------------------------------------------------------------------
2114
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
2115
+ -------------------------------------------------------------------------
2116
+  (0.0ms) SAVEPOINT active_record_1
2117
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:54:52.353988"], ["funds", 0], ["updated_at", "2015-06-22 04:54:52.353988"]]
2118
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2119
+  (0.0ms) SAVEPOINT active_record_1
2120
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:54:52.357732"], ["funds", -1], ["updated_at", "2015-06-22 04:54:52.357732"]]
2121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2122
+  (0.0ms) SAVEPOINT active_record_1
2123
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:54:52.358852"], ["updated_at", "2015-06-22 04:54:52.358852"]]
2124
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2125
+  (0.1ms) rollback transaction
2126
+  (0.0ms) begin transaction
2127
+ -----------------------------------------------------------------------------
2128
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
2129
+ -----------------------------------------------------------------------------
2130
+  (0.0ms) SAVEPOINT active_record_1
2131
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:54:52.360594"], ["updated_at", "2015-06-22 04:54:52.360594"]]
2132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2133
+  (0.0ms) SAVEPOINT active_record_1
2134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2135
+  (0.1ms) rollback transaction
2136
+  (0.0ms) begin transaction
2137
+ ----------------------------------------
2138
+ ActsAsIntegerInfinitableTest: test_truth
2139
+ ----------------------------------------
2140
+  (0.0ms) rollback transaction
2141
+  (0.0ms) begin transaction
2142
+ -----------------------------------------------------------
2143
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
2144
+ -----------------------------------------------------------
2145
+  (0.0ms) SAVEPOINT active_record_1
2146
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:54:52.365322"], ["movements_available", -1], ["updated_at", "2015-06-22 04:54:52.365322"]]
2147
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2148
+  (0.1ms) rollback transaction
2149
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2150
+  (0.1ms) begin transaction
2151
+ ---------------------------------------------------------------------------
2152
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
2153
+ ---------------------------------------------------------------------------
2154
+  (0.0ms) SAVEPOINT active_record_1
2155
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:55:32.834713"], ["updated_at", "2015-06-22 04:55:32.834713"]]
2156
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2157
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2158
+  (0.1ms) rollback transaction
2159
+  (0.0ms) begin transaction
2160
+ ------------------------------------------------------------
2161
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
2162
+ ------------------------------------------------------------
2163
+  (0.1ms) SAVEPOINT active_record_1
2164
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:55:32.844000"], ["updated_at", "2015-06-22 04:55:32.844000"]]
2165
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2166
+  (0.0ms) SAVEPOINT active_record_1
2167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2168
+  (0.1ms) rollback transaction
2169
+  (0.0ms) begin transaction
2170
+ ---------------------------------------------------------------------------------------------------------
2171
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
2172
+ ---------------------------------------------------------------------------------------------------------
2173
+  (0.0ms) SAVEPOINT active_record_1
2174
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:55:32.846391"], ["updated_at", "2015-06-22 04:55:32.846391"]]
2175
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2176
+  (0.0ms) SAVEPOINT active_record_1
2177
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 04:55:32.847656"]]
2178
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2179
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2180
+  (0.2ms) rollback transaction
2181
+  (0.1ms) begin transaction
2182
+ ---------------------------------------------------------------------------------
2183
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
2184
+ ---------------------------------------------------------------------------------
2185
+  (0.0ms) SAVEPOINT active_record_1
2186
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:55:32.851089"], ["updated_at", "2015-06-22 04:55:32.851089"]]
2187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2188
+  (0.1ms) rollback transaction
2189
+  (0.1ms) begin transaction
2190
+ -------------------------------------------------------------------------------------------------
2191
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
2192
+ -------------------------------------------------------------------------------------------------
2193
+  (0.0ms) SAVEPOINT active_record_1
2194
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:55:32.853072"], ["updated_at", "2015-06-22 04:55:32.853072"]]
2195
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2196
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2197
+  (0.1ms) rollback transaction
2198
+  (0.0ms) begin transaction
2199
+ -------------------------------------------------------------------------
2200
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
2201
+ -------------------------------------------------------------------------
2202
+  (0.0ms) SAVEPOINT active_record_1
2203
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:55:32.857270"], ["funds", 0], ["updated_at", "2015-06-22 04:55:32.857270"]]
2204
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2205
+  (0.0ms) SAVEPOINT active_record_1
2206
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:55:32.861273"], ["funds", -1], ["updated_at", "2015-06-22 04:55:32.861273"]]
2207
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2208
+  (0.0ms) SAVEPOINT active_record_1
2209
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:55:32.862573"], ["updated_at", "2015-06-22 04:55:32.862573"]]
2210
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2211
+  (0.1ms) rollback transaction
2212
+  (0.0ms) begin transaction
2213
+ -----------------------------------------------------------------------------
2214
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
2215
+ -----------------------------------------------------------------------------
2216
+  (0.1ms) SAVEPOINT active_record_1
2217
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:55:32.864465"], ["updated_at", "2015-06-22 04:55:32.864465"]]
2218
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2219
+  (0.0ms) SAVEPOINT active_record_1
2220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2221
+  (0.1ms) rollback transaction
2222
+  (0.0ms) begin transaction
2223
+ ----------------------------------------
2224
+ ActsAsIntegerInfinitableTest: test_truth
2225
+ ----------------------------------------
2226
+  (0.0ms) rollback transaction
2227
+  (0.0ms) begin transaction
2228
+ -----------------------------------------------------------
2229
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
2230
+ -----------------------------------------------------------
2231
+  (0.0ms) SAVEPOINT active_record_1
2232
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:55:32.869209"], ["movements_available", -1], ["updated_at", "2015-06-22 04:55:32.869209"]]
2233
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2234
+  (0.1ms) rollback transaction
2235
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2236
+  (0.1ms) begin transaction
2237
+ ---------------------------------------------------------------------------
2238
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
2239
+ ---------------------------------------------------------------------------
2240
+  (0.0ms) SAVEPOINT active_record_1
2241
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:56:06.977988"], ["updated_at", "2015-06-22 04:56:06.977988"]]
2242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2243
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2244
+  (0.1ms) rollback transaction
2245
+  (0.0ms) begin transaction
2246
+ ------------------------------------------------------------
2247
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
2248
+ ------------------------------------------------------------
2249
+  (0.0ms) SAVEPOINT active_record_1
2250
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:56:06.985446"], ["updated_at", "2015-06-22 04:56:06.985446"]]
2251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2252
+  (0.0ms) SAVEPOINT active_record_1
2253
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2254
+  (0.1ms) rollback transaction
2255
+  (0.0ms) begin transaction
2256
+ ---------------------------------------------------------------------------------------------------------
2257
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
2258
+ ---------------------------------------------------------------------------------------------------------
2259
+  (0.0ms) SAVEPOINT active_record_1
2260
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:56:06.987442"], ["updated_at", "2015-06-22 04:56:06.987442"]]
2261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2262
+  (0.0ms) SAVEPOINT active_record_1
2263
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 04:56:06.988400"]]
2264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2265
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2266
+  (0.1ms) rollback transaction
2267
+  (0.0ms) begin transaction
2268
+ ---------------------------------------------------------------------------------
2269
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
2270
+ ---------------------------------------------------------------------------------
2271
+  (0.0ms) SAVEPOINT active_record_1
2272
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:56:06.991045"], ["updated_at", "2015-06-22 04:56:06.991045"]]
2273
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2274
+  (0.1ms) rollback transaction
2275
+  (0.0ms) begin transaction
2276
+ -------------------------------------------------------------------------------------------------
2277
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
2278
+ -------------------------------------------------------------------------------------------------
2279
+  (0.1ms) SAVEPOINT active_record_1
2280
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:56:06.992503"], ["updated_at", "2015-06-22 04:56:06.992503"]]
2281
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2282
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2283
+  (0.1ms) rollback transaction
2284
+  (0.0ms) begin transaction
2285
+ -------------------------------------------------------------------------
2286
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
2287
+ -------------------------------------------------------------------------
2288
+  (0.0ms) SAVEPOINT active_record_1
2289
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:56:06.995991"], ["funds", 0], ["updated_at", "2015-06-22 04:56:06.995991"]]
2290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2291
+  (0.0ms) SAVEPOINT active_record_1
2292
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:56:06.999270"], ["funds", -1], ["updated_at", "2015-06-22 04:56:06.999270"]]
2293
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2294
+  (0.0ms) SAVEPOINT active_record_1
2295
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:56:07.000237"], ["updated_at", "2015-06-22 04:56:07.000237"]]
2296
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2297
+  (0.1ms) rollback transaction
2298
+  (0.0ms) begin transaction
2299
+ -----------------------------------------------------------------------------
2300
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
2301
+ -----------------------------------------------------------------------------
2302
+  (0.0ms) SAVEPOINT active_record_1
2303
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:56:07.001809"], ["updated_at", "2015-06-22 04:56:07.001809"]]
2304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2305
+  (0.0ms) SAVEPOINT active_record_1
2306
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2307
+  (0.1ms) rollback transaction
2308
+  (0.0ms) begin transaction
2309
+ ----------------------------------------
2310
+ ActsAsIntegerInfinitableTest: test_truth
2311
+ ----------------------------------------
2312
+  (0.0ms) rollback transaction
2313
+  (0.0ms) begin transaction
2314
+ -----------------------------------------------------------
2315
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
2316
+ -----------------------------------------------------------
2317
+  (0.0ms) SAVEPOINT active_record_1
2318
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:56:07.005776"], ["movements_available", -1], ["updated_at", "2015-06-22 04:56:07.005776"]]
2319
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2320
+  (0.1ms) rollback transaction
2321
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2322
+  (0.1ms) begin transaction
2323
+ ---------------------------------------------------------------------------
2324
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
2325
+ ---------------------------------------------------------------------------
2326
+  (0.0ms) SAVEPOINT active_record_1
2327
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:56:41.731842"], ["updated_at", "2015-06-22 04:56:41.731842"]]
2328
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2329
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2330
+  (0.1ms) rollback transaction
2331
+  (0.0ms) begin transaction
2332
+ ------------------------------------------------------------
2333
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
2334
+ ------------------------------------------------------------
2335
+  (0.0ms) SAVEPOINT active_record_1
2336
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:56:41.739266"], ["updated_at", "2015-06-22 04:56:41.739266"]]
2337
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2338
+  (0.0ms) SAVEPOINT active_record_1
2339
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2340
+  (0.1ms) rollback transaction
2341
+  (0.0ms) begin transaction
2342
+ ---------------------------------------------------------------------------------------------------------
2343
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
2344
+ ---------------------------------------------------------------------------------------------------------
2345
+  (0.0ms) SAVEPOINT active_record_1
2346
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:56:41.741259"], ["updated_at", "2015-06-22 04:56:41.741259"]]
2347
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2348
+  (0.0ms) SAVEPOINT active_record_1
2349
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 04:56:41.742305"]]
2350
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2351
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2352
+  (0.1ms) rollback transaction
2353
+  (0.1ms) begin transaction
2354
+ ---------------------------------------------------------------------------------
2355
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
2356
+ ---------------------------------------------------------------------------------
2357
+  (0.0ms) SAVEPOINT active_record_1
2358
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:56:41.744987"], ["updated_at", "2015-06-22 04:56:41.744987"]]
2359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2360
+  (0.1ms) rollback transaction
2361
+  (0.0ms) begin transaction
2362
+ -------------------------------------------------------------------------------------------------
2363
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
2364
+ -------------------------------------------------------------------------------------------------
2365
+  (0.0ms) SAVEPOINT active_record_1
2366
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:56:41.746533"], ["updated_at", "2015-06-22 04:56:41.746533"]]
2367
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2368
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2369
+  (0.1ms) rollback transaction
2370
+  (0.0ms) begin transaction
2371
+ -------------------------------------------------------------------------
2372
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
2373
+ -------------------------------------------------------------------------
2374
+  (0.0ms) SAVEPOINT active_record_1
2375
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:56:41.749994"], ["funds", 0], ["updated_at", "2015-06-22 04:56:41.749994"]]
2376
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2377
+  (0.0ms) SAVEPOINT active_record_1
2378
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:56:41.753368"], ["funds", -1], ["updated_at", "2015-06-22 04:56:41.753368"]]
2379
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2380
+  (0.0ms) SAVEPOINT active_record_1
2381
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:56:41.754383"], ["updated_at", "2015-06-22 04:56:41.754383"]]
2382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2383
+  (0.1ms) rollback transaction
2384
+  (0.1ms) begin transaction
2385
+ -----------------------------------------------------------------------------
2386
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
2387
+ -----------------------------------------------------------------------------
2388
+  (0.0ms) SAVEPOINT active_record_1
2389
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:56:41.755924"], ["updated_at", "2015-06-22 04:56:41.755924"]]
2390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2391
+  (0.0ms) SAVEPOINT active_record_1
2392
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2393
+  (0.1ms) rollback transaction
2394
+  (0.0ms) begin transaction
2395
+ ----------------------------------------
2396
+ ActsAsIntegerInfinitableTest: test_truth
2397
+ ----------------------------------------
2398
+  (0.0ms) rollback transaction
2399
+  (0.0ms) begin transaction
2400
+ -----------------------------------------------------------
2401
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
2402
+ -----------------------------------------------------------
2403
+  (0.0ms) SAVEPOINT active_record_1
2404
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:56:41.759864"], ["movements_available", -1], ["updated_at", "2015-06-22 04:56:41.759864"]]
2405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2406
+  (0.1ms) rollback transaction
2407
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2408
+  (0.1ms) begin transaction
2409
+ ---------------------------------------------------------------------------
2410
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
2411
+ ---------------------------------------------------------------------------
2412
+  (0.0ms) SAVEPOINT active_record_1
2413
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:57:20.723003"], ["updated_at", "2015-06-22 04:57:20.723003"]]
2414
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2415
+ LibrarySubscription Load (0.2ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2416
+  (0.1ms) rollback transaction
2417
+  (0.0ms) begin transaction
2418
+ ------------------------------------------------------------
2419
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
2420
+ ------------------------------------------------------------
2421
+  (0.0ms) SAVEPOINT active_record_1
2422
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:57:20.732693"], ["updated_at", "2015-06-22 04:57:20.732693"]]
2423
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2424
+  (0.0ms) SAVEPOINT active_record_1
2425
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2426
+  (0.1ms) rollback transaction
2427
+  (0.0ms) begin transaction
2428
+ ---------------------------------------------------------------------------------------------------------
2429
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
2430
+ ---------------------------------------------------------------------------------------------------------
2431
+  (0.0ms) SAVEPOINT active_record_1
2432
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:57:20.735130"], ["updated_at", "2015-06-22 04:57:20.735130"]]
2433
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2434
+  (0.1ms) SAVEPOINT active_record_1
2435
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 04:57:20.736482"]]
2436
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2437
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2438
+  (2.2ms) rollback transaction
2439
+  (0.1ms) begin transaction
2440
+ ---------------------------------------------------------------------------------
2441
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
2442
+ ---------------------------------------------------------------------------------
2443
+  (0.0ms) SAVEPOINT active_record_1
2444
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:57:20.742093"], ["updated_at", "2015-06-22 04:57:20.742093"]]
2445
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2446
+  (0.1ms) rollback transaction
2447
+  (0.0ms) begin transaction
2448
+ -------------------------------------------------------------------------------------------------
2449
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
2450
+ -------------------------------------------------------------------------------------------------
2451
+  (0.0ms) SAVEPOINT active_record_1
2452
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:57:20.744173"], ["updated_at", "2015-06-22 04:57:20.744173"]]
2453
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2454
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2455
+  (0.1ms) rollback transaction
2456
+  (0.0ms) begin transaction
2457
+ -------------------------------------------------------------------------
2458
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
2459
+ -------------------------------------------------------------------------
2460
+  (0.0ms) SAVEPOINT active_record_1
2461
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:57:20.748965"], ["funds", 0], ["updated_at", "2015-06-22 04:57:20.748965"]]
2462
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2463
+  (0.0ms) SAVEPOINT active_record_1
2464
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:57:20.753475"], ["funds", -1], ["updated_at", "2015-06-22 04:57:20.753475"]]
2465
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2466
+  (0.0ms) SAVEPOINT active_record_1
2467
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:57:20.754835"], ["updated_at", "2015-06-22 04:57:20.754835"]]
2468
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2469
+  (0.1ms) rollback transaction
2470
+  (0.0ms) begin transaction
2471
+ -----------------------------------------------------------------------------
2472
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
2473
+ -----------------------------------------------------------------------------
2474
+  (0.1ms) SAVEPOINT active_record_1
2475
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:57:20.756904"], ["updated_at", "2015-06-22 04:57:20.756904"]]
2476
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2477
+  (0.0ms) SAVEPOINT active_record_1
2478
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2479
+  (0.1ms) rollback transaction
2480
+  (0.0ms) begin transaction
2481
+ ----------------------------------------
2482
+ ActsAsIntegerInfinitableTest: test_truth
2483
+ ----------------------------------------
2484
+  (0.0ms) rollback transaction
2485
+  (0.0ms) begin transaction
2486
+ -----------------------------------------------------------
2487
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
2488
+ -----------------------------------------------------------
2489
+  (0.0ms) SAVEPOINT active_record_1
2490
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:57:20.762177"], ["movements_available", -1], ["updated_at", "2015-06-22 04:57:20.762177"]]
2491
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2492
+  (0.1ms) rollback transaction
2493
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2494
+  (0.1ms) begin transaction
2495
+ ---------------------------------------------------------------------------
2496
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
2497
+ ---------------------------------------------------------------------------
2498
+  (0.0ms) SAVEPOINT active_record_1
2499
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:58:52.212674"], ["updated_at", "2015-06-22 04:58:52.212674"]]
2500
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2501
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2502
+  (0.2ms) rollback transaction
2503
+  (0.1ms) begin transaction
2504
+ ------------------------------------------------------------
2505
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
2506
+ ------------------------------------------------------------
2507
+  (0.0ms) SAVEPOINT active_record_1
2508
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:58:52.220587"], ["updated_at", "2015-06-22 04:58:52.220587"]]
2509
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2510
+  (0.0ms) SAVEPOINT active_record_1
2511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2512
+  (0.1ms) rollback transaction
2513
+  (0.0ms) begin transaction
2514
+ ---------------------------------------------------------------------------------------------------------
2515
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
2516
+ ---------------------------------------------------------------------------------------------------------
2517
+  (0.0ms) SAVEPOINT active_record_1
2518
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:58:52.222536"], ["updated_at", "2015-06-22 04:58:52.222536"]]
2519
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2520
+  (0.1ms) SAVEPOINT active_record_1
2521
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 04:58:52.223588"]]
2522
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2523
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2524
+  (0.1ms) rollback transaction
2525
+  (0.1ms) begin transaction
2526
+ ---------------------------------------------------------------------------------
2527
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
2528
+ ---------------------------------------------------------------------------------
2529
+  (0.1ms) SAVEPOINT active_record_1
2530
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:58:52.226171"], ["updated_at", "2015-06-22 04:58:52.226171"]]
2531
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2532
+  (0.1ms) rollback transaction
2533
+  (0.0ms) begin transaction
2534
+ -------------------------------------------------------------------------------------------------
2535
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
2536
+ -------------------------------------------------------------------------------------------------
2537
+  (0.0ms) SAVEPOINT active_record_1
2538
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:58:52.227689"], ["updated_at", "2015-06-22 04:58:52.227689"]]
2539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2540
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2541
+  (0.1ms) rollback transaction
2542
+  (0.0ms) begin transaction
2543
+ -------------------------------------------------------------------------
2544
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
2545
+ -------------------------------------------------------------------------
2546
+  (0.0ms) SAVEPOINT active_record_1
2547
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:58:52.231372"], ["funds", 0], ["updated_at", "2015-06-22 04:58:52.231372"]]
2548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2549
+  (0.0ms) SAVEPOINT active_record_1
2550
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:58:52.234544"], ["funds", -1], ["updated_at", "2015-06-22 04:58:52.234544"]]
2551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2552
+  (0.0ms) SAVEPOINT active_record_1
2553
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:58:52.235577"], ["updated_at", "2015-06-22 04:58:52.235577"]]
2554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2555
+  (0.1ms) rollback transaction
2556
+  (0.0ms) begin transaction
2557
+ -----------------------------------------------------------------------------
2558
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
2559
+ -----------------------------------------------------------------------------
2560
+  (0.0ms) SAVEPOINT active_record_1
2561
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:58:52.237238"], ["updated_at", "2015-06-22 04:58:52.237238"]]
2562
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2563
+  (0.0ms) SAVEPOINT active_record_1
2564
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2565
+  (0.1ms) rollback transaction
2566
+  (0.0ms) begin transaction
2567
+ ----------------------------------------
2568
+ ActsAsIntegerInfinitableTest: test_truth
2569
+ ----------------------------------------
2570
+  (0.0ms) rollback transaction
2571
+  (0.0ms) begin transaction
2572
+ -----------------------------------------------------------
2573
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
2574
+ -----------------------------------------------------------
2575
+  (0.0ms) SAVEPOINT active_record_1
2576
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:58:52.241271"], ["movements_available", -1], ["updated_at", "2015-06-22 04:58:52.241271"]]
2577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2578
+  (0.1ms) rollback transaction
2579
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2580
+  (0.1ms) begin transaction
2581
+ ---------------------------------------------------------------------------
2582
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
2583
+ ---------------------------------------------------------------------------
2584
+  (0.0ms) SAVEPOINT active_record_1
2585
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:59:39.750849"], ["updated_at", "2015-06-22 04:59:39.750849"]]
2586
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2587
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2588
+  (0.1ms) rollback transaction
2589
+  (0.0ms) begin transaction
2590
+ ------------------------------------------------------------
2591
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
2592
+ ------------------------------------------------------------
2593
+  (0.0ms) SAVEPOINT active_record_1
2594
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 04:59:39.758961"], ["updated_at", "2015-06-22 04:59:39.758961"]]
2595
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2596
+  (0.0ms) SAVEPOINT active_record_1
2597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2598
+  (0.1ms) rollback transaction
2599
+  (0.0ms) begin transaction
2600
+ ---------------------------------------------------------------------------------------------------------
2601
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
2602
+ ---------------------------------------------------------------------------------------------------------
2603
+  (0.0ms) SAVEPOINT active_record_1
2604
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:59:39.760990"], ["updated_at", "2015-06-22 04:59:39.760990"]]
2605
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2606
+  (0.0ms) SAVEPOINT active_record_1
2607
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 04:59:39.762126"]]
2608
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2609
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2610
+  (0.1ms) rollback transaction
2611
+  (0.0ms) begin transaction
2612
+ ---------------------------------------------------------------------------------
2613
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
2614
+ ---------------------------------------------------------------------------------
2615
+  (0.0ms) SAVEPOINT active_record_1
2616
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:59:39.764900"], ["updated_at", "2015-06-22 04:59:39.764900"]]
2617
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2618
+  (0.1ms) rollback transaction
2619
+  (0.0ms) begin transaction
2620
+ -------------------------------------------------------------------------------------------------
2621
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
2622
+ -------------------------------------------------------------------------------------------------
2623
+  (0.0ms) SAVEPOINT active_record_1
2624
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:59:39.766477"], ["updated_at", "2015-06-22 04:59:39.766477"]]
2625
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2626
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2627
+  (0.1ms) rollback transaction
2628
+  (0.0ms) begin transaction
2629
+ -------------------------------------------------------------------------
2630
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
2631
+ -------------------------------------------------------------------------
2632
+  (0.0ms) SAVEPOINT active_record_1
2633
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:59:39.770234"], ["funds", 0], ["updated_at", "2015-06-22 04:59:39.770234"]]
2634
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2635
+  (0.1ms) SAVEPOINT active_record_1
2636
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 04:59:39.774107"], ["funds", -1], ["updated_at", "2015-06-22 04:59:39.774107"]]
2637
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2638
+  (0.0ms) SAVEPOINT active_record_1
2639
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 04:59:39.775426"], ["updated_at", "2015-06-22 04:59:39.775426"]]
2640
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2641
+  (0.1ms) rollback transaction
2642
+  (0.0ms) begin transaction
2643
+ -----------------------------------------------------------------------------
2644
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
2645
+ -----------------------------------------------------------------------------
2646
+  (0.0ms) SAVEPOINT active_record_1
2647
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 04:59:39.777345"], ["updated_at", "2015-06-22 04:59:39.777345"]]
2648
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2649
+  (0.0ms) SAVEPOINT active_record_1
2650
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2651
+  (0.1ms) rollback transaction
2652
+  (0.0ms) begin transaction
2653
+ ----------------------------------------
2654
+ ActsAsIntegerInfinitableTest: test_truth
2655
+ ----------------------------------------
2656
+  (0.0ms) rollback transaction
2657
+  (0.0ms) begin transaction
2658
+ -----------------------------------------------------------
2659
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
2660
+ -----------------------------------------------------------
2661
+  (0.0ms) SAVEPOINT active_record_1
2662
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 04:59:39.781995"], ["movements_available", -1], ["updated_at", "2015-06-22 04:59:39.781995"]]
2663
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2664
+  (0.1ms) rollback transaction
2665
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2666
+  (0.1ms) begin transaction
2667
+ ---------------------------------------------------------------------------
2668
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
2669
+ ---------------------------------------------------------------------------
2670
+  (0.1ms) SAVEPOINT active_record_1
2671
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:00:05.698813"], ["updated_at", "2015-06-22 05:00:05.698813"]]
2672
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2673
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2674
+  (0.2ms) rollback transaction
2675
+  (0.1ms) begin transaction
2676
+ ------------------------------------------------------------
2677
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
2678
+ ------------------------------------------------------------
2679
+  (0.1ms) SAVEPOINT active_record_1
2680
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:00:05.708922"], ["updated_at", "2015-06-22 05:00:05.708922"]]
2681
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2682
+  (0.1ms) SAVEPOINT active_record_1
2683
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2684
+  (0.1ms) rollback transaction
2685
+  (0.0ms) begin transaction
2686
+ ---------------------------------------------------------------------------------------------------------
2687
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
2688
+ ---------------------------------------------------------------------------------------------------------
2689
+  (0.1ms) SAVEPOINT active_record_1
2690
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 05:00:05.711351"], ["updated_at", "2015-06-22 05:00:05.711351"]]
2691
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2692
+  (0.0ms) SAVEPOINT active_record_1
2693
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 05:00:05.712664"]]
2694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2695
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2696
+  (0.1ms) rollback transaction
2697
+  (0.1ms) begin transaction
2698
+ ---------------------------------------------------------------------------------
2699
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
2700
+ ---------------------------------------------------------------------------------
2701
+  (0.0ms) SAVEPOINT active_record_1
2702
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 05:00:05.715912"], ["updated_at", "2015-06-22 05:00:05.715912"]]
2703
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2704
+  (0.1ms) rollback transaction
2705
+  (0.1ms) begin transaction
2706
+ -------------------------------------------------------------------------------------------------
2707
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
2708
+ -------------------------------------------------------------------------------------------------
2709
+  (0.0ms) SAVEPOINT active_record_1
2710
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 05:00:05.717964"], ["updated_at", "2015-06-22 05:00:05.717964"]]
2711
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2712
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2713
+  (0.1ms) rollback transaction
2714
+  (0.0ms) begin transaction
2715
+ -------------------------------------------------------------------------
2716
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
2717
+ -------------------------------------------------------------------------
2718
+  (0.1ms) SAVEPOINT active_record_1
2719
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 05:00:05.722237"], ["funds", 0], ["updated_at", "2015-06-22 05:00:05.722237"]]
2720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2721
+  (0.1ms) SAVEPOINT active_record_1
2722
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 05:00:05.725766"], ["funds", -1], ["updated_at", "2015-06-22 05:00:05.725766"]]
2723
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2724
+  (0.0ms) SAVEPOINT active_record_1
2725
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 05:00:05.726872"], ["updated_at", "2015-06-22 05:00:05.726872"]]
2726
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2727
+  (0.1ms) rollback transaction
2728
+  (0.0ms) begin transaction
2729
+ -----------------------------------------------------------------------------
2730
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
2731
+ -----------------------------------------------------------------------------
2732
+  (0.0ms) SAVEPOINT active_record_1
2733
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 05:00:05.728491"], ["updated_at", "2015-06-22 05:00:05.728491"]]
2734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2735
+  (0.0ms) SAVEPOINT active_record_1
2736
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2737
+  (0.3ms) rollback transaction
2738
+  (0.0ms) begin transaction
2739
+ ----------------------------------------
2740
+ ActsAsIntegerInfinitableTest: test_truth
2741
+ ----------------------------------------
2742
+  (0.1ms) rollback transaction
2743
+  (0.0ms) begin transaction
2744
+ -----------------------------------------------------------
2745
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
2746
+ -----------------------------------------------------------
2747
+  (0.1ms) SAVEPOINT active_record_1
2748
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 05:00:05.733366"], ["movements_available", -1], ["updated_at", "2015-06-22 05:00:05.733366"]]
2749
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2750
+  (0.1ms) rollback transaction
2751
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2752
+  (0.1ms) begin transaction
2753
+ ---------------------------------------------------------------------------
2754
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
2755
+ ---------------------------------------------------------------------------
2756
+  (0.0ms) SAVEPOINT active_record_1
2757
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:00:37.135043"], ["updated_at", "2015-06-22 05:00:37.135043"]]
2758
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2759
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2760
+  (0.1ms) rollback transaction
2761
+  (0.0ms) begin transaction
2762
+ ------------------------------------------------------------
2763
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
2764
+ ------------------------------------------------------------
2765
+  (0.0ms) SAVEPOINT active_record_1
2766
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:00:37.143196"], ["updated_at", "2015-06-22 05:00:37.143196"]]
2767
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2768
+  (0.1ms) SAVEPOINT active_record_1
2769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2770
+  (0.1ms) rollback transaction
2771
+  (0.0ms) begin transaction
2772
+ ---------------------------------------------------------------------------------------------------------
2773
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
2774
+ ---------------------------------------------------------------------------------------------------------
2775
+  (0.0ms) SAVEPOINT active_record_1
2776
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 05:00:37.145236"], ["updated_at", "2015-06-22 05:00:37.145236"]]
2777
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2778
+  (0.0ms) SAVEPOINT active_record_1
2779
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 05:00:37.146353"]]
2780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2781
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2782
+  (0.1ms) rollback transaction
2783
+  (0.0ms) begin transaction
2784
+ ---------------------------------------------------------------------------------
2785
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
2786
+ ---------------------------------------------------------------------------------
2787
+  (0.0ms) SAVEPOINT active_record_1
2788
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 05:00:37.149083"], ["updated_at", "2015-06-22 05:00:37.149083"]]
2789
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2790
+  (0.1ms) rollback transaction
2791
+  (0.0ms) begin transaction
2792
+ -------------------------------------------------------------------------------------------------
2793
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
2794
+ -------------------------------------------------------------------------------------------------
2795
+  (0.0ms) SAVEPOINT active_record_1
2796
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 05:00:37.150704"], ["updated_at", "2015-06-22 05:00:37.150704"]]
2797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2798
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2799
+  (0.1ms) rollback transaction
2800
+  (0.0ms) begin transaction
2801
+ -------------------------------------------------------------------------
2802
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
2803
+ -------------------------------------------------------------------------
2804
+  (0.0ms) SAVEPOINT active_record_1
2805
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 05:00:37.154487"], ["funds", 0], ["updated_at", "2015-06-22 05:00:37.154487"]]
2806
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2807
+  (0.1ms) SAVEPOINT active_record_1
2808
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 05:00:37.158473"], ["funds", -1], ["updated_at", "2015-06-22 05:00:37.158473"]]
2809
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2810
+  (0.0ms) SAVEPOINT active_record_1
2811
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 05:00:37.159560"], ["updated_at", "2015-06-22 05:00:37.159560"]]
2812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2813
+  (0.1ms) rollback transaction
2814
+  (0.0ms) begin transaction
2815
+ -----------------------------------------------------------------------------
2816
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
2817
+ -----------------------------------------------------------------------------
2818
+  (0.0ms) SAVEPOINT active_record_1
2819
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 05:00:37.161189"], ["updated_at", "2015-06-22 05:00:37.161189"]]
2820
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2821
+  (0.0ms) SAVEPOINT active_record_1
2822
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2823
+  (0.1ms) rollback transaction
2824
+  (0.0ms) begin transaction
2825
+ ----------------------------------------
2826
+ ActsAsIntegerInfinitableTest: test_truth
2827
+ ----------------------------------------
2828
+  (0.1ms) rollback transaction
2829
+  (0.0ms) begin transaction
2830
+ -----------------------------------------------------------
2831
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
2832
+ -----------------------------------------------------------
2833
+  (0.0ms) SAVEPOINT active_record_1
2834
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 05:00:37.165288"], ["movements_available", -1], ["updated_at", "2015-06-22 05:00:37.165288"]]
2835
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2836
+  (0.1ms) rollback transaction
2837
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2838
+  (0.2ms) begin transaction
2839
+ ---------------------------------------------------------------------------
2840
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
2841
+ ---------------------------------------------------------------------------
2842
+  (0.1ms) SAVEPOINT active_record_1
2843
+ SQL (0.4ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:01:29.284824"], ["updated_at", "2015-06-22 05:01:29.284824"]]
2844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2845
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2846
+  (0.1ms) rollback transaction
2847
+  (0.0ms) begin transaction
2848
+ ------------------------------------------------------------
2849
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
2850
+ ------------------------------------------------------------
2851
+  (0.0ms) SAVEPOINT active_record_1
2852
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:01:29.293736"], ["updated_at", "2015-06-22 05:01:29.293736"]]
2853
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2854
+  (0.1ms) rollback transaction
2855
+  (0.0ms) begin transaction
2856
+ ----------------------------------------
2857
+ ActsAsIntegerInfinitableTest: test_truth
2858
+ ----------------------------------------
2859
+  (0.0ms) rollback transaction
2860
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2861
+  (0.1ms) begin transaction
2862
+ ---------------------------------------------------------------------------
2863
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
2864
+ ---------------------------------------------------------------------------
2865
+  (0.0ms) SAVEPOINT active_record_1
2866
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:02:13.754039"], ["updated_at", "2015-06-22 05:02:13.754039"]]
2867
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2868
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2869
+  (0.1ms) rollback transaction
2870
+  (0.0ms) begin transaction
2871
+ ------------------------------------------------------------
2872
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
2873
+ ------------------------------------------------------------
2874
+  (0.0ms) SAVEPOINT active_record_1
2875
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:02:13.762814"], ["updated_at", "2015-06-22 05:02:13.762814"]]
2876
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2877
+  (0.1ms) rollback transaction
2878
+  (0.0ms) begin transaction
2879
+ ----------------------------------------
2880
+ ActsAsIntegerInfinitableTest: test_truth
2881
+ ----------------------------------------
2882
+  (0.0ms) rollback transaction
2883
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2884
+  (0.1ms) begin transaction
2885
+ ---------------------------------------------------------------------------
2886
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
2887
+ ---------------------------------------------------------------------------
2888
+  (0.0ms) SAVEPOINT active_record_1
2889
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:02:50.416586"], ["updated_at", "2015-06-22 05:02:50.416586"]]
2890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2891
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2892
+  (0.1ms) rollback transaction
2893
+  (0.0ms) begin transaction
2894
+ ------------------------------------------------------------
2895
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
2896
+ ------------------------------------------------------------
2897
+  (0.0ms) SAVEPOINT active_record_1
2898
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:02:50.425853"], ["updated_at", "2015-06-22 05:02:50.425853"]]
2899
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2900
+  (0.0ms) SAVEPOINT active_record_1
2901
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", 4], ["updated_at", "2015-06-22 05:02:50.427383"]]
2902
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2903
+  (0.1ms) rollback transaction
2904
+  (0.1ms) begin transaction
2905
+ ----------------------------------------
2906
+ ActsAsIntegerInfinitableTest: test_truth
2907
+ ----------------------------------------
2908
+  (0.0ms) rollback transaction
2909
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2910
+  (0.1ms) begin transaction
2911
+ ---------------------------------------------------------------------------
2912
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
2913
+ ---------------------------------------------------------------------------
2914
+  (0.0ms) SAVEPOINT active_record_1
2915
+ SQL (0.4ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:03:08.496065"], ["updated_at", "2015-06-22 05:03:08.496065"]]
2916
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2917
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2918
+  (0.1ms) rollback transaction
2919
+  (0.0ms) begin transaction
2920
+ ------------------------------------------------------------
2921
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
2922
+ ------------------------------------------------------------
2923
+  (0.0ms) SAVEPOINT active_record_1
2924
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:03:08.505695"], ["updated_at", "2015-06-22 05:03:08.505695"]]
2925
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2926
+  (0.0ms) SAVEPOINT active_record_1
2927
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", 4], ["updated_at", "2015-06-22 05:03:08.507064"]]
2928
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2929
+  (0.1ms) rollback transaction
2930
+  (0.0ms) begin transaction
2931
+ ----------------------------------------
2932
+ ActsAsIntegerInfinitableTest: test_truth
2933
+ ----------------------------------------
2934
+  (0.0ms) rollback transaction
2935
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2936
+  (0.1ms) begin transaction
2937
+ ---------------------------------------------------------------------------
2938
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
2939
+ ---------------------------------------------------------------------------
2940
+  (0.0ms) SAVEPOINT active_record_1
2941
+ SQL (0.4ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:03:30.478697"], ["updated_at", "2015-06-22 05:03:30.478697"]]
2942
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2943
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2944
+  (0.1ms) rollback transaction
2945
+  (0.0ms) begin transaction
2946
+ ------------------------------------------------------------
2947
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
2948
+ ------------------------------------------------------------
2949
+  (0.0ms) SAVEPOINT active_record_1
2950
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:03:30.488588"], ["updated_at", "2015-06-22 05:03:30.488588"]]
2951
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2952
+  (0.0ms) SAVEPOINT active_record_1
2953
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", 4], ["updated_at", "2015-06-22 05:03:30.489975"]]
2954
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2955
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2956
+  (0.1ms) rollback transaction
2957
+  (0.0ms) begin transaction
2958
+ ---------------------------------------------------------------------------------------------------------
2959
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
2960
+ ---------------------------------------------------------------------------------------------------------
2961
+  (0.0ms) SAVEPOINT active_record_1
2962
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 05:03:30.493126"], ["updated_at", "2015-06-22 05:03:30.493126"]]
2963
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2964
+  (0.0ms) SAVEPOINT active_record_1
2965
+ SQL (0.1ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 05:03:30.494462"]]
2966
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2967
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2968
+  (0.1ms) rollback transaction
2969
+  (0.0ms) begin transaction
2970
+ ---------------------------------------------------------------------------------
2971
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
2972
+ ---------------------------------------------------------------------------------
2973
+  (0.0ms) SAVEPOINT active_record_1
2974
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 05:03:30.496844"], ["updated_at", "2015-06-22 05:03:30.496844"]]
2975
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2976
+  (0.1ms) rollback transaction
2977
+  (0.0ms) begin transaction
2978
+ -------------------------------------------------------------------------------------------------
2979
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
2980
+ -------------------------------------------------------------------------------------------------
2981
+  (0.1ms) SAVEPOINT active_record_1
2982
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 05:03:30.498763"], ["updated_at", "2015-06-22 05:03:30.498763"]]
2983
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2984
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
2985
+  (0.1ms) rollback transaction
2986
+  (0.0ms) begin transaction
2987
+ -------------------------------------------------------------------------
2988
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
2989
+ -------------------------------------------------------------------------
2990
+  (0.0ms) SAVEPOINT active_record_1
2991
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 05:03:30.503397"], ["funds", 0], ["updated_at", "2015-06-22 05:03:30.503397"]]
2992
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2993
+  (0.0ms) SAVEPOINT active_record_1
2994
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 05:03:30.507775"], ["funds", -1], ["updated_at", "2015-06-22 05:03:30.507775"]]
2995
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2996
+  (0.0ms) SAVEPOINT active_record_1
2997
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 05:03:30.509054"], ["updated_at", "2015-06-22 05:03:30.509054"]]
2998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2999
+  (0.2ms) rollback transaction
3000
+  (0.1ms) begin transaction
3001
+ -----------------------------------------------------------------------------
3002
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
3003
+ -----------------------------------------------------------------------------
3004
+  (0.1ms) SAVEPOINT active_record_1
3005
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 05:03:30.511109"], ["updated_at", "2015-06-22 05:03:30.511109"]]
3006
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3007
+  (0.0ms) SAVEPOINT active_record_1
3008
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3009
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
3010
+  (0.1ms) rollback transaction
3011
+  (0.0ms) begin transaction
3012
+ ----------------------------------------
3013
+ ActsAsIntegerInfinitableTest: test_truth
3014
+ ----------------------------------------
3015
+  (0.0ms) rollback transaction
3016
+  (0.0ms) begin transaction
3017
+ -----------------------------------------------------------
3018
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
3019
+ -----------------------------------------------------------
3020
+  (0.1ms) SAVEPOINT active_record_1
3021
+ SQL (0.3ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 05:03:30.517079"], ["movements_available", -1], ["updated_at", "2015-06-22 05:03:30.517079"]]
3022
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3023
+  (0.1ms) rollback transaction
3024
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3025
+  (0.1ms) begin transaction
3026
+ ---------------------------------------------------------------------------
3027
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
3028
+ ---------------------------------------------------------------------------
3029
+  (0.0ms) SAVEPOINT active_record_1
3030
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:04:03.736778"], ["updated_at", "2015-06-22 05:04:03.736778"]]
3031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3032
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
3033
+  (0.1ms) rollback transaction
3034
+  (0.0ms) begin transaction
3035
+ ------------------------------------------------------------
3036
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
3037
+ ------------------------------------------------------------
3038
+  (0.0ms) SAVEPOINT active_record_1
3039
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:04:03.744896"], ["updated_at", "2015-06-22 05:04:03.744896"]]
3040
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3041
+  (0.0ms) SAVEPOINT active_record_1
3042
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", 4], ["updated_at", "2015-06-22 05:04:03.745950"]]
3043
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3044
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
3045
+  (0.1ms) rollback transaction
3046
+  (0.0ms) begin transaction
3047
+ ---------------------------------------------------------------------------------------------------------
3048
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
3049
+ ---------------------------------------------------------------------------------------------------------
3050
+  (0.0ms) SAVEPOINT active_record_1
3051
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 05:04:03.748397"], ["updated_at", "2015-06-22 05:04:03.748397"]]
3052
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3053
+  (0.0ms) SAVEPOINT active_record_1
3054
+ SQL (0.1ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 05:04:03.749377"]]
3055
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3056
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
3057
+  (0.1ms) rollback transaction
3058
+  (0.0ms) begin transaction
3059
+ ---------------------------------------------------------------------------------
3060
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
3061
+ ---------------------------------------------------------------------------------
3062
+  (0.0ms) SAVEPOINT active_record_1
3063
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 05:04:03.751263"], ["updated_at", "2015-06-22 05:04:03.751263"]]
3064
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3065
+  (0.1ms) rollback transaction
3066
+  (0.0ms) begin transaction
3067
+ -------------------------------------------------------------------------------------------------
3068
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
3069
+ -------------------------------------------------------------------------------------------------
3070
+  (0.0ms) SAVEPOINT active_record_1
3071
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 05:04:03.752747"], ["updated_at", "2015-06-22 05:04:03.752747"]]
3072
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3073
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
3074
+  (0.1ms) rollback transaction
3075
+  (0.1ms) begin transaction
3076
+ -------------------------------------------------------------------------
3077
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
3078
+ -------------------------------------------------------------------------
3079
+  (0.0ms) SAVEPOINT active_record_1
3080
+ SQL (0.2ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 05:04:03.756584"], ["funds", 0], ["updated_at", "2015-06-22 05:04:03.756584"]]
3081
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3082
+  (0.0ms) SAVEPOINT active_record_1
3083
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 05:04:03.760058"], ["funds", -1], ["updated_at", "2015-06-22 05:04:03.760058"]]
3084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3085
+  (0.0ms) SAVEPOINT active_record_1
3086
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 05:04:03.761041"], ["updated_at", "2015-06-22 05:04:03.761041"]]
3087
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3088
+  (0.1ms) rollback transaction
3089
+  (0.0ms) begin transaction
3090
+ -----------------------------------------------------------------------------
3091
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
3092
+ -----------------------------------------------------------------------------
3093
+  (0.0ms) SAVEPOINT active_record_1
3094
+ SQL (0.1ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 05:04:03.762601"], ["updated_at", "2015-06-22 05:04:03.762601"]]
3095
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3096
+  (0.0ms) SAVEPOINT active_record_1
3097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3098
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
3099
+  (0.1ms) rollback transaction
3100
+  (0.0ms) begin transaction
3101
+ ----------------------------------------
3102
+ ActsAsIntegerInfinitableTest: test_truth
3103
+ ----------------------------------------
3104
+  (0.0ms) rollback transaction
3105
+  (0.0ms) begin transaction
3106
+ -----------------------------------------------------------
3107
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
3108
+ -----------------------------------------------------------
3109
+  (0.0ms) SAVEPOINT active_record_1
3110
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 05:04:03.767122"], ["movements_available", -1], ["updated_at", "2015-06-22 05:04:03.767122"]]
3111
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3112
+  (0.1ms) rollback transaction
3113
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3114
+  (0.1ms) begin transaction
3115
+ ---------------------------------------------------------------------------
3116
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
3117
+ ---------------------------------------------------------------------------
3118
+  (0.1ms) SAVEPOINT active_record_1
3119
+ SQL (0.3ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:36:51.468060"], ["updated_at", "2015-06-22 05:36:51.468060"]]
3120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3121
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
3122
+  (0.1ms) rollback transaction
3123
+  (0.0ms) begin transaction
3124
+ ------------------------------------------------------------
3125
+ ActsAsIntegerInfinitableTest: test_a_number_should_decrement
3126
+ ------------------------------------------------------------
3127
+  (0.1ms) SAVEPOINT active_record_1
3128
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", 5], ["created_at", "2015-06-22 05:36:51.477881"], ["updated_at", "2015-06-22 05:36:51.477881"]]
3129
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3130
+  (0.0ms) SAVEPOINT active_record_1
3131
+ SQL (0.2ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", 4], ["updated_at", "2015-06-22 05:36:51.479286"]]
3132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3133
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
3134
+  (0.2ms) rollback transaction
3135
+  (0.0ms) begin transaction
3136
+ ---------------------------------------------------------------------------------------------------------
3137
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
3138
+ ---------------------------------------------------------------------------------------------------------
3139
+  (0.0ms) SAVEPOINT active_record_1
3140
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 05:36:51.482472"], ["updated_at", "2015-06-22 05:36:51.482472"]]
3141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3142
+  (0.0ms) SAVEPOINT active_record_1
3143
+ SQL (0.1ms) UPDATE "library_subscriptions" SET "available_books" = ?, "updated_at" = ? WHERE "library_subscriptions"."id" = 1 [["available_books", -1], ["updated_at", "2015-06-22 05:36:51.483765"]]
3144
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3145
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
3146
+  (0.1ms) rollback transaction
3147
+  (0.0ms) begin transaction
3148
+ ---------------------------------------------------------------------------------
3149
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
3150
+ ---------------------------------------------------------------------------------
3151
+  (0.0ms) SAVEPOINT active_record_1
3152
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 05:36:51.486147"], ["updated_at", "2015-06-22 05:36:51.486147"]]
3153
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3154
+  (0.1ms) rollback transaction
3155
+  (0.0ms) begin transaction
3156
+ -------------------------------------------------------------------------------------------------
3157
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
3158
+ -------------------------------------------------------------------------------------------------
3159
+  (0.0ms) SAVEPOINT active_record_1
3160
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 05:36:51.488047"], ["updated_at", "2015-06-22 05:36:51.488047"]]
3161
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3162
+ LibrarySubscription Load (0.0ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
3163
+  (0.1ms) rollback transaction
3164
+  (0.0ms) begin transaction
3165
+ -------------------------------------------------------------------------
3166
+ ActsAsIntegerInfinitableTest: test_can_define_different_value_as_infinity
3167
+ -------------------------------------------------------------------------
3168
+  (0.0ms) SAVEPOINT active_record_1
3169
+ SQL (0.3ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 05:36:51.492639"], ["funds", 0], ["updated_at", "2015-06-22 05:36:51.492639"]]
3170
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3171
+  (0.0ms) SAVEPOINT active_record_1
3172
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "funds", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 05:36:51.497052"], ["funds", -1], ["updated_at", "2015-06-22 05:36:51.497052"]]
3173
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3174
+  (0.1ms) SAVEPOINT active_record_1
3175
+ SQL (0.1ms) INSERT INTO "people" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 05:36:51.498409"], ["updated_at", "2015-06-22 05:36:51.498409"]]
3176
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3177
+  (0.1ms) rollback transaction
3178
+  (0.0ms) begin transaction
3179
+ -----------------------------------------------------------------------------
3180
+ ActsAsIntegerInfinitableTest: test_infinity_after_decrement_should_not_change
3181
+ -----------------------------------------------------------------------------
3182
+  (0.1ms) SAVEPOINT active_record_1
3183
+ SQL (0.2ms) INSERT INTO "library_subscriptions" ("available_books", "created_at", "updated_at") VALUES (?, ?, ?) [["available_books", -1], ["created_at", "2015-06-22 05:36:51.500451"], ["updated_at", "2015-06-22 05:36:51.500451"]]
3184
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3185
+  (0.0ms) SAVEPOINT active_record_1
3186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3187
+ LibrarySubscription Load (0.1ms) SELECT "library_subscriptions".* FROM "library_subscriptions" WHERE "library_subscriptions"."id" = ? LIMIT 1 [["id", 1]]
3188
+  (0.2ms) rollback transaction
3189
+  (0.1ms) begin transaction
3190
+ ----------------------------------------
3191
+ ActsAsIntegerInfinitableTest: test_truth
3192
+ ----------------------------------------
3193
+  (0.0ms) rollback transaction
3194
+  (0.0ms) begin transaction
3195
+ -----------------------------------------------------------
3196
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
3197
+ -----------------------------------------------------------
3198
+  (0.1ms) SAVEPOINT active_record_1
3199
+ SQL (0.3ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 05:36:51.506306"], ["movements_available", -1], ["updated_at", "2015-06-22 05:36:51.506306"]]
3200
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3201
+  (0.1ms) rollback transaction