acts_as_integer_infinitable 0.0.1

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.
Files changed (55) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +32 -0
  5. data/lib/acts_as_integer_infinitable.rb +28 -0
  6. data/lib/acts_as_integer_infinitable/version.rb +3 -0
  7. data/test/acts_as_integer_infinitable_test.rb +36 -0
  8. data/test/dummy/README.rdoc +28 -0
  9. data/test/dummy/Rakefile +6 -0
  10. data/test/dummy/app/assets/javascripts/application.js +13 -0
  11. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  12. data/test/dummy/app/controllers/application_controller.rb +5 -0
  13. data/test/dummy/app/helpers/application_helper.rb +2 -0
  14. data/test/dummy/app/models/subscription.rb +3 -0
  15. data/test/dummy/app/models/tireless_warrior.rb +3 -0
  16. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  17. data/test/dummy/bin/bundle +3 -0
  18. data/test/dummy/bin/rails +4 -0
  19. data/test/dummy/bin/rake +4 -0
  20. data/test/dummy/config.ru +4 -0
  21. data/test/dummy/config/application.rb +23 -0
  22. data/test/dummy/config/boot.rb +5 -0
  23. data/test/dummy/config/database.yml +25 -0
  24. data/test/dummy/config/environment.rb +5 -0
  25. data/test/dummy/config/environments/development.rb +37 -0
  26. data/test/dummy/config/environments/production.rb +78 -0
  27. data/test/dummy/config/environments/test.rb +39 -0
  28. data/test/dummy/config/initializers/assets.rb +8 -0
  29. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  30. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  31. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  32. data/test/dummy/config/initializers/inflections.rb +16 -0
  33. data/test/dummy/config/initializers/mime_types.rb +4 -0
  34. data/test/dummy/config/initializers/session_store.rb +3 -0
  35. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  36. data/test/dummy/config/locales/en.yml +23 -0
  37. data/test/dummy/config/routes.rb +56 -0
  38. data/test/dummy/config/secrets.yml +22 -0
  39. data/test/dummy/db/development.sqlite3 +0 -0
  40. data/test/dummy/db/migrate/20150621232010_create_subscriptions.rb +9 -0
  41. data/test/dummy/db/migrate/20150622001416_create_tireless_warriors.rb +10 -0
  42. data/test/dummy/db/schema.rb +29 -0
  43. data/test/dummy/db/test.sqlite3 +0 -0
  44. data/test/dummy/log/development.log +30 -0
  45. data/test/dummy/log/test.log +716 -0
  46. data/test/dummy/public/404.html +67 -0
  47. data/test/dummy/public/422.html +67 -0
  48. data/test/dummy/public/500.html +66 -0
  49. data/test/dummy/public/favicon.ico +0 -0
  50. data/test/dummy/test/fixtures/subscriptions.yml +7 -0
  51. data/test/dummy/test/fixtures/tireless_warriors.yml +9 -0
  52. data/test/dummy/test/models/subscription_test.rb +7 -0
  53. data/test/dummy/test/models/tireless_warrior_test.rb +7 -0
  54. data/test/test_helper.rb +16 -0
  55. metadata +173 -0
@@ -0,0 +1,39 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static asset server for tests with Cache-Control for performance.
16
+ config.serve_static_assets = true
17
+ config.static_cache_control = 'public, max-age=3600'
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Print deprecation notices to the stderr.
35
+ config.active_support.deprecation = :stderr
36
+
37
+ # Raises error for missing translations
38
+ # config.action_view.raise_on_missing_translations = true
39
+ end
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Precompile additional assets.
7
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
8
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,56 @@
1
+ Rails.application.routes.draw do
2
+ # The priority is based upon order of creation: first created -> highest priority.
3
+ # See how all your routes lay out with "rake routes".
4
+
5
+ # You can have the root of your site routed with "root"
6
+ # root 'welcome#index'
7
+
8
+ # Example of regular route:
9
+ # get 'products/:id' => 'catalog#view'
10
+
11
+ # Example of named route that can be invoked with purchase_url(id: product.id)
12
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
+
14
+ # Example resource route (maps HTTP verbs to controller actions automatically):
15
+ # resources :products
16
+
17
+ # Example resource route with options:
18
+ # resources :products do
19
+ # member do
20
+ # get 'short'
21
+ # post 'toggle'
22
+ # end
23
+ #
24
+ # collection do
25
+ # get 'sold'
26
+ # end
27
+ # end
28
+
29
+ # Example resource route with sub-resources:
30
+ # resources :products do
31
+ # resources :comments, :sales
32
+ # resource :seller
33
+ # end
34
+
35
+ # Example resource route with more complex sub-resources:
36
+ # resources :products do
37
+ # resources :comments
38
+ # resources :sales do
39
+ # get 'recent', on: :collection
40
+ # end
41
+ # end
42
+
43
+ # Example resource route with concerns:
44
+ # concern :toggleable do
45
+ # post 'toggle'
46
+ # end
47
+ # resources :posts, concerns: :toggleable
48
+ # resources :photos, concerns: :toggleable
49
+
50
+ # Example resource route within a namespace:
51
+ # namespace :admin do
52
+ # # Directs /admin/products/* to Admin::ProductsController
53
+ # # (app/controllers/admin/products_controller.rb)
54
+ # resources :products
55
+ # end
56
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: edf50801f21f2e7a64c7c9d356ce26f5a083c33d942779ffb9853e813a0e6621c4da5a2d81e68152c485f767ef8b765c516debc9f6fd93f983d84ba101ac0a5c
15
+
16
+ test:
17
+ secret_key_base: 2a9b4c57e58b15125dc7a49ef6d7ad7c17d19d6a07eb5f763a2b3f7dc1167179794addf385e352c5b1bc17509e45d72d90e8bdc39d4e8fa560cc945152dc852c
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
Binary file
@@ -0,0 +1,9 @@
1
+ class CreateSubscriptions < ActiveRecord::Migration
2
+ def change
3
+ create_table :subscriptions do |t|
4
+ t.integer :expiration
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,10 @@
1
+ class CreateTirelessWarriors < ActiveRecord::Migration
2
+ def change
3
+ create_table :tireless_warriors do |t|
4
+ t.integer :movements_available
5
+ t.integer :attacks_available
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,29 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20150622001416) do
15
+
16
+ create_table "subscriptions", force: true do |t|
17
+ t.integer "duration"
18
+ t.datetime "created_at"
19
+ t.datetime "updated_at"
20
+ end
21
+
22
+ create_table "tireless_warriors", force: true do |t|
23
+ t.integer "movements_available"
24
+ t.integer "attacks_available"
25
+ t.datetime "created_at"
26
+ t.datetime "updated_at"
27
+ end
28
+
29
+ end
Binary file
@@ -0,0 +1,30 @@
1
+  (156.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.2ms) select sqlite_version(*)
3
+  (225.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateSubscriptions (20150621232010)
6
+  (0.1ms) begin transaction
7
+  (0.6ms) CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "expiration" integer, "created_at" datetime, "updated_at" datetime)
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150621232010"]]
9
+  (155.1ms) commit transaction
10
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
+  (147.4ms) CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "duration" integer, "created_at" datetime, "updated_at" datetime) 
12
+  (185.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
13
+  (0.2ms) select sqlite_version(*)
14
+  (191.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
15
+  (0.3ms) SELECT version FROM "schema_migrations"
16
+  (341.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150621232010')
17
+  (122.6ms) CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "duration" integer, "created_at" datetime, "updated_at" datetime) 
18
+  (82.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
19
+  (0.2ms) select sqlite_version(*)
20
+  (149.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
21
+  (0.2ms) SELECT version FROM "schema_migrations"
22
+  (151.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150621232010')
23
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
24
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
25
+ Migrating to CreateTirelessWarriors (20150622001416)
26
+  (0.1ms) begin transaction
27
+  (0.3ms) CREATE TABLE "tireless_warriors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "movements_available" integer, "attacks_available" integer, "created_at" datetime, "updated_at" datetime) 
28
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150622001416"]]
29
+  (159.2ms) commit transaction
30
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -0,0 +1,716 @@
1
+  (0.2ms) begin transaction
2
+ -----------------------------------
3
+ IntegerWithInfinityTest: test_truth
4
+ -----------------------------------
5
+  (0.1ms) rollback transaction
6
+  (0.2ms) begin transaction
7
+ -----------------------------------
8
+ IntegerWithInfinityTest: test_truth
9
+ -----------------------------------
10
+  (0.1ms) rollback transaction
11
+  (0.1ms) begin transaction
12
+ --------------------------------------------------------------
13
+ ActsAsIntegerInfinitableTest: test_a_number_should_be_the_same
14
+ --------------------------------------------------------------
15
+  (0.0ms) rollback transaction
16
+  (148.7ms) CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "expiration" integer, "created_at" datetime, "updated_at" datetime) 
17
+  (161.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
18
+  (0.2ms) select sqlite_version(*)
19
+  (259.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
20
+  (0.1ms) SELECT version FROM "schema_migrations"
21
+  (167.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150621232010')
22
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
23
+  (0.1ms) begin transaction
24
+ -----------------------------------
25
+ IntegerWithInfinityTest: test_truth
26
+ -----------------------------------
27
+  (0.0ms) rollback transaction
28
+  (0.0ms) begin transaction
29
+ --------------------------------------------------------------
30
+ ActsAsIntegerInfinitableTest: test_a_number_should_be_the_same
31
+ --------------------------------------------------------------
32
+  (0.0ms) rollback transaction
33
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
34
+  (0.1ms) begin transaction
35
+ --------------------------------------------------------------
36
+ ActsAsIntegerInfinitableTest: test_a_number_should_be_the_same
37
+ --------------------------------------------------------------
38
+  (0.0ms) rollback transaction
39
+  (0.1ms) begin transaction
40
+ -----------------------------------
41
+ IntegerWithInfinityTest: test_truth
42
+ -----------------------------------
43
+  (0.0ms) rollback transaction
44
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
45
+  (0.1ms) begin transaction
46
+ --------------------------------------------------------------
47
+ ActsAsIntegerInfinitableTest: test_a_number_should_be_the_same
48
+ --------------------------------------------------------------
49
+  (0.0ms) rollback transaction
50
+  (0.1ms) begin transaction
51
+ -----------------------------------
52
+ IntegerWithInfinityTest: test_truth
53
+ -----------------------------------
54
+  (0.0ms) rollback transaction
55
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
56
+  (0.1ms) begin transaction
57
+ -----------------------------------
58
+ IntegerWithInfinityTest: test_truth
59
+ -----------------------------------
60
+  (0.0ms) rollback transaction
61
+  (0.0ms) begin transaction
62
+ --------------------------------------------------------------
63
+ ActsAsIntegerInfinitableTest: test_a_number_should_be_the_same
64
+ --------------------------------------------------------------
65
+  (0.1ms) rollback transaction
66
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
67
+  (0.1ms) begin transaction
68
+ --------------------------------------------------------------
69
+ ActsAsIntegerInfinitableTest: test_a_number_should_be_the_same
70
+ --------------------------------------------------------------
71
+  (0.1ms) rollback transaction
72
+  (0.0ms) begin transaction
73
+ -----------------------------------
74
+ IntegerWithInfinityTest: test_truth
75
+ -----------------------------------
76
+  (0.0ms) rollback transaction
77
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
78
+  (0.1ms) begin transaction
79
+ -----------------------------------
80
+ IntegerWithInfinityTest: test_truth
81
+ -----------------------------------
82
+  (0.0ms) rollback transaction
83
+  (0.0ms) begin transaction
84
+ --------------------------------------------------------------
85
+ ActsAsIntegerInfinitableTest: test_a_number_should_be_the_same
86
+ --------------------------------------------------------------
87
+  (0.1ms) rollback transaction
88
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
89
+  (0.1ms) begin transaction
90
+ -----------------------------------
91
+ IntegerWithInfinityTest: test_truth
92
+ -----------------------------------
93
+  (0.0ms) rollback transaction
94
+  (0.0ms) begin transaction
95
+ ---------------------------------------------------------------------------
96
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
97
+ ---------------------------------------------------------------------------
98
+  (0.0ms) SAVEPOINT active_record_1
99
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-21 23:26:10.904864"], ["duration", 5], ["updated_at", "2015-06-21 23:26:10.904864"]]
100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
101
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
102
+  (0.1ms) rollback transaction
103
+  (0.0ms) begin transaction
104
+ ---------------------------------------------------------------------------
105
+ ActsAsIntegerInfinitableTest: test_infinity_after_saving_should_be_infinity
106
+ ---------------------------------------------------------------------------
107
+  (0.0ms) SAVEPOINT active_record_1
108
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-21 23:26:10.910854"], ["updated_at", "2015-06-21 23:26:10.910854"]]
109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
111
+  (0.1ms) rollback transaction
112
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
113
+  (0.1ms) begin transaction
114
+ -----------------------------------
115
+ IntegerWithInfinityTest: test_truth
116
+ -----------------------------------
117
+  (0.0ms) rollback transaction
118
+  (0.1ms) begin transaction
119
+ ---------------------------------------------------------------------------
120
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
121
+ ---------------------------------------------------------------------------
122
+  (0.1ms) SAVEPOINT active_record_1
123
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-21 23:31:39.349365"], ["duration", 5], ["updated_at", "2015-06-21 23:31:39.349365"]]
124
+  (0.1ms) RELEASE SAVEPOINT active_record_1
125
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
126
+  (0.1ms) rollback transaction
127
+  (0.1ms) begin transaction
128
+ ---------------------------------------------------------------------------
129
+ ActsAsIntegerInfinitableTest: test_infinity_after_saving_should_be_infinity
130
+ ---------------------------------------------------------------------------
131
+  (0.1ms) SAVEPOINT active_record_1
132
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-21 23:31:39.356449"], ["updated_at", "2015-06-21 23:31:39.356449"]]
133
+  (0.1ms) RELEASE SAVEPOINT active_record_1
134
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
135
+  (0.1ms) rollback transaction
136
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
137
+  (0.1ms) begin transaction
138
+ -----------------------------------
139
+ IntegerWithInfinityTest: test_truth
140
+ -----------------------------------
141
+  (0.0ms) rollback transaction
142
+  (0.0ms) begin transaction
143
+ ---------------------------------------------------------------------------
144
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
145
+ ---------------------------------------------------------------------------
146
+  (0.1ms) SAVEPOINT active_record_1
147
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-21 23:32:31.422638"], ["duration", 5], ["updated_at", "2015-06-21 23:32:31.422638"]]
148
+  (0.1ms) RELEASE SAVEPOINT active_record_1
149
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
150
+  (0.1ms) rollback transaction
151
+  (0.0ms) begin transaction
152
+ ---------------------------------------------------------------------------
153
+ ActsAsIntegerInfinitableTest: test_infinity_after_saving_should_be_infinity
154
+ ---------------------------------------------------------------------------
155
+  (0.0ms) SAVEPOINT active_record_1
156
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-21 23:32:31.428516"], ["updated_at", "2015-06-21 23:32:31.428516"]]
157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
158
+  (0.1ms) rollback transaction
159
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
160
+  (0.1ms) begin transaction
161
+ -----------------------------------
162
+ IntegerWithInfinityTest: test_truth
163
+ -----------------------------------
164
+  (0.1ms) rollback transaction
165
+  (0.1ms) begin transaction
166
+ ---------------------------------------------------------------------------
167
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
168
+ ---------------------------------------------------------------------------
169
+  (0.1ms) SAVEPOINT active_record_1
170
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-21 23:33:01.154539"], ["duration", 5], ["updated_at", "2015-06-21 23:33:01.154539"]]
171
+  (0.1ms) RELEASE SAVEPOINT active_record_1
172
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
173
+  (0.2ms) rollback transaction
174
+  (0.1ms) begin transaction
175
+ ---------------------------------------------------------------------------
176
+ ActsAsIntegerInfinitableTest: test_infinity_after_saving_should_be_infinity
177
+ ---------------------------------------------------------------------------
178
+  (0.1ms) SAVEPOINT active_record_1
179
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-21 23:33:01.161069"], ["updated_at", "2015-06-21 23:33:01.161069"]]
180
+  (0.1ms) RELEASE SAVEPOINT active_record_1
181
+ Subscription Load (0.2ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
182
+  (0.4ms) rollback transaction
183
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
184
+  (0.1ms) begin transaction
185
+ ---------------------------------------------------------------------------
186
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
187
+ ---------------------------------------------------------------------------
188
+  (0.1ms) SAVEPOINT active_record_1
189
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-21 23:34:10.400894"], ["duration", 5], ["updated_at", "2015-06-21 23:34:10.400894"]]
190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
191
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
192
+  (0.2ms) rollback transaction
193
+  (0.0ms) begin transaction
194
+ ---------------------------------------------------------------------------
195
+ ActsAsIntegerInfinitableTest: test_infinity_after_saving_should_be_infinity
196
+ ---------------------------------------------------------------------------
197
+  (0.0ms) SAVEPOINT active_record_1
198
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-21 23:34:10.406985"], ["updated_at", "2015-06-21 23:34:10.406985"]]
199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
200
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
201
+  (0.1ms) rollback transaction
202
+  (0.1ms) begin transaction
203
+ -----------------------------------
204
+ IntegerWithInfinityTest: test_truth
205
+ -----------------------------------
206
+  (0.0ms) rollback transaction
207
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
208
+  (0.1ms) begin transaction
209
+ -----------------------------------
210
+ IntegerWithInfinityTest: test_truth
211
+ -----------------------------------
212
+  (0.0ms) rollback transaction
213
+  (0.1ms) begin transaction
214
+ ---------------------------------------------------------------------------
215
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
216
+ ---------------------------------------------------------------------------
217
+  (0.0ms) SAVEPOINT active_record_1
218
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-21 23:34:30.901611"], ["duration", 5], ["updated_at", "2015-06-21 23:34:30.901611"]]
219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
220
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
221
+  (0.1ms) rollback transaction
222
+  (0.0ms) begin transaction
223
+ ---------------------------------------------------------------------------
224
+ ActsAsIntegerInfinitableTest: test_infinity_after_saving_should_be_infinity
225
+ ---------------------------------------------------------------------------
226
+  (0.0ms) SAVEPOINT active_record_1
227
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-21 23:34:30.907582"], ["updated_at", "2015-06-21 23:34:30.907582"]]
228
+  (0.0ms) RELEASE SAVEPOINT active_record_1
229
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
230
+  (0.1ms) rollback transaction
231
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
232
+  (0.1ms) begin transaction
233
+ ---------------------------------------------------------------------------
234
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
235
+ ---------------------------------------------------------------------------
236
+  (0.1ms) SAVEPOINT active_record_1
237
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-21 23:58:44.901071"], ["duration", 5], ["updated_at", "2015-06-21 23:58:44.901071"]]
238
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
240
+  (0.2ms) rollback transaction
241
+  (0.0ms) begin transaction
242
+ ---------------------------------------------------------------------------
243
+ ActsAsIntegerInfinitableTest: test_infinity_after_saving_should_be_infinity
244
+ ---------------------------------------------------------------------------
245
+  (0.1ms) SAVEPOINT active_record_1
246
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-21 23:58:44.922631"], ["duration", -1], ["updated_at", "2015-06-21 23:58:44.922631"]]
247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
248
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
249
+  (0.2ms) rollback transaction
250
+  (0.1ms) begin transaction
251
+ -----------------------------------
252
+ IntegerWithInfinityTest: test_truth
253
+ -----------------------------------
254
+  (0.1ms) rollback transaction
255
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
256
+  (0.1ms) begin transaction
257
+ -----------------------------------
258
+ IntegerWithInfinityTest: test_truth
259
+ -----------------------------------
260
+  (0.0ms) rollback transaction
261
+  (0.1ms) begin transaction
262
+ ---------------------------------------------------------------------------
263
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
264
+ ---------------------------------------------------------------------------
265
+  (0.0ms) SAVEPOINT active_record_1
266
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-21 23:58:48.703674"], ["duration", 5], ["updated_at", "2015-06-21 23:58:48.703674"]]
267
+  (0.1ms) RELEASE SAVEPOINT active_record_1
268
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
269
+  (0.1ms) rollback transaction
270
+  (0.1ms) begin transaction
271
+ ---------------------------------------------------------------------------
272
+ ActsAsIntegerInfinitableTest: test_infinity_after_saving_should_be_infinity
273
+ ---------------------------------------------------------------------------
274
+  (0.1ms) SAVEPOINT active_record_1
275
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-21 23:58:48.735972"], ["duration", -1], ["updated_at", "2015-06-21 23:58:48.735972"]]
276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
277
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
278
+  (0.1ms) rollback transaction
279
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
280
+  (0.1ms) begin transaction
281
+ ---------------------------------------------------------------------------
282
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
283
+ ---------------------------------------------------------------------------
284
+  (0.1ms) SAVEPOINT active_record_1
285
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:07:02.488189"], ["duration", 5], ["updated_at", "2015-06-22 00:07:02.488189"]]
286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
287
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
288
+  (0.1ms) rollback transaction
289
+  (0.0ms) begin transaction
290
+ ---------------------------------------------------------------------------
291
+ ActsAsIntegerInfinitableTest: test_infinity_after_saving_should_be_infinity
292
+ ---------------------------------------------------------------------------
293
+  (0.0ms) SAVEPOINT active_record_1
294
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:07:02.521679"], ["duration", -1], ["updated_at", "2015-06-22 00:07:02.521679"]]
295
+  (0.0ms) RELEASE SAVEPOINT active_record_1
296
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
297
+  (0.1ms) rollback transaction
298
+  (0.1ms) begin transaction
299
+ -----------------------------------
300
+ IntegerWithInfinityTest: test_truth
301
+ -----------------------------------
302
+  (0.0ms) rollback transaction
303
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
304
+  (0.1ms) begin transaction
305
+ -----------------------------------
306
+ IntegerWithInfinityTest: test_truth
307
+ -----------------------------------
308
+  (0.0ms) rollback transaction
309
+  (0.1ms) begin transaction
310
+ ---------------------------------------------------------------------------
311
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
312
+ ---------------------------------------------------------------------------
313
+  (0.0ms) SAVEPOINT active_record_1
314
+ SQL (0.4ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:09:10.168722"], ["duration", 5], ["updated_at", "2015-06-22 00:09:10.168722"]]
315
+  (0.0ms) RELEASE SAVEPOINT active_record_1
316
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
317
+  (0.1ms) rollback transaction
318
+  (0.1ms) begin transaction
319
+ ---------------------------------------------------------------------------------------------------------
320
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
321
+ ---------------------------------------------------------------------------------------------------------
322
+  (0.0ms) SAVEPOINT active_record_1
323
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 00:09:10.203904"], ["updated_at", "2015-06-22 00:09:10.203904"]]
324
+  (0.1ms) RELEASE SAVEPOINT active_record_1
325
+  (0.1ms) SAVEPOINT active_record_1
326
+ SQL (0.2ms) UPDATE "subscriptions" SET "duration" = ?, "updated_at" = ? WHERE "subscriptions"."id" = 1 [["duration", -1], ["updated_at", "2015-06-22 00:09:10.205155"]]
327
+  (0.1ms) RELEASE SAVEPOINT active_record_1
328
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
329
+  (0.2ms) rollback transaction
330
+  (0.1ms) begin transaction
331
+ ---------------------------------------------------------------------------------
332
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
333
+ ---------------------------------------------------------------------------------
334
+  (0.0ms) SAVEPOINT active_record_1
335
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:09:10.208259"], ["duration", -1], ["updated_at", "2015-06-22 00:09:10.208259"]]
336
+  (0.0ms) RELEASE SAVEPOINT active_record_1
337
+  (0.1ms) rollback transaction
338
+  (0.0ms) begin transaction
339
+ -------------------------------------------------------------------------------------------------
340
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
341
+ -------------------------------------------------------------------------------------------------
342
+  (0.0ms) SAVEPOINT active_record_1
343
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:09:10.209828"], ["duration", -1], ["updated_at", "2015-06-22 00:09:10.209828"]]
344
+  (0.0ms) RELEASE SAVEPOINT active_record_1
345
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
346
+  (0.1ms) rollback transaction
347
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
348
+  (0.1ms) begin transaction
349
+ -----------------------------------
350
+ IntegerWithInfinityTest: test_truth
351
+ -----------------------------------
352
+  (0.0ms) rollback transaction
353
+  (0.1ms) begin transaction
354
+ ---------------------------------------------------------------------------
355
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
356
+ ---------------------------------------------------------------------------
357
+  (0.0ms) SAVEPOINT active_record_1
358
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:11:42.219748"], ["duration", 5], ["updated_at", "2015-06-22 00:11:42.219748"]]
359
+  (0.1ms) RELEASE SAVEPOINT active_record_1
360
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
361
+  (0.1ms) rollback transaction
362
+  (0.0ms) begin transaction
363
+ ---------------------------------------------------------------------------------------------------------
364
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
365
+ ---------------------------------------------------------------------------------------------------------
366
+  (0.0ms) SAVEPOINT active_record_1
367
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 00:11:42.252265"], ["updated_at", "2015-06-22 00:11:42.252265"]]
368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
369
+  (0.0ms) SAVEPOINT active_record_1
370
+ SQL (0.2ms) UPDATE "subscriptions" SET "duration" = ?, "updated_at" = ? WHERE "subscriptions"."id" = 1 [["duration", -1], ["updated_at", "2015-06-22 00:11:42.253350"]]
371
+  (0.0ms) RELEASE SAVEPOINT active_record_1
372
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
373
+  (0.1ms) rollback transaction
374
+  (0.0ms) begin transaction
375
+ ---------------------------------------------------------------------------------
376
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
377
+ ---------------------------------------------------------------------------------
378
+  (0.0ms) SAVEPOINT active_record_1
379
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:11:42.255905"], ["duration", -1], ["updated_at", "2015-06-22 00:11:42.255905"]]
380
+  (0.0ms) RELEASE SAVEPOINT active_record_1
381
+  (0.1ms) rollback transaction
382
+  (0.0ms) begin transaction
383
+ -------------------------------------------------------------------------------------------------
384
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
385
+ -------------------------------------------------------------------------------------------------
386
+  (0.0ms) SAVEPOINT active_record_1
387
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:11:42.257439"], ["duration", -1], ["updated_at", "2015-06-22 00:11:42.257439"]]
388
+  (0.0ms) RELEASE SAVEPOINT active_record_1
389
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
390
+  (0.1ms) rollback transaction
391
+  (0.0ms) begin transaction
392
+ -----------------------------------------------------------
393
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
394
+ -----------------------------------------------------------
395
+  (0.0ms) rollback transaction
396
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
397
+  (141.9ms) CREATE TABLE "subscriptions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "duration" integer, "created_at" datetime, "updated_at" datetime) 
398
+  (175.1ms) CREATE TABLE "tireless_warriors" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "movements_available" integer, "attacks_available" integer, "created_at" datetime, "updated_at" datetime)
399
+  (180.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
400
+  (0.1ms) select sqlite_version(*)
401
+  (167.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
402
+  (0.2ms) SELECT version FROM "schema_migrations"
403
+  (84.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150622001416')
404
+  (92.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150621232010')
405
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
406
+  (0.1ms) begin transaction
407
+ -----------------------------------
408
+ IntegerWithInfinityTest: test_truth
409
+ -----------------------------------
410
+  (0.1ms) rollback transaction
411
+  (0.1ms) begin transaction
412
+ ---------------------------------------------------------------------------
413
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
414
+ ---------------------------------------------------------------------------
415
+  (0.0ms) SAVEPOINT active_record_1
416
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:15:43.815961"], ["duration", 5], ["updated_at", "2015-06-22 00:15:43.815961"]]
417
+  (0.1ms) RELEASE SAVEPOINT active_record_1
418
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
419
+  (0.1ms) rollback transaction
420
+  (0.0ms) begin transaction
421
+ ---------------------------------------------------------------------------------------------------------
422
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
423
+ ---------------------------------------------------------------------------------------------------------
424
+  (0.0ms) SAVEPOINT active_record_1
425
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 00:15:43.851309"], ["updated_at", "2015-06-22 00:15:43.851309"]]
426
+  (0.0ms) RELEASE SAVEPOINT active_record_1
427
+  (0.0ms) SAVEPOINT active_record_1
428
+ SQL (0.2ms) UPDATE "subscriptions" SET "duration" = ?, "updated_at" = ? WHERE "subscriptions"."id" = 1 [["duration", -1], ["updated_at", "2015-06-22 00:15:43.852417"]]
429
+  (0.0ms) RELEASE SAVEPOINT active_record_1
430
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
431
+  (0.1ms) rollback transaction
432
+  (0.0ms) begin transaction
433
+ ---------------------------------------------------------------------------------
434
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
435
+ ---------------------------------------------------------------------------------
436
+  (0.0ms) SAVEPOINT active_record_1
437
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:15:43.854988"], ["duration", -1], ["updated_at", "2015-06-22 00:15:43.854988"]]
438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
439
+  (0.1ms) rollback transaction
440
+  (0.0ms) begin transaction
441
+ -------------------------------------------------------------------------------------------------
442
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
443
+ -------------------------------------------------------------------------------------------------
444
+  (0.0ms) SAVEPOINT active_record_1
445
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:15:43.856500"], ["duration", -1], ["updated_at", "2015-06-22 00:15:43.856500"]]
446
+  (0.0ms) RELEASE SAVEPOINT active_record_1
447
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
448
+  (0.1ms) rollback transaction
449
+  (0.0ms) begin transaction
450
+ -----------------------------------------------------------
451
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
452
+ -----------------------------------------------------------
453
+  (0.1ms) SAVEPOINT active_record_1
454
+ SQL (0.2ms) INSERT INTO "tireless_warriors" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 00:15:43.863114"], ["updated_at", "2015-06-22 00:15:43.863114"]]
455
+  (0.0ms) RELEASE SAVEPOINT active_record_1
456
+  (0.1ms) rollback transaction
457
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
458
+  (0.1ms) begin transaction
459
+ -----------------------------------
460
+ IntegerWithInfinityTest: test_truth
461
+ -----------------------------------
462
+  (0.1ms) rollback transaction
463
+  (0.1ms) begin transaction
464
+ ---------------------------------------------------------------------------
465
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
466
+ ---------------------------------------------------------------------------
467
+  (0.1ms) SAVEPOINT active_record_1
468
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:22:27.550394"], ["duration", 5], ["updated_at", "2015-06-22 00:22:27.550394"]]
469
+  (0.1ms) RELEASE SAVEPOINT active_record_1
470
+ Subscription Load (0.2ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
471
+  (0.1ms) rollback transaction
472
+  (0.1ms) begin transaction
473
+ ---------------------------------------------------------------------------------------------------------
474
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
475
+ ---------------------------------------------------------------------------------------------------------
476
+  (0.1ms) SAVEPOINT active_record_1
477
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 00:22:27.583996"], ["updated_at", "2015-06-22 00:22:27.583996"]]
478
+  (0.0ms) RELEASE SAVEPOINT active_record_1
479
+  (0.0ms) SAVEPOINT active_record_1
480
+ SQL (0.2ms) UPDATE "subscriptions" SET "duration" = ?, "updated_at" = ? WHERE "subscriptions"."id" = 1 [["duration", -1], ["updated_at", "2015-06-22 00:22:27.585379"]]
481
+  (0.1ms) RELEASE SAVEPOINT active_record_1
482
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
483
+  (0.2ms) rollback transaction
484
+  (0.1ms) begin transaction
485
+ ---------------------------------------------------------------------------------
486
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
487
+ ---------------------------------------------------------------------------------
488
+  (0.1ms) SAVEPOINT active_record_1
489
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:22:27.588800"], ["duration", -1], ["updated_at", "2015-06-22 00:22:27.588800"]]
490
+  (0.1ms) RELEASE SAVEPOINT active_record_1
491
+  (0.1ms) rollback transaction
492
+  (0.1ms) begin transaction
493
+ -------------------------------------------------------------------------------------------------
494
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
495
+ -------------------------------------------------------------------------------------------------
496
+  (0.1ms) SAVEPOINT active_record_1
497
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:22:27.590899"], ["duration", -1], ["updated_at", "2015-06-22 00:22:27.590899"]]
498
+  (0.1ms) RELEASE SAVEPOINT active_record_1
499
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
500
+  (0.1ms) rollback transaction
501
+  (0.1ms) begin transaction
502
+ -----------------------------------------------------------
503
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
504
+ -----------------------------------------------------------
505
+  (0.1ms) rollback transaction
506
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
507
+  (0.1ms) begin transaction
508
+ ---------------------------------------------------------------------------
509
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
510
+ ---------------------------------------------------------------------------
511
+  (0.0ms) SAVEPOINT active_record_1
512
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:25:09.850302"], ["duration", 5], ["updated_at", "2015-06-22 00:25:09.850302"]]
513
+  (0.0ms) RELEASE SAVEPOINT active_record_1
514
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
515
+  (0.2ms) rollback transaction
516
+  (0.1ms) begin transaction
517
+ ---------------------------------------------------------------------------------------------------------
518
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
519
+ ---------------------------------------------------------------------------------------------------------
520
+  (0.1ms) SAVEPOINT active_record_1
521
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 00:25:09.883163"], ["updated_at", "2015-06-22 00:25:09.883163"]]
522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
523
+  (0.0ms) SAVEPOINT active_record_1
524
+ SQL (0.2ms) UPDATE "subscriptions" SET "duration" = ?, "updated_at" = ? WHERE "subscriptions"."id" = 1 [["duration", -1], ["updated_at", "2015-06-22 00:25:09.884549"]]
525
+  (0.1ms) RELEASE SAVEPOINT active_record_1
526
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
527
+  (0.1ms) rollback transaction
528
+  (0.1ms) begin transaction
529
+ ---------------------------------------------------------------------------------
530
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
531
+ ---------------------------------------------------------------------------------
532
+  (0.1ms) SAVEPOINT active_record_1
533
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:25:09.887691"], ["duration", -1], ["updated_at", "2015-06-22 00:25:09.887691"]]
534
+  (0.1ms) RELEASE SAVEPOINT active_record_1
535
+  (0.1ms) rollback transaction
536
+  (0.1ms) begin transaction
537
+ -------------------------------------------------------------------------------------------------
538
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
539
+ -------------------------------------------------------------------------------------------------
540
+  (0.1ms) SAVEPOINT active_record_1
541
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:25:09.889690"], ["duration", -1], ["updated_at", "2015-06-22 00:25:09.889690"]]
542
+  (0.1ms) RELEASE SAVEPOINT active_record_1
543
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
544
+  (0.1ms) rollback transaction
545
+  (0.1ms) begin transaction
546
+ -----------------------------------------------------------
547
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
548
+ -----------------------------------------------------------
549
+  (0.0ms) SAVEPOINT active_record_1
550
+ 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:25:09.894715"], ["movements_available", -1], ["updated_at", "2015-06-22 00:25:09.894715"]]
551
+  (0.1ms) RELEASE SAVEPOINT active_record_1
552
+  (0.1ms) rollback transaction
553
+  (0.0ms) begin transaction
554
+ -----------------------------------
555
+ IntegerWithInfinityTest: test_truth
556
+ -----------------------------------
557
+  (0.0ms) rollback transaction
558
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
559
+  (0.1ms) begin transaction
560
+ ---------------------------------------------------------------------------
561
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
562
+ ---------------------------------------------------------------------------
563
+  (0.0ms) SAVEPOINT active_record_1
564
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:25:47.565806"], ["duration", 5], ["updated_at", "2015-06-22 00:25:47.565806"]]
565
+  (0.0ms) RELEASE SAVEPOINT active_record_1
566
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
567
+  (0.1ms) rollback transaction
568
+  (0.0ms) begin transaction
569
+ ---------------------------------------------------------------------------------------------------------
570
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
571
+ ---------------------------------------------------------------------------------------------------------
572
+  (0.0ms) SAVEPOINT active_record_1
573
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 00:25:47.598048"], ["updated_at", "2015-06-22 00:25:47.598048"]]
574
+  (0.0ms) RELEASE SAVEPOINT active_record_1
575
+  (0.0ms) SAVEPOINT active_record_1
576
+ SQL (0.2ms) UPDATE "subscriptions" SET "duration" = ?, "updated_at" = ? WHERE "subscriptions"."id" = 1 [["duration", -1], ["updated_at", "2015-06-22 00:25:47.599143"]]
577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
578
+  (0.2ms) SELECT COUNT(*) FROM "subscriptions" WHERE "subscriptions"."duration" = 0
579
+  (0.5ms) SELECT COUNT(*) FROM "subscriptions" WHERE "subscriptions"."duration" = Infinity
580
+ SQLite3::SQLException: no such column: Infinity: SELECT COUNT(*) FROM "subscriptions" WHERE "subscriptions"."duration" = Infinity
581
+ Subscription Load (0.2ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
582
+  (0.5ms) rollback transaction
583
+  (0.1ms) begin transaction
584
+ ---------------------------------------------------------------------------------
585
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
586
+ ---------------------------------------------------------------------------------
587
+  (0.2ms) SAVEPOINT active_record_1
588
+ SQL (0.4ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:39:21.837732"], ["duration", -1], ["updated_at", "2015-06-22 00:39:21.837732"]]
589
+  (0.2ms) RELEASE SAVEPOINT active_record_1
590
+  (0.3ms) rollback transaction
591
+  (0.1ms) begin transaction
592
+ -------------------------------------------------------------------------------------------------
593
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
594
+ -------------------------------------------------------------------------------------------------
595
+  (0.1ms) SAVEPOINT active_record_1
596
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:39:21.842230"], ["duration", -1], ["updated_at", "2015-06-22 00:39:21.842230"]]
597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
598
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
599
+  (0.1ms) rollback transaction
600
+  (0.0ms) begin transaction
601
+ -----------------------------------------------------------
602
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
603
+ -----------------------------------------------------------
604
+  (0.0ms) SAVEPOINT active_record_1
605
+ SQL (0.3ms) INSERT INTO "tireless_warriors" ("attacks_available", "created_at", "movements_available", "updated_at") VALUES (?, ?, ?, ?) [["attacks_available", -1], ["created_at", "2015-06-22 00:39:21.847372"], ["movements_available", -1], ["updated_at", "2015-06-22 00:39:21.847372"]]
606
+  (0.1ms) RELEASE SAVEPOINT active_record_1
607
+  (0.1ms) rollback transaction
608
+  (0.1ms) begin transaction
609
+ -----------------------------------
610
+ IntegerWithInfinityTest: test_truth
611
+ -----------------------------------
612
+  (0.0ms) rollback transaction
613
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
614
+  (0.1ms) begin transaction
615
+ ---------------------------------------------------------------------------
616
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
617
+ ---------------------------------------------------------------------------
618
+  (0.0ms) SAVEPOINT active_record_1
619
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:39:24.933076"], ["duration", 5], ["updated_at", "2015-06-22 00:39:24.933076"]]
620
+  (0.0ms) RELEASE SAVEPOINT active_record_1
621
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
622
+  (0.1ms) rollback transaction
623
+  (0.0ms) begin transaction
624
+ ---------------------------------------------------------------------------------------------------------
625
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
626
+ ---------------------------------------------------------------------------------------------------------
627
+  (0.0ms) SAVEPOINT active_record_1
628
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 00:39:24.965223"], ["updated_at", "2015-06-22 00:39:24.965223"]]
629
+  (0.1ms) RELEASE SAVEPOINT active_record_1
630
+  (0.0ms) SAVEPOINT active_record_1
631
+ SQL (0.2ms) UPDATE "subscriptions" SET "duration" = ?, "updated_at" = ? WHERE "subscriptions"."id" = 1 [["duration", -1], ["updated_at", "2015-06-22 00:39:24.966322"]]
632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
633
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
634
+  (0.1ms) rollback transaction
635
+  (0.0ms) begin transaction
636
+ ---------------------------------------------------------------------------------
637
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
638
+ ---------------------------------------------------------------------------------
639
+  (0.0ms) SAVEPOINT active_record_1
640
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:39:24.968783"], ["duration", -1], ["updated_at", "2015-06-22 00:39:24.968783"]]
641
+  (0.0ms) RELEASE SAVEPOINT active_record_1
642
+  (0.1ms) rollback transaction
643
+  (0.0ms) begin transaction
644
+ -------------------------------------------------------------------------------------------------
645
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
646
+ -------------------------------------------------------------------------------------------------
647
+  (0.0ms) SAVEPOINT active_record_1
648
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:39:24.970295"], ["duration", -1], ["updated_at", "2015-06-22 00:39:24.970295"]]
649
+  (0.0ms) RELEASE SAVEPOINT active_record_1
650
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
651
+  (0.1ms) rollback transaction
652
+  (0.0ms) begin transaction
653
+ -----------------------------------------------------------
654
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
655
+ -----------------------------------------------------------
656
+  (0.0ms) SAVEPOINT active_record_1
657
+ 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:39:24.974039"], ["movements_available", -1], ["updated_at", "2015-06-22 00:39:24.974039"]]
658
+  (0.1ms) RELEASE SAVEPOINT active_record_1
659
+  (0.1ms) rollback transaction
660
+  (0.1ms) begin transaction
661
+ -----------------------------------
662
+ IntegerWithInfinityTest: test_truth
663
+ -----------------------------------
664
+  (0.0ms) rollback transaction
665
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
666
+  (0.1ms) begin transaction
667
+ ---------------------------------------------------------------------------
668
+ ActsAsIntegerInfinitableTest: test_a_number_after_saving_should_be_the_same
669
+ ---------------------------------------------------------------------------
670
+  (0.0ms) SAVEPOINT active_record_1
671
+ SQL (0.3ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:51:08.002663"], ["duration", 5], ["updated_at", "2015-06-22 00:51:08.002663"]]
672
+  (0.1ms) RELEASE SAVEPOINT active_record_1
673
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
674
+  (0.1ms) rollback transaction
675
+  (0.0ms) begin transaction
676
+ ---------------------------------------------------------------------------------------------------------
677
+ ActsAsIntegerInfinitableTest: test_assign_infinity_to_existing_instace_should_be_infinity_after_reloading
678
+ ---------------------------------------------------------------------------------------------------------
679
+  (0.0ms) SAVEPOINT active_record_1
680
+ SQL (0.2ms) INSERT INTO "subscriptions" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-06-22 00:51:08.010536"], ["updated_at", "2015-06-22 00:51:08.010536"]]
681
+  (0.1ms) RELEASE SAVEPOINT active_record_1
682
+  (0.1ms) SAVEPOINT active_record_1
683
+ SQL (0.2ms) UPDATE "subscriptions" SET "duration" = ?, "updated_at" = ? WHERE "subscriptions"."id" = 1 [["duration", -1], ["updated_at", "2015-06-22 00:51:08.011955"]]
684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
685
+ Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
686
+  (0.2ms) rollback transaction
687
+  (0.0ms) begin transaction
688
+ ---------------------------------------------------------------------------------
689
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity
690
+ ---------------------------------------------------------------------------------
691
+  (0.0ms) SAVEPOINT active_record_1
692
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:51:08.015070"], ["duration", -1], ["updated_at", "2015-06-22 00:51:08.015070"]]
693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
694
+  (0.1ms) rollback transaction
695
+  (0.0ms) begin transaction
696
+ -------------------------------------------------------------------------------------------------
697
+ ActsAsIntegerInfinitableTest: test_assing_infinity_on_creation_should_be_infinity_after_reloading
698
+ -------------------------------------------------------------------------------------------------
699
+  (0.0ms) SAVEPOINT active_record_1
700
+ SQL (0.1ms) INSERT INTO "subscriptions" ("created_at", "duration", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-06-22 00:51:08.016573"], ["duration", -1], ["updated_at", "2015-06-22 00:51:08.016573"]]
701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
702
+ Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."id" = ? LIMIT 1 [["id", 1]]
703
+  (0.1ms) rollback transaction
704
+  (0.0ms) begin transaction
705
+ ----------------------------------------
706
+ ActsAsIntegerInfinitableTest: test_truth
707
+ ----------------------------------------
708
+  (0.0ms) rollback transaction
709
+  (0.0ms) begin transaction
710
+ -----------------------------------------------------------
711
+ ActsAsIntegerInfinitableTest: test_works_on_multiple_fields
712
+ -----------------------------------------------------------
713
+  (0.0ms) SAVEPOINT active_record_1
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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
716
+  (0.1ms) rollback transaction