active_record-resource 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: 8302171b1fb5aea9f8bb9a252a28f5854c9fe2b3
4
- data.tar.gz: fe92a69be2eae6349dfbd8068541856aee48c519
3
+ metadata.gz: f2766e0647727ecd27d63a55331b7c04c1470a06
4
+ data.tar.gz: 625031916c6c301ef2e37070109b9765cc9f6fb3
5
5
  SHA512:
6
- metadata.gz: 479807dc74dc3ada6a9a21e9cec447e762fb47e68408eeee66fb84daa646f92c4c3e62fa603c4ee51fc85aa91321d8838d99036d5dbb7c316f616169f37d0361
7
- data.tar.gz: ffd8a6e040c06f78880f0a03c1491c0301a43646d27bdf44587bdf96693aa8e94acd5010f445efc95623d9fe27788b1d90d5c7be90d05acc3063451854af7c5c
6
+ metadata.gz: b0b88189ef734681aecf670de4ac6605930dfec5222c9f4b9b1631aa3b056467ac9dea61ebae9818be4430f5256a0d01d01ecb186560f67a572cace311296107
7
+ data.tar.gz: db9a0fb62a7631ad51f67a6856b15415f7e1d0f5972e30c5799cd816406a93d3efa7ee1fb02e6fe61ebd40fe60bd544d8851a4f96a262d1b660e88ddfc4ca0a3
@@ -8,24 +8,49 @@ module ActiveRecord
8
8
  # When a class inherits from AR::Base, all models do
9
9
  def self.inherited(child_class)
10
10
  # On the class that Inherits AR::Base
11
- child_class.class_eval do
12
- def self.new(*args)
13
- check_resource_methods
11
+ unless child_class == ActiveRecord::SchemaMigration
12
+ child_class.class_eval do
13
+ def self.new(*args)
14
+ check_resource_methods
14
15
 
15
- super(*args)
16
- end
16
+ super(*args)
17
+ end
18
+
19
+ def handle_delete
20
+ resource_delete_validations
21
+ if self.errors.present?
22
+ return false
23
+ end
24
+ return resource_delete
25
+ end
26
+ end
27
+
28
+ child_class.instance_eval do
29
+ # Add Hooks
30
+ before_create :resource_create
31
+ before_validation(:resource_create_validations, on: :create)
32
+
33
+ before_update :resource_update
34
+ before_validation(:resource_update_validations, on: :update)
35
+
36
+ before_destroy :handle_delete
37
+ end
17
38
  end
18
39
 
19
40
  super
20
41
  end
21
42
 
22
- # Add Hooks
23
- before_create :resource_create
24
- before_validation(:resource_create_validations, on: :create)
43
+
25
44
 
26
45
  def self.check_resource_methods
27
46
  raise not_creatable_error unless method_defined? :resource_create
28
47
  raise no_creation_validations_error unless method_defined? :resource_create_validations
48
+
49
+ raise not_deletable_error unless method_defined? :resource_delete
50
+ raise no_deletable_validations_error unless method_defined? :resource_delete_validations
51
+
52
+ raise not_updatable_error unless method_defined? :resource_delete
53
+ raise no_updatable_validations_error unless method_defined? :resource_delete_validations
29
54
  end
30
55
 
31
56
  def self.not_creatable_error
@@ -35,6 +60,22 @@ module ActiveRecord
35
60
  def self.no_creation_validations_error
36
61
  "The model #{self} is createable, but does not implement #resource_create_validations"
37
62
  end
63
+
64
+ def self.not_deletable_error
65
+ "The model #{self} is deletable, but does not implement #resource_delete"
66
+ end
67
+
68
+ def self.no_deletable_validations_error
69
+ "The model #{self} is deletable, but does not implement #resource_delete_validations"
70
+ end
71
+
72
+ def self.not_updatable_error
73
+ "The model #{self} is updatable, but does not implement #resource_update"
74
+ end
75
+
76
+ def self.no_updatable_validations_error
77
+ "The model #{self} is updatable, but does not implement #resource_update_validations"
78
+ end
38
79
  end
39
80
  end
40
81
 
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Resource
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -1,9 +1,27 @@
1
1
  class Account < ActiveRecord::Base
2
2
  def resource_create_validations
3
- errors[:number] << 'Need a name starting with X please!'
3
+ unless self.number == "valid"
4
+ errors[:number] << 'Need a name starting with X please!'
5
+ end
4
6
  end
5
7
 
6
8
  def resource_create
7
- number = "a"
9
+ self.number = "a"
10
+ end
11
+
12
+ def resource_delete_validations
13
+ true
14
+ end
15
+
16
+ def resource_delete
17
+ true
18
+ end
19
+
20
+ def resource_update
21
+ true
22
+ end
23
+
24
+ def resource_update_validations
25
+ true
8
26
  end
9
27
  end
@@ -0,0 +1,28 @@
1
+ class Deletable < ActiveRecord::Base
2
+ def resource_create_validations
3
+ true
4
+ end
5
+
6
+ def resource_create
7
+ true
8
+ end
9
+
10
+ def resource_delete_validations
11
+ unless self.number == "valid"
12
+ errors[:number] << 'Need a name starting with X please!'
13
+ false
14
+ end
15
+ end
16
+
17
+ def resource_delete
18
+ self.number = "a"
19
+ end
20
+
21
+ def resource_update
22
+ true
23
+ end
24
+
25
+ def resource_update_validations
26
+ true
27
+ end
28
+ end
@@ -0,0 +1,28 @@
1
+ class Updatable < ActiveRecord::Base
2
+ def resource_create_validations
3
+ true
4
+ end
5
+
6
+ def resource_create
7
+ true
8
+ end
9
+
10
+ def resource_delete_validations
11
+ true
12
+ end
13
+
14
+ def resource_delete
15
+ true
16
+ end
17
+
18
+ def resource_update
19
+ self.number = "a"
20
+ end
21
+
22
+ def resource_update_validations
23
+ unless self.number == "valid"
24
+ errors[:number] << 'Need a name starting with X please!'
25
+ false
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,9 @@
1
+ class CreateDeletables < ActiveRecord::Migration
2
+ def change
3
+ create_table :deletables do |t|
4
+ t.string :number
5
+
6
+ t.timestamps null: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ class CreateUpdatables < ActiveRecord::Migration
2
+ def change
3
+ create_table :updatables do |t|
4
+ t.string :number
5
+
6
+ t.timestamps null: false
7
+ end
8
+ end
9
+ end
@@ -11,7 +11,7 @@
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: 20160223204747) do
14
+ ActiveRecord::Schema.define(version: 20160224221749) do
15
15
 
16
16
  create_table "accounts", force: :cascade do |t|
17
17
  t.string "number"
@@ -19,4 +19,16 @@ ActiveRecord::Schema.define(version: 20160223204747) do
19
19
  t.datetime "updated_at", null: false
20
20
  end
21
21
 
22
+ create_table "deletables", force: :cascade do |t|
23
+ t.string "number"
24
+ t.datetime "created_at", null: false
25
+ t.datetime "updated_at", null: false
26
+ end
27
+
28
+ create_table "updatables", force: :cascade do |t|
29
+ t.string "number"
30
+ t.datetime "created_at", null: false
31
+ t.datetime "updated_at", null: false
32
+ end
33
+
22
34
  end
Binary file
@@ -25,3 +25,163 @@ Migrating to CreateAccounts (20160223204747)
25
25
   (0.0ms) rollback transaction
26
26
   (0.1ms) begin transaction
27
27
   (0.0ms) rollback transaction
28
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
29
+ Migrating to CreateDeletables (20160224203842)
30
+  (0.0ms) begin transaction
31
+  (0.3ms) CREATE TABLE "deletables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
32
+  (0.7ms) rollback transaction
33
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
34
+ Migrating to CreateDeletables (20160224203842)
35
+  (0.0ms) begin transaction
36
+  (0.4ms) CREATE TABLE "deletables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
37
+  (1.0ms) rollback transaction
38
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
39
+ Migrating to CreateDeletables (20160224203842)
40
+  (0.0ms) begin transaction
41
+  (0.3ms) CREATE TABLE "deletables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
42
+  (1.0ms) rollback transaction
43
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
44
+ Migrating to CreateDeletables (20160224203842)
45
+  (0.0ms) begin transaction
46
+  (0.3ms) CREATE TABLE "deletables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
47
+  (1.0ms) rollback transaction
48
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
49
+ Migrating to CreateDeletables (20160224203842)
50
+  (0.1ms) begin transaction
51
+  (0.4ms) CREATE TABLE "deletables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
52
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160224203842"]]
53
+  (1.4ms) commit transaction
54
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
55
+  (0.0ms) begin transaction
56
+ SQL (0.9ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 21:07:37.930646"], ["updated_at", "2016-02-24 21:07:37.930646"]]
57
+  (0.7ms) commit transaction
58
+ Account Load (0.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? LIMIT 1 [["id", 2]]
59
+  (0.0ms) begin transaction
60
+ SQL (0.5ms) INSERT INTO "accounts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-24 21:08:14.261920"], ["updated_at", "2016-02-24 21:08:14.261920"]]
61
+  (1.4ms) commit transaction
62
+  (0.0ms) begin transaction
63
+ SQL (1.3ms) INSERT INTO "accounts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-24 21:08:43.036130"], ["updated_at", "2016-02-24 21:08:43.036130"]]
64
+  (1.5ms) commit transaction
65
+  (0.1ms) begin transaction
66
+ SQL (1.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 21:09:13.124319"], ["updated_at", "2016-02-24 21:09:13.124319"]]
67
+  (1.5ms) commit transaction
68
+  (0.1ms) begin transaction
69
+ SQL (0.3ms) INSERT INTO "accounts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-24 21:11:29.846380"], ["updated_at", "2016-02-24 21:11:29.846380"]]
70
+  (1.4ms) commit transaction
71
+  (0.0ms) begin transaction
72
+ SQL (0.5ms) INSERT INTO "accounts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-24 21:11:57.958372"], ["updated_at", "2016-02-24 21:11:57.958372"]]
73
+  (1.6ms) commit transaction
74
+  (0.1ms) begin transaction
75
+ SQL (0.5ms) INSERT INTO "accounts" ("created_at", "updated_at", "number") VALUES (?, ?, ?) [["created_at", "2016-02-24 21:12:46.920507"], ["updated_at", "2016-02-24 21:12:46.920507"], ["number", "a"]]
76
+  (1.5ms) commit transaction
77
+  (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
78
+  (0.1ms) select sqlite_version(*)
79
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
80
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
81
+ Migrating to CreateAccounts (20160223204747)
82
+  (0.0ms) begin transaction
83
+  (0.3ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
84
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160223204747"]]
85
+  (0.8ms) commit transaction
86
+ Migrating to CreateDeletables (20160224203842)
87
+  (0.0ms) begin transaction
88
+  (0.2ms) CREATE TABLE "deletables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
89
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160224203842"]]
90
+  (0.7ms) commit transaction
91
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
92
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
93
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
94
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
95
+  (0.1ms) select sqlite_version(*)
96
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
97
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
98
+ Migrating to CreateAccounts (20160223204747)
99
+  (0.0ms) begin transaction
100
+  (0.3ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
101
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160223204747"]]
102
+  (0.9ms) commit transaction
103
+ Migrating to CreateDeletables (20160224203842)
104
+  (0.0ms) begin transaction
105
+  (0.2ms) CREATE TABLE "deletables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
106
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160224203842"]]
107
+  (0.8ms) commit transaction
108
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
109
+  (0.0ms) begin transaction
110
+  (0.1ms) rollback transaction
111
+  (0.1ms) begin transaction
112
+  (0.1ms) rollback transaction
113
+  (0.4ms) begin transaction
114
+ Fixture Delete (0.6ms) DELETE FROM "deletables"
115
+ Fixture Insert (0.5ms) INSERT INTO "deletables" ("created_at", "updated_at", "id") VALUES ('2016-02-24 21:32:45', '2016-02-24 21:32:45', 980190962)
116
+ Fixture Insert (0.1ms) INSERT INTO "deletables" ("created_at", "updated_at", "id") VALUES ('2016-02-24 21:32:45', '2016-02-24 21:32:45', 298486374)
117
+  (0.8ms) commit transaction
118
+  (0.1ms) SELECT COUNT(*) FROM "deletables"
119
+ Deletable Load (0.1ms) SELECT "deletables".* FROM "deletables" ORDER BY "deletables"."id" ASC LIMIT 1
120
+  (0.1ms) begin transaction
121
+ SQL (0.3ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 298486374]]
122
+  (1.5ms) commit transaction
123
+ Deletable Load (0.1ms) SELECT "deletables".* FROM "deletables" ORDER BY "deletables"."id" ASC LIMIT 1
124
+  (0.1ms) begin transaction
125
+ SQL (0.3ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 980190962]]
126
+  (1.5ms) commit transaction
127
+  (0.0ms) begin transaction
128
+ SQL (0.5ms) INSERT INTO "deletables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-24 21:42:04.710550"], ["updated_at", "2016-02-24 21:42:04.710550"]]
129
+  (1.5ms) commit transaction
130
+  (0.1ms) begin transaction
131
+ SQL (0.4ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 21:46:54.245948"], ["updated_at", "2016-02-24 21:46:54.245948"]]
132
+  (0.5ms) commit transaction
133
+  (0.1ms) begin transaction
134
+ SQL (0.3ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 980190964]]
135
+  (1.1ms) commit transaction
136
+ Deletable Load (0.1ms) SELECT "deletables".* FROM "deletables" ORDER BY "deletables"."id" ASC LIMIT 1
137
+  (0.1ms) begin transaction
138
+  (0.1ms) rollback transaction
139
+  (0.1ms) begin transaction
140
+ SQL (0.4ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 980190963]]
141
+  (0.8ms) commit transaction
142
+  (0.0ms) begin transaction
143
+ SQL (0.6ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 21:51:58.582136"], ["updated_at", "2016-02-24 21:51:58.582136"]]
144
+  (0.7ms) commit transaction
145
+ Deletable Load (0.1ms) SELECT "deletables".* FROM "deletables" ORDER BY "deletables"."id" ASC LIMIT 1
146
+  (0.1ms) begin transaction
147
+  (0.0ms) rollback transaction
148
+ Deletable Load (0.1ms) SELECT "deletables".* FROM "deletables" ORDER BY "deletables"."id" ASC LIMIT 1
149
+  (0.1ms) begin transaction
150
+  (0.0ms) rollback transaction
151
+ Deletable Load (0.1ms) SELECT "deletables".* FROM "deletables" ORDER BY "deletables"."id" ASC LIMIT 1
152
+ Deletable Load (0.1ms) SELECT "deletables".* FROM "deletables" ORDER BY "deletables"."id" ASC LIMIT 1
153
+  (0.1ms) begin transaction
154
+ SQL (1.2ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 980190965]]
155
+  (1.5ms) commit transaction
156
+ Deletable Load (0.1ms) SELECT "deletables".* FROM "deletables" ORDER BY "deletables"."id" ASC LIMIT 1
157
+  (0.1ms) begin transaction
158
+ SQL (0.9ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:02:15.286075"], ["updated_at", "2016-02-24 22:02:15.286075"]]
159
+  (0.8ms) commit transaction
160
+  (0.1ms) begin transaction
161
+ SQL (0.4ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 980190966]]
162
+  (1.6ms) commit transaction
163
+  (0.0ms) begin transaction
164
+ SQL (0.4ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:05:31.134064"], ["updated_at", "2016-02-24 22:05:31.134064"]]
165
+  (1.0ms) commit transaction
166
+  (0.1ms) begin transaction
167
+ SQL (0.5ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 980190967]]
168
+  (2.7ms) commit transaction
169
+  (0.0ms) begin transaction
170
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:07:23.035180"], ["updated_at", "2016-02-24 22:07:23.035180"]]
171
+  (1.4ms) commit transaction
172
+  (0.1ms) begin transaction
173
+ SQL (0.4ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 980190968]]
174
+  (1.2ms) commit transaction
175
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
176
+ Migrating to CreateUpdatables (20160224221749)
177
+  (0.1ms) begin transaction
178
+  (0.4ms) CREATE TABLE "updatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
179
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160224221749"]]
180
+  (0.8ms) commit transaction
181
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
182
+  (0.1ms) begin transaction
183
+ SQL (0.8ms) INSERT INTO "updatables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "1"], ["created_at", "2016-02-24 22:28:19.880240"], ["updated_at", "2016-02-24 22:28:19.880240"]]
184
+  (0.6ms) commit transaction
185
+  (0.1ms) begin transaction
186
+ SQL (1.0ms) UPDATE "updatables" SET "number" = ?, "updated_at" = ? WHERE "updatables"."id" = ? [["number", "a"], ["updated_at", "2016-02-24 22:28:42.012471"], ["id", 1]]
187
+  (0.7ms) commit transaction
@@ -333,3 +333,2791 @@ AccountTest: test_it_calls_the_create_resource_callback_when_created
333
333
   (0.0ms) SAVEPOINT active_record_1
334
334
   (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
335
335
   (0.0ms) rollback transaction
336
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
337
+  (0.1ms) begin transaction
338
+ --------------------------------------
339
+ ActiveRecord::ResourceTest: test_truth
340
+ --------------------------------------
341
+  (0.1ms) rollback transaction
342
+  (0.0ms) begin transaction
343
+ --------------------------------------------------------------------
344
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
345
+ --------------------------------------------------------------------
346
+  (0.1ms) rollback transaction
347
+  (0.0ms) begin transaction
348
+ --------------------------------------------------------------------------------
349
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
350
+ --------------------------------------------------------------------------------
351
+  (0.0ms) rollback transaction
352
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
353
+  (0.1ms) begin transaction
354
+ --------------------------------------------------------------------
355
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
356
+ --------------------------------------------------------------------
357
+  (0.0ms) rollback transaction
358
+  (0.0ms) begin transaction
359
+ --------------------------------------------------------------------------------
360
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
361
+ --------------------------------------------------------------------------------
362
+  (0.0ms) rollback transaction
363
+  (0.0ms) begin transaction
364
+ --------------------------------------------------------------------
365
+ AccountTest: test_it_calls_the_delete_resource_callback_when_deleted
366
+ --------------------------------------------------------------------
367
+  (0.0ms) rollback transaction
368
+  (0.0ms) begin transaction
369
+ --------------------------------------
370
+ ActiveRecord::ResourceTest: test_truth
371
+ --------------------------------------
372
+  (0.0ms) rollback transaction
373
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
374
+  (0.1ms) begin transaction
375
+ --------------------------------------------------------------------
376
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
377
+ --------------------------------------------------------------------
378
+  (0.0ms) SAVEPOINT active_record_1
379
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
380
+  (0.0ms) rollback transaction
381
+  (0.0ms) begin transaction
382
+ --------------------------------------------------------------------------------
383
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
384
+ --------------------------------------------------------------------------------
385
+  (0.0ms) SAVEPOINT active_record_1
386
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
387
+  (0.0ms) rollback transaction
388
+  (0.0ms) begin transaction
389
+ --------------------------------------------------------------------
390
+ AccountTest: test_it_calls_the_delete_resource_callback_when_deleted
391
+ --------------------------------------------------------------------
392
+  (0.0ms) rollback transaction
393
+  (0.0ms) begin transaction
394
+ --------------------------------------
395
+ ActiveRecord::ResourceTest: test_truth
396
+ --------------------------------------
397
+  (0.0ms) rollback transaction
398
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
399
+  (0.1ms) begin transaction
400
+ --------------------------------------
401
+ ActiveRecord::ResourceTest: test_truth
402
+ --------------------------------------
403
+  (0.2ms) rollback transaction
404
+  (0.0ms) begin transaction
405
+ --------------------------------------------------------------------
406
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
407
+ --------------------------------------------------------------------
408
+  (0.0ms) SAVEPOINT active_record_1
409
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
410
+  (0.0ms) rollback transaction
411
+  (0.0ms) begin transaction
412
+ --------------------------------------------------------------------
413
+ AccountTest: test_it_calls_the_delete_resource_callback_when_deleted
414
+ --------------------------------------------------------------------
415
+  (0.0ms) SAVEPOINT active_record_1
416
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
417
+  (0.0ms) rollback transaction
418
+  (0.0ms) begin transaction
419
+ --------------------------------------------------------------------------------
420
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
421
+ --------------------------------------------------------------------------------
422
+  (0.0ms) SAVEPOINT active_record_1
423
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
424
+  (0.0ms) rollback transaction
425
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
426
+  (0.1ms) begin transaction
427
+ --------------------------------------------------------------------
428
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
429
+ --------------------------------------------------------------------
430
+  (0.0ms) SAVEPOINT active_record_1
431
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
432
+  (0.0ms) rollback transaction
433
+  (0.0ms) begin transaction
434
+ --------------------------------------------------------------------------------
435
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
436
+ --------------------------------------------------------------------------------
437
+  (0.0ms) SAVEPOINT active_record_1
438
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
439
+  (0.0ms) rollback transaction
440
+  (0.0ms) begin transaction
441
+ --------------------------------------------------------------------
442
+ AccountTest: test_it_calls_the_delete_resource_callback_when_deleted
443
+ --------------------------------------------------------------------
444
+  (0.0ms) SAVEPOINT active_record_1
445
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
446
+  (0.0ms) rollback transaction
447
+  (0.0ms) begin transaction
448
+ --------------------------------------
449
+ ActiveRecord::ResourceTest: test_truth
450
+ --------------------------------------
451
+  (0.1ms) rollback transaction
452
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
453
+  (0.1ms) begin transaction
454
+ --------------------------------------------------------------------
455
+ AccountTest: test_it_calls_the_delete_resource_callback_when_deleted
456
+ --------------------------------------------------------------------
457
+  (0.0ms) SAVEPOINT active_record_1
458
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
459
+  (0.0ms) rollback transaction
460
+  (0.0ms) begin transaction
461
+ --------------------------------------------------------------------------------
462
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
463
+ --------------------------------------------------------------------------------
464
+  (0.0ms) SAVEPOINT active_record_1
465
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
466
+  (0.0ms) rollback transaction
467
+  (0.0ms) begin transaction
468
+ --------------------------------------------------------------------
469
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
470
+ --------------------------------------------------------------------
471
+  (0.0ms) SAVEPOINT active_record_1
472
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
473
+  (0.0ms) rollback transaction
474
+  (0.0ms) begin transaction
475
+ --------------------------------------
476
+ ActiveRecord::ResourceTest: test_truth
477
+ --------------------------------------
478
+  (0.0ms) rollback transaction
479
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
480
+  (0.1ms) begin transaction
481
+ --------------------------------------
482
+ ActiveRecord::ResourceTest: test_truth
483
+ --------------------------------------
484
+  (0.0ms) rollback transaction
485
+  (0.0ms) begin transaction
486
+ --------------------------------------------------------------------
487
+ AccountTest: test_it_calls_the_delete_resource_callback_when_deleted
488
+ --------------------------------------------------------------------
489
+  (0.0ms) SAVEPOINT active_record_1
490
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
491
+  (0.0ms) rollback transaction
492
+  (0.0ms) begin transaction
493
+ --------------------------------------------------------------------------------
494
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
495
+ --------------------------------------------------------------------------------
496
+  (0.0ms) SAVEPOINT active_record_1
497
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
498
+  (0.0ms) rollback transaction
499
+  (0.0ms) begin transaction
500
+ --------------------------------------------------------------------
501
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
502
+ --------------------------------------------------------------------
503
+  (0.0ms) SAVEPOINT active_record_1
504
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
505
+  (9.2ms) rollback transaction
506
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
507
+  (0.1ms) begin transaction
508
+ --------------------------------------
509
+ ActiveRecord::ResourceTest: test_truth
510
+ --------------------------------------
511
+  (0.0ms) rollback transaction
512
+  (0.0ms) begin transaction
513
+ --------------------------------------------------------------------------------
514
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
515
+ --------------------------------------------------------------------------------
516
+  (0.1ms) SAVEPOINT active_record_1
517
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
518
+  (0.0ms) rollback transaction
519
+  (0.0ms) begin transaction
520
+ --------------------------------------------------------------------
521
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
522
+ --------------------------------------------------------------------
523
+  (0.0ms) SAVEPOINT active_record_1
524
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
525
+  (0.0ms) rollback transaction
526
+  (0.0ms) begin transaction
527
+ --------------------------------------------------------------------
528
+ AccountTest: test_it_calls_the_delete_resource_callback_when_deleted
529
+ --------------------------------------------------------------------
530
+  (0.0ms) SAVEPOINT active_record_1
531
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
532
+  (0.0ms) rollback transaction
533
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
534
+  (0.1ms) begin transaction
535
+ --------------------------------------------------------------------
536
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
537
+ --------------------------------------------------------------------
538
+  (0.0ms) SAVEPOINT active_record_1
539
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
540
+  (0.0ms) rollback transaction
541
+  (0.0ms) begin transaction
542
+ --------------------------------------------------------------------
543
+ AccountTest: test_it_calls_the_delete_resource_callback_when_deleted
544
+ --------------------------------------------------------------------
545
+  (0.0ms) SAVEPOINT active_record_1
546
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
547
+  (0.0ms) rollback transaction
548
+  (0.0ms) begin transaction
549
+ --------------------------------------------------------------------------------
550
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
551
+ --------------------------------------------------------------------------------
552
+  (0.0ms) SAVEPOINT active_record_1
553
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
554
+  (0.0ms) rollback transaction
555
+  (0.0ms) begin transaction
556
+ --------------------------------------
557
+ ActiveRecord::ResourceTest: test_truth
558
+ --------------------------------------
559
+  (0.0ms) rollback transaction
560
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
561
+  (0.1ms) begin transaction
562
+ --------------------------------------------------------------------
563
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
564
+ --------------------------------------------------------------------
565
+  (0.0ms) SAVEPOINT active_record_1
566
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
567
+  (0.0ms) rollback transaction
568
+  (0.0ms) begin transaction
569
+ --------------------------------------------------------------------------------
570
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
571
+ --------------------------------------------------------------------------------
572
+  (0.0ms) SAVEPOINT active_record_1
573
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
574
+  (0.0ms) rollback transaction
575
+  (0.0ms) begin transaction
576
+ --------------------------------------------------------------------
577
+ AccountTest: test_it_calls_the_delete_resource_callback_when_deleted
578
+ --------------------------------------------------------------------
579
+  (0.0ms) SAVEPOINT active_record_1
580
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
581
+  (0.0ms) rollback transaction
582
+  (0.0ms) begin transaction
583
+ --------------------------------------
584
+ ActiveRecord::ResourceTest: test_truth
585
+ --------------------------------------
586
+  (0.0ms) rollback transaction
587
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
588
+  (0.1ms) begin transaction
589
+ --------------------------------------
590
+ ActiveRecord::ResourceTest: test_truth
591
+ --------------------------------------
592
+  (0.0ms) rollback transaction
593
+  (0.0ms) begin transaction
594
+ --------------------------------------------------------------------
595
+ AccountTest: test_it_calls_the_delete_resource_callback_when_deleted
596
+ --------------------------------------------------------------------
597
+  (0.3ms) SAVEPOINT active_record_1
598
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
599
+  (0.0ms) rollback transaction
600
+  (0.0ms) begin transaction
601
+ --------------------------------------------------------------------------------
602
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
603
+ --------------------------------------------------------------------------------
604
+  (0.0ms) SAVEPOINT active_record_1
605
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
606
+  (0.0ms) rollback transaction
607
+  (0.0ms) begin transaction
608
+ --------------------------------------------------------------------
609
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
610
+ --------------------------------------------------------------------
611
+  (0.0ms) SAVEPOINT active_record_1
612
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
613
+  (0.0ms) rollback transaction
614
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
615
+  (0.1ms) begin transaction
616
+ --------------------------------------
617
+ ActiveRecord::ResourceTest: test_truth
618
+ --------------------------------------
619
+  (0.0ms) rollback transaction
620
+  (0.0ms) begin transaction
621
+ --------------------------------------------------------------------
622
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
623
+ --------------------------------------------------------------------
624
+  (0.0ms) SAVEPOINT active_record_1
625
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
626
+  (0.0ms) rollback transaction
627
+  (0.0ms) begin transaction
628
+ --------------------------------------------------------------------------------
629
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
630
+ --------------------------------------------------------------------------------
631
+  (0.0ms) SAVEPOINT active_record_1
632
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
633
+  (0.0ms) rollback transaction
634
+  (0.0ms) begin transaction
635
+ --------------------------------------------------------------------
636
+ AccountTest: test_it_calls_the_delete_resource_callback_when_deleted
637
+ --------------------------------------------------------------------
638
+  (0.3ms) SAVEPOINT active_record_1
639
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
640
+  (0.0ms) rollback transaction
641
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
642
+  (0.1ms) begin transaction
643
+ --------------------------------------
644
+ ActiveRecord::ResourceTest: test_truth
645
+ --------------------------------------
646
+  (0.0ms) rollback transaction
647
+  (0.0ms) begin transaction
648
+ --------------------------------------------------------------------
649
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
650
+ --------------------------------------------------------------------
651
+  (0.0ms) SAVEPOINT active_record_1
652
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
653
+  (0.0ms) rollback transaction
654
+  (0.0ms) begin transaction
655
+ --------------------------------------------------------------------
656
+ AccountTest: test_it_calls_the_delete_resource_callback_when_deleted
657
+ --------------------------------------------------------------------
658
+  (0.0ms) SAVEPOINT active_record_1
659
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
660
+  (0.0ms) rollback transaction
661
+  (0.0ms) begin transaction
662
+ --------------------------------------------------------------------------------
663
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
664
+ --------------------------------------------------------------------------------
665
+  (0.0ms) SAVEPOINT active_record_1
666
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
667
+  (0.0ms) rollback transaction
668
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
669
+  (1.0ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
670
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
671
+  (0.4ms) select sqlite_version(*)
672
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
673
+  (0.1ms) SELECT version FROM "schema_migrations"
674
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160223204747')
675
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
676
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
677
+  (1.1ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
678
+  (1.0ms) CREATE TABLE "deletables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
679
+  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
680
+  (0.0ms) select sqlite_version(*)
681
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
682
+  (0.1ms) SELECT version FROM "schema_migrations"
683
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160224203842')
684
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160223204747')
685
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
686
+  (0.1ms) begin transaction
687
+ --------------------------------------------------------------------
688
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
689
+ --------------------------------------------------------------------
690
+  (0.0ms) rollback transaction
691
+  (0.1ms) begin transaction
692
+ --------------------------------------------------------------------------------
693
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
694
+ --------------------------------------------------------------------------------
695
+  (0.2ms) rollback transaction
696
+  (0.0ms) begin transaction
697
+ --------------------------------------
698
+ ActiveRecord::ResourceTest: test_truth
699
+ --------------------------------------
700
+  (0.0ms) rollback transaction
701
+  (0.0ms) begin transaction
702
+ ----------------------------------------------------------------------
703
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
704
+ ----------------------------------------------------------------------
705
+  (0.0ms) rollback transaction
706
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
707
+  (0.1ms) begin transaction
708
+ ----------------------------------------------------------------------
709
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
710
+ ----------------------------------------------------------------------
711
+  (0.0ms) rollback transaction
712
+  (0.0ms) begin transaction
713
+ --------------------------------------------------------------------------------
714
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
715
+ --------------------------------------------------------------------------------
716
+  (0.0ms) SAVEPOINT active_record_1
717
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 20:47:11.046982"], ["updated_at", "2016-02-24 20:47:11.046982"]]
718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
719
+  (1.1ms) rollback transaction
720
+  (0.1ms) begin transaction
721
+ --------------------------------------------------------------------
722
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
723
+ --------------------------------------------------------------------
724
+  (0.1ms) SAVEPOINT active_record_1
725
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 20:47:11.052210"], ["updated_at", "2016-02-24 20:47:11.052210"]]
726
+  (0.1ms) RELEASE SAVEPOINT active_record_1
727
+  (0.4ms) rollback transaction
728
+  (0.1ms) begin transaction
729
+ --------------------------------------
730
+ ActiveRecord::ResourceTest: test_truth
731
+ --------------------------------------
732
+  (0.0ms) rollback transaction
733
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
734
+  (0.1ms) begin transaction
735
+ --------------------------------------------------------------------
736
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
737
+ --------------------------------------------------------------------
738
+  (0.0ms) SAVEPOINT active_record_1
739
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 20:48:07.527122"], ["updated_at", "2016-02-24 20:48:07.527122"]]
740
+  (0.0ms) RELEASE SAVEPOINT active_record_1
741
+  (1.0ms) rollback transaction
742
+  (0.1ms) begin transaction
743
+ --------------------------------------------------------------------------------
744
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
745
+ --------------------------------------------------------------------------------
746
+  (0.0ms) SAVEPOINT active_record_1
747
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 20:48:07.531866"], ["updated_at", "2016-02-24 20:48:07.531866"]]
748
+  (0.0ms) RELEASE SAVEPOINT active_record_1
749
+  (0.3ms) rollback transaction
750
+  (0.1ms) begin transaction
751
+ --------------------------------------
752
+ ActiveRecord::ResourceTest: test_truth
753
+ --------------------------------------
754
+  (0.0ms) rollback transaction
755
+  (0.0ms) begin transaction
756
+ ----------------------------------------------------------------------
757
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
758
+ ----------------------------------------------------------------------
759
+  (0.0ms) SAVEPOINT active_record_1
760
+ SQL (0.3ms) INSERT INTO "deletables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-24 20:48:07.539441"], ["updated_at", "2016-02-24 20:48:07.539441"]]
761
+  (0.0ms) RELEASE SAVEPOINT active_record_1
762
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
763
+  (0.3ms) rollback transaction
764
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
765
+  (0.1ms) begin transaction
766
+ --------------------------------------
767
+ ActiveRecord::ResourceTest: test_truth
768
+ --------------------------------------
769
+  (0.0ms) rollback transaction
770
+  (0.0ms) begin transaction
771
+ --------------------------------------------------------------------
772
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
773
+ --------------------------------------------------------------------
774
+  (0.0ms) SAVEPOINT active_record_1
775
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 20:49:03.654627"], ["updated_at", "2016-02-24 20:49:03.654627"]]
776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
777
+  (1.0ms) rollback transaction
778
+  (0.1ms) begin transaction
779
+ --------------------------------------------------------------------------------
780
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
781
+ --------------------------------------------------------------------------------
782
+  (0.0ms) SAVEPOINT active_record_1
783
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 20:49:03.659273"], ["updated_at", "2016-02-24 20:49:03.659273"]]
784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
785
+  (0.3ms) rollback transaction
786
+  (0.0ms) begin transaction
787
+ ----------------------------------------------------------------------
788
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
789
+ ----------------------------------------------------------------------
790
+  (0.0ms) SAVEPOINT active_record_1
791
+ SQL (0.2ms) INSERT INTO "deletables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-24 20:49:03.664983"], ["updated_at", "2016-02-24 20:49:03.664983"]]
792
+  (0.0ms) RELEASE SAVEPOINT active_record_1
793
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
794
+  (0.3ms) rollback transaction
795
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
796
+  (0.3ms) begin transaction
797
+ --------------------------------------
798
+ ActiveRecord::ResourceTest: test_truth
799
+ --------------------------------------
800
+  (0.0ms) rollback transaction
801
+  (0.0ms) begin transaction
802
+ --------------------------------------------------------------------------------
803
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
804
+ --------------------------------------------------------------------------------
805
+  (0.0ms) SAVEPOINT active_record_1
806
+ SQL (0.9ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 20:49:55.518754"], ["updated_at", "2016-02-24 20:49:55.518754"]]
807
+  (0.0ms) RELEASE SAVEPOINT active_record_1
808
+  (1.1ms) rollback transaction
809
+  (0.1ms) begin transaction
810
+ --------------------------------------------------------------------
811
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
812
+ --------------------------------------------------------------------
813
+  (0.1ms) SAVEPOINT active_record_1
814
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 20:49:55.524297"], ["updated_at", "2016-02-24 20:49:55.524297"]]
815
+  (0.1ms) RELEASE SAVEPOINT active_record_1
816
+  (0.4ms) rollback transaction
817
+  (0.1ms) begin transaction
818
+ ----------------------------------------------------------------------
819
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
820
+ ----------------------------------------------------------------------
821
+  (0.0ms) SAVEPOINT active_record_1
822
+ SQL (0.3ms) INSERT INTO "deletables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-24 20:49:55.531468"], ["updated_at", "2016-02-24 20:49:55.531468"]]
823
+  (0.0ms) RELEASE SAVEPOINT active_record_1
824
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
825
+  (0.4ms) rollback transaction
826
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
827
+  (0.1ms) begin transaction
828
+ --------------------------------------
829
+ ActiveRecord::ResourceTest: test_truth
830
+ --------------------------------------
831
+  (0.0ms) rollback transaction
832
+  (0.0ms) begin transaction
833
+ ----------------------------------------------------------------------
834
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
835
+ ----------------------------------------------------------------------
836
+  (0.0ms) SAVEPOINT active_record_1
837
+ SQL (0.3ms) INSERT INTO "deletables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-24 20:50:14.821390"], ["updated_at", "2016-02-24 20:50:14.821390"]]
838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
839
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
840
+  (1.1ms) rollback transaction
841
+  (0.1ms) begin transaction
842
+ --------------------------------------------------------------------
843
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
844
+ --------------------------------------------------------------------
845
+  (0.0ms) SAVEPOINT active_record_1
846
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 20:50:14.835740"], ["updated_at", "2016-02-24 20:50:14.835740"]]
847
+  (0.1ms) RELEASE SAVEPOINT active_record_1
848
+  (0.3ms) rollback transaction
849
+  (0.0ms) begin transaction
850
+ --------------------------------------------------------------------------------
851
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
852
+ --------------------------------------------------------------------------------
853
+  (0.0ms) SAVEPOINT active_record_1
854
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 20:50:14.838154"], ["updated_at", "2016-02-24 20:50:14.838154"]]
855
+  (0.0ms) RELEASE SAVEPOINT active_record_1
856
+  (0.3ms) rollback transaction
857
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
858
+  (0.1ms) begin transaction
859
+ --------------------------------------------------------------------
860
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
861
+ --------------------------------------------------------------------
862
+  (0.0ms) SAVEPOINT active_record_1
863
+ SQL (0.6ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 20:51:36.633540"], ["updated_at", "2016-02-24 20:51:36.633540"]]
864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
865
+  (1.0ms) rollback transaction
866
+  (0.1ms) begin transaction
867
+ --------------------------------------------------------------------------------
868
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
869
+ --------------------------------------------------------------------------------
870
+  (0.0ms) SAVEPOINT active_record_1
871
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 20:51:36.638778"], ["updated_at", "2016-02-24 20:51:36.638778"]]
872
+  (0.0ms) RELEASE SAVEPOINT active_record_1
873
+  (0.3ms) rollback transaction
874
+  (0.0ms) begin transaction
875
+ ----------------------------------------------------------------------
876
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
877
+ ----------------------------------------------------------------------
878
+  (0.0ms) SAVEPOINT active_record_1
879
+ SQL (0.2ms) INSERT INTO "deletables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-24 20:51:36.645630"], ["updated_at", "2016-02-24 20:51:36.645630"]]
880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
881
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
882
+  (0.4ms) rollback transaction
883
+  (0.0ms) begin transaction
884
+ --------------------------------------
885
+ ActiveRecord::ResourceTest: test_truth
886
+ --------------------------------------
887
+  (0.0ms) rollback transaction
888
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
889
+  (0.1ms) begin transaction
890
+ --------------------------------------------------------------------
891
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
892
+ --------------------------------------------------------------------
893
+  (0.0ms) SAVEPOINT active_record_1
894
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 20:51:49.797048"], ["updated_at", "2016-02-24 20:51:49.797048"]]
895
+  (0.0ms) RELEASE SAVEPOINT active_record_1
896
+  (0.7ms) rollback transaction
897
+  (0.0ms) begin transaction
898
+ --------------------------------------------------------------------------------
899
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
900
+ --------------------------------------------------------------------------------
901
+  (0.0ms) SAVEPOINT active_record_1
902
+ SQL (0.1ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 20:51:49.801539"], ["updated_at", "2016-02-24 20:51:49.801539"]]
903
+  (0.0ms) RELEASE SAVEPOINT active_record_1
904
+  (0.3ms) rollback transaction
905
+  (0.0ms) begin transaction
906
+ --------------------------------------
907
+ ActiveRecord::ResourceTest: test_truth
908
+ --------------------------------------
909
+  (0.0ms) rollback transaction
910
+  (0.0ms) begin transaction
911
+ ----------------------------------------------------------------------
912
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
913
+ ----------------------------------------------------------------------
914
+  (0.0ms) SAVEPOINT active_record_1
915
+ SQL (0.2ms) INSERT INTO "deletables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-24 20:51:49.807473"], ["updated_at", "2016-02-24 20:51:49.807473"]]
916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
917
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
918
+  (0.3ms) rollback transaction
919
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
920
+  (0.1ms) begin transaction
921
+ --------------------------------------
922
+ ActiveRecord::ResourceTest: test_truth
923
+ --------------------------------------
924
+  (0.0ms) rollback transaction
925
+  (0.1ms) begin transaction
926
+ --------------------------------------------------------------------
927
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
928
+ --------------------------------------------------------------------
929
+  (0.0ms) SAVEPOINT active_record_1
930
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 21:04:49.652013"], ["updated_at", "2016-02-24 21:04:49.652013"]]
931
+  (0.0ms) RELEASE SAVEPOINT active_record_1
932
+  (0.9ms) rollback transaction
933
+  (0.1ms) begin transaction
934
+ --------------------------------------------------------------------------------
935
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
936
+ --------------------------------------------------------------------------------
937
+  (0.0ms) SAVEPOINT active_record_1
938
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 21:04:49.656828"], ["updated_at", "2016-02-24 21:04:49.656828"]]
939
+  (0.0ms) RELEASE SAVEPOINT active_record_1
940
+  (0.3ms) rollback transaction
941
+  (0.0ms) begin transaction
942
+ ----------------------------------------------------------------------
943
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
944
+ ----------------------------------------------------------------------
945
+  (0.0ms) SAVEPOINT active_record_1
946
+ SQL (0.2ms) INSERT INTO "deletables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-24 21:04:49.662157"], ["updated_at", "2016-02-24 21:04:49.662157"]]
947
+  (0.0ms) RELEASE SAVEPOINT active_record_1
948
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
949
+  (0.3ms) rollback transaction
950
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
951
+  (0.1ms) begin transaction
952
+ --------------------------------------
953
+ ActiveRecord::ResourceTest: test_truth
954
+ --------------------------------------
955
+  (0.0ms) rollback transaction
956
+  (0.0ms) begin transaction
957
+ ----------------------------------------------------------------------
958
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
959
+ ----------------------------------------------------------------------
960
+  (0.0ms) SAVEPOINT active_record_1
961
+ SQL (0.4ms) INSERT INTO "deletables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-24 21:05:08.750525"], ["updated_at", "2016-02-24 21:05:08.750525"]]
962
+  (0.0ms) RELEASE SAVEPOINT active_record_1
963
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
964
+  (1.0ms) rollback transaction
965
+  (0.0ms) begin transaction
966
+ --------------------------------------------------------------------
967
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
968
+ --------------------------------------------------------------------
969
+  (0.0ms) SAVEPOINT active_record_1
970
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 21:05:08.763920"], ["updated_at", "2016-02-24 21:05:08.763920"]]
971
+  (0.0ms) RELEASE SAVEPOINT active_record_1
972
+  (0.6ms) rollback transaction
973
+  (0.1ms) begin transaction
974
+ --------------------------------------------------------------------------------
975
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
976
+ --------------------------------------------------------------------------------
977
+  (0.0ms) SAVEPOINT active_record_1
978
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 21:05:08.766279"], ["updated_at", "2016-02-24 21:05:08.766279"]]
979
+  (0.0ms) RELEASE SAVEPOINT active_record_1
980
+  (0.3ms) rollback transaction
981
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
982
+  (0.1ms) begin transaction
983
+ --------------------------------------
984
+ ActiveRecord::ResourceTest: test_truth
985
+ --------------------------------------
986
+  (0.0ms) rollback transaction
987
+  (0.2ms) begin transaction
988
+ --------------------------------------------------------------------
989
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
990
+ --------------------------------------------------------------------
991
+  (0.0ms) SAVEPOINT active_record_1
992
+ SQL (0.5ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 21:05:42.698434"], ["updated_at", "2016-02-24 21:05:42.698434"]]
993
+  (0.0ms) RELEASE SAVEPOINT active_record_1
994
+  (1.0ms) rollback transaction
995
+  (0.1ms) begin transaction
996
+ --------------------------------------------------------------------------------
997
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
998
+ --------------------------------------------------------------------------------
999
+  (0.0ms) SAVEPOINT active_record_1
1000
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 21:05:42.703965"], ["updated_at", "2016-02-24 21:05:42.703965"]]
1001
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1002
+  (0.3ms) rollback transaction
1003
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1004
+  (0.1ms) begin transaction
1005
+ --------------------------------------------------------------------
1006
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1007
+ --------------------------------------------------------------------
1008
+  (0.0ms) SAVEPOINT active_record_1
1009
+ SQL (0.4ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 21:06:18.749423"], ["updated_at", "2016-02-24 21:06:18.749423"]]
1010
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1011
+  (0.8ms) rollback transaction
1012
+  (0.1ms) begin transaction
1013
+ --------------------------------------------------------------------------------
1014
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1015
+ --------------------------------------------------------------------------------
1016
+  (0.0ms) SAVEPOINT active_record_1
1017
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 21:06:18.755556"], ["updated_at", "2016-02-24 21:06:18.755556"]]
1018
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1019
+  (0.3ms) rollback transaction
1020
+  (0.0ms) begin transaction
1021
+ --------------------------------------
1022
+ ActiveRecord::ResourceTest: test_truth
1023
+ --------------------------------------
1024
+  (0.0ms) rollback transaction
1025
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1026
+  (0.1ms) begin transaction
1027
+ --------------------------------------
1028
+ ActiveRecord::ResourceTest: test_truth
1029
+ --------------------------------------
1030
+  (0.0ms) rollback transaction
1031
+  (0.0ms) begin transaction
1032
+ --------------------------------------------------------------------
1033
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1034
+ --------------------------------------------------------------------
1035
+  (0.0ms) SAVEPOINT active_record_1
1036
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 21:06:41.569570"], ["updated_at", "2016-02-24 21:06:41.569570"]]
1037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1038
+  (1.1ms) rollback transaction
1039
+  (0.1ms) begin transaction
1040
+ --------------------------------------------------------------------------------
1041
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1042
+ --------------------------------------------------------------------------------
1043
+  (0.1ms) SAVEPOINT active_record_1
1044
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "123"], ["created_at", "2016-02-24 21:06:41.574569"], ["updated_at", "2016-02-24 21:06:41.574569"]]
1045
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1046
+  (0.4ms) rollback transaction
1047
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1048
+  (0.1ms) begin transaction
1049
+ --------------------------------------------------------------------
1050
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1051
+ --------------------------------------------------------------------
1052
+  (0.0ms) SAVEPOINT active_record_1
1053
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:13:16.225291"], ["updated_at", "2016-02-24 21:13:16.225291"]]
1054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1055
+  (1.1ms) rollback transaction
1056
+  (0.1ms) begin transaction
1057
+ --------------------------------------------------------------------------------
1058
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1059
+ --------------------------------------------------------------------------------
1060
+  (0.1ms) SAVEPOINT active_record_1
1061
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:13:16.230643"], ["updated_at", "2016-02-24 21:13:16.230643"]]
1062
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1063
+  (0.4ms) rollback transaction
1064
+  (0.1ms) begin transaction
1065
+ --------------------------------------
1066
+ ActiveRecord::ResourceTest: test_truth
1067
+ --------------------------------------
1068
+  (0.0ms) rollback transaction
1069
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1070
+  (0.1ms) begin transaction
1071
+ --------------------------------------------------------------------
1072
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1073
+ --------------------------------------------------------------------
1074
+  (0.0ms) SAVEPOINT active_record_1
1075
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1076
+  (0.0ms) rollback transaction
1077
+  (0.0ms) begin transaction
1078
+ --------------------------------------------------------------------------------
1079
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1080
+ --------------------------------------------------------------------------------
1081
+  (0.0ms) SAVEPOINT active_record_1
1082
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1083
+  (0.0ms) rollback transaction
1084
+  (0.0ms) begin transaction
1085
+ --------------------------------------
1086
+ ActiveRecord::ResourceTest: test_truth
1087
+ --------------------------------------
1088
+  (0.0ms) rollback transaction
1089
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1090
+  (0.1ms) begin transaction
1091
+ --------------------------------------------------------------------------------
1092
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1093
+ --------------------------------------------------------------------------------
1094
+  (0.0ms) SAVEPOINT active_record_1
1095
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1096
+  (0.2ms) rollback transaction
1097
+  (0.0ms) begin transaction
1098
+ --------------------------------------------------------------------
1099
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1100
+ --------------------------------------------------------------------
1101
+  (0.0ms) SAVEPOINT active_record_1
1102
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:14:43.517839"], ["updated_at", "2016-02-24 21:14:43.517839"]]
1103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1104
+  (1.0ms) rollback transaction
1105
+  (0.1ms) begin transaction
1106
+ --------------------------------------
1107
+ ActiveRecord::ResourceTest: test_truth
1108
+ --------------------------------------
1109
+  (0.0ms) rollback transaction
1110
+  (0.9ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1111
+  (0.7ms) CREATE TABLE "deletables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1112
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1113
+  (0.1ms) select sqlite_version(*)
1114
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1115
+  (0.1ms) SELECT version FROM "schema_migrations"
1116
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160224203842')
1117
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160223204747')
1118
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1119
+  (0.1ms) begin transaction
1120
+ ----------------------------------------------------------------------
1121
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1122
+ ----------------------------------------------------------------------
1123
+  (0.0ms) SAVEPOINT active_record_1
1124
+ SQL (0.3ms) INSERT INTO "deletables" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-24 21:16:33.025778"], ["updated_at", "2016-02-24 21:16:33.025778"]]
1125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1126
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1127
+  (0.5ms) rollback transaction
1128
+  (0.0ms) begin transaction
1129
+ --------------------------------------
1130
+ ActiveRecord::ResourceTest: test_truth
1131
+ --------------------------------------
1132
+  (0.0ms) rollback transaction
1133
+  (0.0ms) begin transaction
1134
+ --------------------------------------------------------------------
1135
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1136
+ --------------------------------------------------------------------
1137
+  (0.0ms) SAVEPOINT active_record_1
1138
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:16:33.044726"], ["updated_at", "2016-02-24 21:16:33.044726"]]
1139
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1140
+  (0.3ms) rollback transaction
1141
+  (0.0ms) begin transaction
1142
+ --------------------------------------------------------------------------------
1143
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1144
+ --------------------------------------------------------------------------------
1145
+  (0.0ms) SAVEPOINT active_record_1
1146
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1147
+  (0.1ms) rollback transaction
1148
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1149
+  (0.3ms) begin transaction
1150
+ --------------------------------------
1151
+ ActiveRecord::ResourceTest: test_truth
1152
+ --------------------------------------
1153
+  (0.0ms) rollback transaction
1154
+  (0.0ms) begin transaction
1155
+ --------------------------------------------------------------------------------
1156
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1157
+ --------------------------------------------------------------------------------
1158
+  (0.0ms) SAVEPOINT active_record_1
1159
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1160
+  (0.0ms) rollback transaction
1161
+  (0.0ms) begin transaction
1162
+ --------------------------------------------------------------------
1163
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1164
+ --------------------------------------------------------------------
1165
+  (0.0ms) SAVEPOINT active_record_1
1166
+ SQL (0.4ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:18:19.214459"], ["updated_at", "2016-02-24 21:18:19.214459"]]
1167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1168
+  (1.0ms) rollback transaction
1169
+  (0.1ms) begin transaction
1170
+ ----------------------------------------------------------------------
1171
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1172
+ ----------------------------------------------------------------------
1173
+  (0.0ms) rollback transaction
1174
+  (1.1ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1175
+  (1.0ms) CREATE TABLE "deletables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1176
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
1177
+  (0.1ms) select sqlite_version(*)
1178
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1179
+  (0.1ms) SELECT version FROM "schema_migrations"
1180
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160224203842')
1181
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160223204747')
1182
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1183
+  (0.1ms) begin transaction
1184
+ --------------------------------------------------------------------
1185
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1186
+ --------------------------------------------------------------------
1187
+  (0.0ms) SAVEPOINT active_record_1
1188
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:21:03.885224"], ["updated_at", "2016-02-24 21:21:03.885224"]]
1189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1190
+  (1.0ms) rollback transaction
1191
+  (0.1ms) begin transaction
1192
+ --------------------------------------------------------------------------------
1193
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1194
+ --------------------------------------------------------------------------------
1195
+  (0.0ms) SAVEPOINT active_record_1
1196
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1197
+  (0.0ms) rollback transaction
1198
+  (0.0ms) begin transaction
1199
+ ----------------------------------------------------------------------
1200
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1201
+ ----------------------------------------------------------------------
1202
+  (0.0ms) SAVEPOINT active_record_1
1203
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:21:03.895613"], ["updated_at", "2016-02-24 21:21:03.895613"]]
1204
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1205
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1206
+  (0.4ms) rollback transaction
1207
+  (0.1ms) begin transaction
1208
+ --------------------------------------
1209
+ ActiveRecord::ResourceTest: test_truth
1210
+ --------------------------------------
1211
+  (0.0ms) rollback transaction
1212
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1213
+  (0.1ms) begin transaction
1214
+ --------------------------------------------------------------------
1215
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1216
+ --------------------------------------------------------------------
1217
+  (0.0ms) SAVEPOINT active_record_1
1218
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:21:38.909583"], ["updated_at", "2016-02-24 21:21:38.909583"]]
1219
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1220
+  (1.2ms) rollback transaction
1221
+  (0.1ms) begin transaction
1222
+ --------------------------------------------------------------------------------
1223
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1224
+ --------------------------------------------------------------------------------
1225
+  (0.1ms) SAVEPOINT active_record_1
1226
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1227
+  (0.1ms) rollback transaction
1228
+  (0.0ms) begin transaction
1229
+ --------------------------------------
1230
+ ActiveRecord::ResourceTest: test_truth
1231
+ --------------------------------------
1232
+  (0.0ms) rollback transaction
1233
+  (0.0ms) begin transaction
1234
+ ----------------------------------------------------------------------
1235
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1236
+ ----------------------------------------------------------------------
1237
+  (0.0ms) SAVEPOINT active_record_1
1238
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:21:38.924327"], ["updated_at", "2016-02-24 21:21:38.924327"]]
1239
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1240
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1241
+  (0.4ms) rollback transaction
1242
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1243
+  (0.1ms) begin transaction
1244
+ --------------------------------------
1245
+ ActiveRecord::ResourceTest: test_truth
1246
+ --------------------------------------
1247
+  (0.0ms) rollback transaction
1248
+  (0.0ms) begin transaction
1249
+ --------------------------------------------------------------------------------
1250
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1251
+ --------------------------------------------------------------------------------
1252
+  (0.0ms) SAVEPOINT active_record_1
1253
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1254
+  (0.0ms) rollback transaction
1255
+  (0.0ms) begin transaction
1256
+ --------------------------------------------------------------------
1257
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1258
+ --------------------------------------------------------------------
1259
+  (0.0ms) SAVEPOINT active_record_1
1260
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:21:58.878364"], ["updated_at", "2016-02-24 21:21:58.878364"]]
1261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1262
+  (1.0ms) rollback transaction
1263
+  (0.1ms) begin transaction
1264
+ ----------------------------------------------------------------------
1265
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1266
+ ----------------------------------------------------------------------
1267
+  (0.0ms) SAVEPOINT active_record_1
1268
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:21:58.887996"], ["updated_at", "2016-02-24 21:21:58.887996"]]
1269
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1270
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1271
+  (0.3ms) rollback transaction
1272
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1273
+  (0.3ms) begin transaction
1274
+ --------------------------------------
1275
+ ActiveRecord::ResourceTest: test_truth
1276
+ --------------------------------------
1277
+  (0.0ms) rollback transaction
1278
+  (0.0ms) begin transaction
1279
+ ----------------------------------------------------------------------
1280
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1281
+ ----------------------------------------------------------------------
1282
+  (0.0ms) SAVEPOINT active_record_1
1283
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:31:09.330300"], ["updated_at", "2016-02-24 21:31:09.330300"]]
1284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1285
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1286
+  (1.1ms) rollback transaction
1287
+  (0.1ms) begin transaction
1288
+ -------------------------------------------------------------------------------------
1289
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1290
+ -------------------------------------------------------------------------------------
1291
+  (0.1ms) SAVEPOINT active_record_1
1292
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1293
+  (0.1ms) rollback transaction
1294
+  (0.1ms) begin transaction
1295
+ --------------------------------------------------------------------
1296
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1297
+ --------------------------------------------------------------------
1298
+  (0.0ms) SAVEPOINT active_record_1
1299
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:31:09.344539"], ["updated_at", "2016-02-24 21:31:09.344539"]]
1300
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1301
+  (0.4ms) rollback transaction
1302
+  (0.1ms) begin transaction
1303
+ --------------------------------------------------------------------------------
1304
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1305
+ --------------------------------------------------------------------------------
1306
+  (0.0ms) SAVEPOINT active_record_1
1307
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1308
+  (0.0ms) rollback transaction
1309
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1310
+  (0.1ms) begin transaction
1311
+ ----------------------------------------------------------------------
1312
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1313
+ ----------------------------------------------------------------------
1314
+  (0.0ms) SAVEPOINT active_record_1
1315
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:31:30.754207"], ["updated_at", "2016-02-24 21:31:30.754207"]]
1316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1317
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1318
+  (1.1ms) rollback transaction
1319
+  (0.1ms) begin transaction
1320
+ -------------------------------------------------------------------------------------
1321
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1322
+ -------------------------------------------------------------------------------------
1323
+  (0.1ms) SAVEPOINT active_record_1
1324
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1325
+  (0.1ms) rollback transaction
1326
+  (0.0ms) begin transaction
1327
+ --------------------------------------------------------------------
1328
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1329
+ --------------------------------------------------------------------
1330
+  (0.0ms) SAVEPOINT active_record_1
1331
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:31:30.769573"], ["updated_at", "2016-02-24 21:31:30.769573"]]
1332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1333
+  (0.3ms) rollback transaction
1334
+  (0.0ms) begin transaction
1335
+ --------------------------------------------------------------------------------
1336
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1337
+ --------------------------------------------------------------------------------
1338
+  (0.0ms) SAVEPOINT active_record_1
1339
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1340
+  (0.0ms) rollback transaction
1341
+  (0.0ms) begin transaction
1342
+ --------------------------------------
1343
+ ActiveRecord::ResourceTest: test_truth
1344
+ --------------------------------------
1345
+  (0.0ms) rollback transaction
1346
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1347
+  (0.1ms) begin transaction
1348
+ --------------------------------------------------------------------
1349
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1350
+ --------------------------------------------------------------------
1351
+  (0.0ms) SAVEPOINT active_record_1
1352
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:32:27.260631"], ["updated_at", "2016-02-24 21:32:27.260631"]]
1353
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1354
+  (1.0ms) rollback transaction
1355
+  (0.1ms) begin transaction
1356
+ --------------------------------------------------------------------------------
1357
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1358
+ --------------------------------------------------------------------------------
1359
+  (0.0ms) SAVEPOINT active_record_1
1360
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1361
+  (0.0ms) rollback transaction
1362
+  (0.0ms) begin transaction
1363
+ --------------------------------------
1364
+ ActiveRecord::ResourceTest: test_truth
1365
+ --------------------------------------
1366
+  (0.0ms) rollback transaction
1367
+  (0.0ms) begin transaction
1368
+ ----------------------------------------------------------------------
1369
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1370
+ ----------------------------------------------------------------------
1371
+  (0.0ms) SAVEPOINT active_record_1
1372
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:32:27.270825"], ["updated_at", "2016-02-24 21:32:27.270825"]]
1373
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1374
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1375
+  (0.4ms) rollback transaction
1376
+  (0.1ms) begin transaction
1377
+ -------------------------------------------------------------------------------------
1378
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1379
+ -------------------------------------------------------------------------------------
1380
+  (0.0ms) SAVEPOINT active_record_1
1381
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:32:27.275200"], ["updated_at", "2016-02-24 21:32:27.275200"]]
1382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1383
+ SQL (0.0ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1384
+  (0.3ms) rollback transaction
1385
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1386
+  (0.1ms) begin transaction
1387
+ --------------------------------------
1388
+ ActiveRecord::ResourceTest: test_truth
1389
+ --------------------------------------
1390
+  (0.0ms) rollback transaction
1391
+  (0.0ms) begin transaction
1392
+ ----------------------------------------------------------------------
1393
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1394
+ ----------------------------------------------------------------------
1395
+  (0.0ms) rollback transaction
1396
+  (0.0ms) begin transaction
1397
+ -------------------------------------------------------------------------------------
1398
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1399
+ -------------------------------------------------------------------------------------
1400
+  (0.0ms) rollback transaction
1401
+  (0.0ms) begin transaction
1402
+ --------------------------------------------------------------------------------
1403
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1404
+ --------------------------------------------------------------------------------
1405
+  (0.0ms) rollback transaction
1406
+  (0.0ms) begin transaction
1407
+ --------------------------------------------------------------------
1408
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1409
+ --------------------------------------------------------------------
1410
+  (0.0ms) rollback transaction
1411
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1412
+  (0.1ms) begin transaction
1413
+ ----------------------------------------------------------------------
1414
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1415
+ ----------------------------------------------------------------------
1416
+  (0.0ms) rollback transaction
1417
+  (0.1ms) begin transaction
1418
+ -------------------------------------------------------------------------------------
1419
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1420
+ -------------------------------------------------------------------------------------
1421
+  (0.0ms) rollback transaction
1422
+  (0.0ms) begin transaction
1423
+ --------------------------------------
1424
+ ActiveRecord::ResourceTest: test_truth
1425
+ --------------------------------------
1426
+  (0.0ms) rollback transaction
1427
+  (0.0ms) begin transaction
1428
+ --------------------------------------------------------------------
1429
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1430
+ --------------------------------------------------------------------
1431
+  (0.0ms) rollback transaction
1432
+  (0.0ms) begin transaction
1433
+ --------------------------------------------------------------------------------
1434
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1435
+ --------------------------------------------------------------------------------
1436
+  (0.2ms) rollback transaction
1437
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1438
+  (0.1ms) begin transaction
1439
+ --------------------------------------------------------------------------------
1440
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1441
+ --------------------------------------------------------------------------------
1442
+  (0.0ms) SAVEPOINT active_record_1
1443
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1444
+  (0.0ms) rollback transaction
1445
+  (0.0ms) begin transaction
1446
+ --------------------------------------------------------------------
1447
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1448
+ --------------------------------------------------------------------
1449
+  (0.0ms) SAVEPOINT active_record_1
1450
+ SQL (1.0ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:36:00.260205"], ["updated_at", "2016-02-24 21:36:00.260205"]]
1451
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1452
+  (0.3ms) rollback transaction
1453
+  (0.0ms) begin transaction
1454
+ ----------------------------------------------------------------------
1455
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1456
+ ----------------------------------------------------------------------
1457
+  (0.0ms) SAVEPOINT active_record_1
1458
+ SQL (0.5ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 21:36:00.270664"], ["updated_at", "2016-02-24 21:36:00.270664"]]
1459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1460
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1461
+  (0.4ms) rollback transaction
1462
+  (0.1ms) begin transaction
1463
+ -------------------------------------------------------------------------------------
1464
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1465
+ -------------------------------------------------------------------------------------
1466
+  (0.0ms) rollback transaction
1467
+  (0.0ms) begin transaction
1468
+ --------------------------------------
1469
+ ActiveRecord::ResourceTest: test_truth
1470
+ --------------------------------------
1471
+  (0.0ms) rollback transaction
1472
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1473
+  (0.1ms) begin transaction
1474
+ -------------------------------------------------------------------------------------
1475
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1476
+ -------------------------------------------------------------------------------------
1477
+  (0.0ms) rollback transaction
1478
+  (0.0ms) begin transaction
1479
+ --------------------------------------------------------------------
1480
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1481
+ --------------------------------------------------------------------
1482
+  (0.1ms) SAVEPOINT active_record_1
1483
+ SQL (0.4ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:36:30.763311"], ["updated_at", "2016-02-24 21:36:30.763311"]]
1484
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1485
+  (1.0ms) rollback transaction
1486
+  (0.1ms) begin transaction
1487
+ --------------------------------------------------------------------------------
1488
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1489
+ --------------------------------------------------------------------------------
1490
+  (0.0ms) SAVEPOINT active_record_1
1491
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1492
+  (0.0ms) rollback transaction
1493
+  (0.0ms) begin transaction
1494
+ --------------------------------------
1495
+ ActiveRecord::ResourceTest: test_truth
1496
+ --------------------------------------
1497
+  (0.0ms) rollback transaction
1498
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1499
+  (0.1ms) begin transaction
1500
+ --------------------------------------
1501
+ ActiveRecord::ResourceTest: test_truth
1502
+ --------------------------------------
1503
+  (0.0ms) rollback transaction
1504
+  (0.0ms) begin transaction
1505
+ -------------------------------------------------------------------------------------
1506
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1507
+ -------------------------------------------------------------------------------------
1508
+  (0.0ms) rollback transaction
1509
+  (0.0ms) begin transaction
1510
+ --------------------------------------------------------------------
1511
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1512
+ --------------------------------------------------------------------
1513
+  (0.0ms) SAVEPOINT active_record_1
1514
+ SQL (1.0ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:38:36.394237"], ["updated_at", "2016-02-24 21:38:36.394237"]]
1515
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1516
+  (0.3ms) rollback transaction
1517
+  (0.1ms) begin transaction
1518
+ --------------------------------------------------------------------------------
1519
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1520
+ --------------------------------------------------------------------------------
1521
+  (0.0ms) SAVEPOINT active_record_1
1522
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1523
+  (0.0ms) rollback transaction
1524
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1525
+  (0.1ms) begin transaction
1526
+ --------------------------------------
1527
+ ActiveRecord::ResourceTest: test_truth
1528
+ --------------------------------------
1529
+  (0.0ms) rollback transaction
1530
+  (0.0ms) begin transaction
1531
+ -------------------------------------------------------------------------------------
1532
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1533
+ -------------------------------------------------------------------------------------
1534
+  (0.4ms) SELECT COUNT(*) FROM "deletables"
1535
+  (0.1ms) rollback transaction
1536
+  (0.0ms) begin transaction
1537
+ --------------------------------------------------------------------------------
1538
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1539
+ --------------------------------------------------------------------------------
1540
+  (0.0ms) SAVEPOINT active_record_1
1541
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1542
+  (0.0ms) rollback transaction
1543
+  (0.0ms) begin transaction
1544
+ --------------------------------------------------------------------
1545
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1546
+ --------------------------------------------------------------------
1547
+  (0.0ms) SAVEPOINT active_record_1
1548
+ SQL (1.0ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:39:55.290836"], ["updated_at", "2016-02-24 21:39:55.290836"]]
1549
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1550
+  (0.3ms) rollback transaction
1551
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1552
+  (0.1ms) begin transaction
1553
+ --------------------------------------------------------------------------------
1554
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1555
+ --------------------------------------------------------------------------------
1556
+  (0.0ms) SAVEPOINT active_record_1
1557
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1558
+  (0.0ms) rollback transaction
1559
+  (0.0ms) begin transaction
1560
+ --------------------------------------------------------------------
1561
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1562
+ --------------------------------------------------------------------
1563
+  (0.0ms) SAVEPOINT active_record_1
1564
+ SQL (1.0ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:40:10.360328"], ["updated_at", "2016-02-24 21:40:10.360328"]]
1565
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1566
+  (0.3ms) rollback transaction
1567
+  (0.0ms) begin transaction
1568
+ --------------------------------------
1569
+ ActiveRecord::ResourceTest: test_truth
1570
+ --------------------------------------
1571
+  (0.0ms) rollback transaction
1572
+  (0.0ms) begin transaction
1573
+ -------------------------------------------------------------------------------------
1574
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1575
+ -------------------------------------------------------------------------------------
1576
+  (0.3ms) SELECT COUNT(*) FROM "deletables"
1577
+  (0.0ms) rollback transaction
1578
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1579
+  (0.1ms) begin transaction
1580
+ --------------------------------------
1581
+ ActiveRecord::ResourceTest: test_truth
1582
+ --------------------------------------
1583
+  (0.0ms) rollback transaction
1584
+  (0.0ms) begin transaction
1585
+ ----------------------------------------------------------------------
1586
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1587
+ ----------------------------------------------------------------------
1588
+  (0.0ms) rollback transaction
1589
+  (0.0ms) begin transaction
1590
+ -------------------------------------------------------------------------------------
1591
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1592
+ -------------------------------------------------------------------------------------
1593
+  (0.0ms) SAVEPOINT active_record_1
1594
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1595
+  (0.0ms) rollback transaction
1596
+  (0.0ms) begin transaction
1597
+ --------------------------------------------------------------------------------
1598
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1599
+ --------------------------------------------------------------------------------
1600
+  (0.1ms) SAVEPOINT active_record_1
1601
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1602
+  (0.0ms) rollback transaction
1603
+  (0.0ms) begin transaction
1604
+ --------------------------------------------------------------------
1605
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1606
+ --------------------------------------------------------------------
1607
+  (0.0ms) SAVEPOINT active_record_1
1608
+ SQL (0.4ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:42:40.489451"], ["updated_at", "2016-02-24 21:42:40.489451"]]
1609
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1610
+  (1.0ms) rollback transaction
1611
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1612
+  (0.1ms) begin transaction
1613
+ --------------------------------------
1614
+ ActiveRecord::ResourceTest: test_truth
1615
+ --------------------------------------
1616
+  (0.0ms) rollback transaction
1617
+  (0.0ms) begin transaction
1618
+ --------------------------------------------------------------------
1619
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1620
+ --------------------------------------------------------------------
1621
+  (0.0ms) SAVEPOINT active_record_1
1622
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:42:47.564934"], ["updated_at", "2016-02-24 21:42:47.564934"]]
1623
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1624
+  (1.0ms) rollback transaction
1625
+  (0.1ms) begin transaction
1626
+ --------------------------------------------------------------------------------
1627
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1628
+ --------------------------------------------------------------------------------
1629
+  (0.0ms) SAVEPOINT active_record_1
1630
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1631
+  (0.0ms) rollback transaction
1632
+  (0.0ms) begin transaction
1633
+ ----------------------------------------------------------------------
1634
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1635
+ ----------------------------------------------------------------------
1636
+  (0.0ms) rollback transaction
1637
+  (0.0ms) begin transaction
1638
+ -------------------------------------------------------------------------------------
1639
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1640
+ -------------------------------------------------------------------------------------
1641
+  (0.0ms) SAVEPOINT active_record_1
1642
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 21:42:47.574242"], ["updated_at", "2016-02-24 21:42:47.574242"]]
1643
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1644
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1645
+  (0.3ms) rollback transaction
1646
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1647
+  (0.1ms) begin transaction
1648
+ --------------------------------------
1649
+ ActiveRecord::ResourceTest: test_truth
1650
+ --------------------------------------
1651
+  (0.0ms) rollback transaction
1652
+  (0.0ms) begin transaction
1653
+ ----------------------------------------------------------------------
1654
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1655
+ ----------------------------------------------------------------------
1656
+  (0.0ms) rollback transaction
1657
+  (0.0ms) begin transaction
1658
+ -------------------------------------------------------------------------------------
1659
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1660
+ -------------------------------------------------------------------------------------
1661
+  (0.0ms) SAVEPOINT active_record_1
1662
+ SQL (0.5ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 21:43:19.504915"], ["updated_at", "2016-02-24 21:43:19.504915"]]
1663
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1664
+  (1.1ms) rollback transaction
1665
+  (0.4ms) begin transaction
1666
+ --------------------------------------------------------------------
1667
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1668
+ --------------------------------------------------------------------
1669
+  (0.0ms) SAVEPOINT active_record_1
1670
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:43:19.518037"], ["updated_at", "2016-02-24 21:43:19.518037"]]
1671
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1672
+  (0.3ms) rollback transaction
1673
+  (0.0ms) begin transaction
1674
+ --------------------------------------------------------------------------------
1675
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1676
+ --------------------------------------------------------------------------------
1677
+  (0.1ms) SAVEPOINT active_record_1
1678
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1679
+  (0.0ms) rollback transaction
1680
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1681
+  (0.1ms) begin transaction
1682
+ --------------------------------------
1683
+ ActiveRecord::ResourceTest: test_truth
1684
+ --------------------------------------
1685
+  (0.0ms) rollback transaction
1686
+  (0.0ms) begin transaction
1687
+ ----------------------------------------------------------------------
1688
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1689
+ ----------------------------------------------------------------------
1690
+  (0.0ms) rollback transaction
1691
+  (0.0ms) begin transaction
1692
+ -------------------------------------------------------------------------------------
1693
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1694
+ -------------------------------------------------------------------------------------
1695
+  (0.0ms) SAVEPOINT active_record_1
1696
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 21:43:29.950955"], ["updated_at", "2016-02-24 21:43:29.950955"]]
1697
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1698
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1699
+  (1.0ms) rollback transaction
1700
+  (0.1ms) begin transaction
1701
+ --------------------------------------------------------------------
1702
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1703
+ --------------------------------------------------------------------
1704
+  (0.0ms) SAVEPOINT active_record_1
1705
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:43:29.961394"], ["updated_at", "2016-02-24 21:43:29.961394"]]
1706
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1707
+  (0.5ms) rollback transaction
1708
+  (0.0ms) begin transaction
1709
+ --------------------------------------------------------------------------------
1710
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1711
+ --------------------------------------------------------------------------------
1712
+  (0.0ms) SAVEPOINT active_record_1
1713
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1714
+  (0.0ms) rollback transaction
1715
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1716
+  (0.1ms) begin transaction
1717
+ --------------------------------------------------------------------------------
1718
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1719
+ --------------------------------------------------------------------------------
1720
+  (0.0ms) SAVEPOINT active_record_1
1721
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1722
+  (0.1ms) rollback transaction
1723
+  (0.0ms) begin transaction
1724
+ --------------------------------------------------------------------
1725
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1726
+ --------------------------------------------------------------------
1727
+  (0.0ms) SAVEPOINT active_record_1
1728
+ SQL (0.8ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:44:50.758180"], ["updated_at", "2016-02-24 21:44:50.758180"]]
1729
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1730
+  (0.3ms) rollback transaction
1731
+  (0.0ms) begin transaction
1732
+ -------------------------------------------------------------------------------------
1733
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1734
+ -------------------------------------------------------------------------------------
1735
+  (0.0ms) SAVEPOINT active_record_1
1736
+ SQL (0.5ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 21:44:50.768167"], ["updated_at", "2016-02-24 21:44:50.768167"]]
1737
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1738
+  (0.0ms) SAVEPOINT active_record_1
1739
+ SQL (0.4ms) UPDATE "deletables" SET "number" = ?, "updated_at" = ? WHERE "deletables"."id" = ? [["number", "invalid"], ["updated_at", "2016-02-24 21:44:50.769817"], ["id", 1]]
1740
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1741
+ SQL (0.0ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1742
+  (0.4ms) rollback transaction
1743
+  (0.0ms) begin transaction
1744
+ ----------------------------------------------------------------------
1745
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1746
+ ----------------------------------------------------------------------
1747
+  (0.1ms) rollback transaction
1748
+  (0.0ms) begin transaction
1749
+ --------------------------------------
1750
+ ActiveRecord::ResourceTest: test_truth
1751
+ --------------------------------------
1752
+  (0.0ms) rollback transaction
1753
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1754
+  (0.1ms) begin transaction
1755
+ --------------------------------------
1756
+ ActiveRecord::ResourceTest: test_truth
1757
+ --------------------------------------
1758
+  (0.0ms) rollback transaction
1759
+  (0.0ms) begin transaction
1760
+ -------------------------------------------------------------------------------------
1761
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1762
+ -------------------------------------------------------------------------------------
1763
+  (0.0ms) SAVEPOINT active_record_1
1764
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 21:45:39.006878"], ["updated_at", "2016-02-24 21:45:39.006878"]]
1765
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1766
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1767
+  (1.0ms) rollback transaction
1768
+  (0.1ms) begin transaction
1769
+ ----------------------------------------------------------------------
1770
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1771
+ ----------------------------------------------------------------------
1772
+  (0.0ms) rollback transaction
1773
+  (0.0ms) begin transaction
1774
+ --------------------------------------------------------------------
1775
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1776
+ --------------------------------------------------------------------
1777
+  (0.0ms) SAVEPOINT active_record_1
1778
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:45:39.021042"], ["updated_at", "2016-02-24 21:45:39.021042"]]
1779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1780
+  (0.4ms) rollback transaction
1781
+  (0.0ms) begin transaction
1782
+ --------------------------------------------------------------------------------
1783
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1784
+ --------------------------------------------------------------------------------
1785
+  (0.0ms) SAVEPOINT active_record_1
1786
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1787
+  (0.0ms) rollback transaction
1788
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1789
+  (0.1ms) begin transaction
1790
+ ----------------------------------------------------------------------
1791
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1792
+ ----------------------------------------------------------------------
1793
+  (0.0ms) rollback transaction
1794
+  (0.0ms) begin transaction
1795
+ -------------------------------------------------------------------------------------
1796
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1797
+ -------------------------------------------------------------------------------------
1798
+  (0.0ms) SAVEPOINT active_record_1
1799
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 21:45:50.641547"], ["updated_at", "2016-02-24 21:45:50.641547"]]
1800
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1801
+  (0.0ms) SAVEPOINT active_record_1
1802
+ SQL (0.2ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1803
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1804
+  (1.1ms) rollback transaction
1805
+  (0.1ms) begin transaction
1806
+ --------------------------------------------------------------------
1807
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1808
+ --------------------------------------------------------------------
1809
+  (0.0ms) SAVEPOINT active_record_1
1810
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:45:50.654340"], ["updated_at", "2016-02-24 21:45:50.654340"]]
1811
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1812
+  (0.3ms) rollback transaction
1813
+  (0.1ms) begin transaction
1814
+ --------------------------------------------------------------------------------
1815
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1816
+ --------------------------------------------------------------------------------
1817
+  (0.0ms) SAVEPOINT active_record_1
1818
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1819
+  (0.0ms) rollback transaction
1820
+  (0.0ms) begin transaction
1821
+ --------------------------------------
1822
+ ActiveRecord::ResourceTest: test_truth
1823
+ --------------------------------------
1824
+  (0.0ms) rollback transaction
1825
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1826
+  (0.1ms) begin transaction
1827
+ ----------------------------------------------------------------------
1828
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1829
+ ----------------------------------------------------------------------
1830
+  (0.0ms) rollback transaction
1831
+  (0.0ms) begin transaction
1832
+ -------------------------------------------------------------------------------------
1833
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1834
+ -------------------------------------------------------------------------------------
1835
+  (0.0ms) SAVEPOINT active_record_1
1836
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 21:46:10.741946"], ["updated_at", "2016-02-24 21:46:10.741946"]]
1837
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1838
+  (0.0ms) SAVEPOINT active_record_1
1839
+ SQL (0.2ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1840
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1841
+  (1.3ms) rollback transaction
1842
+  (0.0ms) begin transaction
1843
+ --------------------------------------
1844
+ ActiveRecord::ResourceTest: test_truth
1845
+ --------------------------------------
1846
+  (0.0ms) rollback transaction
1847
+  (0.0ms) begin transaction
1848
+ --------------------------------------------------------------------
1849
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1850
+ --------------------------------------------------------------------
1851
+  (0.0ms) SAVEPOINT active_record_1
1852
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:46:10.757233"], ["updated_at", "2016-02-24 21:46:10.757233"]]
1853
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1854
+  (0.3ms) rollback transaction
1855
+  (0.0ms) begin transaction
1856
+ --------------------------------------------------------------------------------
1857
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1858
+ --------------------------------------------------------------------------------
1859
+  (0.0ms) SAVEPOINT active_record_1
1860
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1861
+  (0.0ms) rollback transaction
1862
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1863
+  (0.1ms) begin transaction
1864
+ ----------------------------------------------------------------------
1865
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1866
+ ----------------------------------------------------------------------
1867
+  (0.0ms) rollback transaction
1868
+  (0.0ms) begin transaction
1869
+ -------------------------------------------------------------------------------------
1870
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1871
+ -------------------------------------------------------------------------------------
1872
+  (0.0ms) SAVEPOINT active_record_1
1873
+ SQL (1.0ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 21:51:04.609203"], ["updated_at", "2016-02-24 21:51:04.609203"]]
1874
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1875
+  (0.0ms) SAVEPOINT active_record_1
1876
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1877
+  (0.4ms) rollback transaction
1878
+  (0.0ms) begin transaction
1879
+ --------------------------------------
1880
+ ActiveRecord::ResourceTest: test_truth
1881
+ --------------------------------------
1882
+  (0.0ms) rollback transaction
1883
+  (0.0ms) begin transaction
1884
+ --------------------------------------------------------------------
1885
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1886
+ --------------------------------------------------------------------
1887
+  (0.0ms) SAVEPOINT active_record_1
1888
+ SQL (0.7ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:51:04.628128"], ["updated_at", "2016-02-24 21:51:04.628128"]]
1889
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1890
+  (0.4ms) rollback transaction
1891
+  (0.2ms) begin transaction
1892
+ --------------------------------------------------------------------------------
1893
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1894
+ --------------------------------------------------------------------------------
1895
+  (0.0ms) SAVEPOINT active_record_1
1896
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1897
+  (0.0ms) rollback transaction
1898
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1899
+  (0.1ms) begin transaction
1900
+ --------------------------------------------------------------------
1901
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1902
+ --------------------------------------------------------------------
1903
+  (0.0ms) SAVEPOINT active_record_1
1904
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:51:18.236998"], ["updated_at", "2016-02-24 21:51:18.236998"]]
1905
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1906
+  (1.1ms) rollback transaction
1907
+  (0.1ms) begin transaction
1908
+ --------------------------------------------------------------------------------
1909
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1910
+ --------------------------------------------------------------------------------
1911
+  (0.0ms) SAVEPOINT active_record_1
1912
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1913
+  (0.0ms) rollback transaction
1914
+  (0.1ms) begin transaction
1915
+ -------------------------------------------------------------------------------------
1916
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1917
+ -------------------------------------------------------------------------------------
1918
+  (0.0ms) SAVEPOINT active_record_1
1919
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 21:51:18.248974"], ["updated_at", "2016-02-24 21:51:18.248974"]]
1920
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1921
+  (0.0ms) SAVEPOINT active_record_1
1922
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1923
+  (0.4ms) rollback transaction
1924
+  (0.0ms) begin transaction
1925
+ ----------------------------------------------------------------------
1926
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1927
+ ----------------------------------------------------------------------
1928
+  (0.0ms) SAVEPOINT active_record_1
1929
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 21:51:18.252071"], ["updated_at", "2016-02-24 21:51:18.252071"]]
1930
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1931
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1932
+  (0.3ms) rollback transaction
1933
+  (0.0ms) begin transaction
1934
+ --------------------------------------
1935
+ ActiveRecord::ResourceTest: test_truth
1936
+ --------------------------------------
1937
+  (0.2ms) rollback transaction
1938
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1939
+  (0.1ms) begin transaction
1940
+ ----------------------------------------------------------------------
1941
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
1942
+ ----------------------------------------------------------------------
1943
+  (0.0ms) SAVEPOINT active_record_1
1944
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 21:54:10.523141"], ["updated_at", "2016-02-24 21:54:10.523141"]]
1945
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1946
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1947
+  (1.0ms) rollback transaction
1948
+  (0.1ms) begin transaction
1949
+ -------------------------------------------------------------------------------------
1950
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
1951
+ -------------------------------------------------------------------------------------
1952
+  (0.0ms) SAVEPOINT active_record_1
1953
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 21:54:10.530272"], ["updated_at", "2016-02-24 21:54:10.530272"]]
1954
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1955
+  (0.0ms) SAVEPOINT active_record_1
1956
+ SQL (0.2ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
1957
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1958
+  (0.5ms) rollback transaction
1959
+  (0.0ms) begin transaction
1960
+ --------------------------------------------------------------------
1961
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1962
+ --------------------------------------------------------------------
1963
+  (0.0ms) SAVEPOINT active_record_1
1964
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:54:10.536564"], ["updated_at", "2016-02-24 21:54:10.536564"]]
1965
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1966
+  (0.4ms) rollback transaction
1967
+  (0.0ms) begin transaction
1968
+ --------------------------------------------------------------------------------
1969
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1970
+ --------------------------------------------------------------------------------
1971
+  (0.0ms) SAVEPOINT active_record_1
1972
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1973
+  (0.0ms) rollback transaction
1974
+  (0.0ms) begin transaction
1975
+ --------------------------------------
1976
+ ActiveRecord::ResourceTest: test_truth
1977
+ --------------------------------------
1978
+  (0.0ms) rollback transaction
1979
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1980
+  (0.1ms) begin transaction
1981
+ --------------------------------------------------------------------
1982
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
1983
+ --------------------------------------------------------------------
1984
+  (0.0ms) SAVEPOINT active_record_1
1985
+ SQL (0.6ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:54:43.720148"], ["updated_at", "2016-02-24 21:54:43.720148"]]
1986
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1987
+  (0.8ms) rollback transaction
1988
+  (0.1ms) begin transaction
1989
+ --------------------------------------------------------------------------------
1990
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
1991
+ --------------------------------------------------------------------------------
1992
+  (0.0ms) SAVEPOINT active_record_1
1993
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1994
+  (0.0ms) rollback transaction
1995
+  (0.0ms) begin transaction
1996
+ --------------------------------------
1997
+ ActiveRecord::ResourceTest: test_truth
1998
+ --------------------------------------
1999
+  (0.0ms) rollback transaction
2000
+  (0.0ms) begin transaction
2001
+ -------------------------------------------------------------------------------------
2002
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2003
+ -------------------------------------------------------------------------------------
2004
+  (0.0ms) SAVEPOINT active_record_1
2005
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 21:54:43.732037"], ["updated_at", "2016-02-24 21:54:43.732037"]]
2006
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2007
+  (0.0ms) SAVEPOINT active_record_1
2008
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2009
+  (0.4ms) rollback transaction
2010
+  (0.2ms) begin transaction
2011
+ ----------------------------------------------------------------------
2012
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2013
+ ----------------------------------------------------------------------
2014
+  (0.0ms) SAVEPOINT active_record_1
2015
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 21:54:43.734985"], ["updated_at", "2016-02-24 21:54:43.734985"]]
2016
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2017
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2018
+  (0.3ms) rollback transaction
2019
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2020
+  (0.1ms) begin transaction
2021
+ --------------------------------------
2022
+ ActiveRecord::ResourceTest: test_truth
2023
+ --------------------------------------
2024
+  (0.0ms) rollback transaction
2025
+  (0.0ms) begin transaction
2026
+ ----------------------------------------------------------------------
2027
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2028
+ ----------------------------------------------------------------------
2029
+  (0.0ms) SAVEPOINT active_record_1
2030
+ SQL (0.4ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 21:55:17.860486"], ["updated_at", "2016-02-24 21:55:17.860486"]]
2031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2032
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2033
+  (1.1ms) rollback transaction
2034
+  (0.1ms) begin transaction
2035
+ -------------------------------------------------------------------------------------
2036
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2037
+ -------------------------------------------------------------------------------------
2038
+  (0.1ms) SAVEPOINT active_record_1
2039
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 21:55:17.867753"], ["updated_at", "2016-02-24 21:55:17.867753"]]
2040
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2041
+  (0.0ms) SAVEPOINT active_record_1
2042
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2043
+  (0.4ms) rollback transaction
2044
+  (0.0ms) begin transaction
2045
+ --------------------------------------------------------------------
2046
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2047
+ --------------------------------------------------------------------
2048
+  (0.1ms) SAVEPOINT active_record_1
2049
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:55:17.876140"], ["updated_at", "2016-02-24 21:55:17.876140"]]
2050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2051
+  (0.3ms) rollback transaction
2052
+  (0.1ms) begin transaction
2053
+ --------------------------------------------------------------------------------
2054
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2055
+ --------------------------------------------------------------------------------
2056
+  (0.0ms) SAVEPOINT active_record_1
2057
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2058
+  (0.0ms) rollback transaction
2059
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2060
+  (0.1ms) begin transaction
2061
+ -------------------------------------------------------------------------------------
2062
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2063
+ -------------------------------------------------------------------------------------
2064
+  (0.0ms) SAVEPOINT active_record_1
2065
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 21:55:29.873608"], ["updated_at", "2016-02-24 21:55:29.873608"]]
2066
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2067
+  (0.0ms) SAVEPOINT active_record_1
2068
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2069
+  (1.1ms) rollback transaction
2070
+  (0.1ms) begin transaction
2071
+ ----------------------------------------------------------------------
2072
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2073
+ ----------------------------------------------------------------------
2074
+  (0.1ms) SAVEPOINT active_record_1
2075
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 21:55:29.883150"], ["updated_at", "2016-02-24 21:55:29.883150"]]
2076
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2077
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2078
+  (0.3ms) rollback transaction
2079
+  (0.0ms) begin transaction
2080
+ --------------------------------------
2081
+ ActiveRecord::ResourceTest: test_truth
2082
+ --------------------------------------
2083
+  (0.0ms) rollback transaction
2084
+  (0.0ms) begin transaction
2085
+ --------------------------------------------------------------------
2086
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2087
+ --------------------------------------------------------------------
2088
+  (0.0ms) SAVEPOINT active_record_1
2089
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:55:29.894107"], ["updated_at", "2016-02-24 21:55:29.894107"]]
2090
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2091
+  (0.4ms) rollback transaction
2092
+  (0.0ms) begin transaction
2093
+ --------------------------------------------------------------------------------
2094
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2095
+ --------------------------------------------------------------------------------
2096
+  (0.0ms) SAVEPOINT active_record_1
2097
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2098
+  (0.0ms) rollback transaction
2099
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2100
+  (0.1ms) begin transaction
2101
+ --------------------------------------
2102
+ ActiveRecord::ResourceTest: test_truth
2103
+ --------------------------------------
2104
+  (0.0ms) rollback transaction
2105
+  (0.0ms) begin transaction
2106
+ ----------------------------------------------------------------------
2107
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2108
+ ----------------------------------------------------------------------
2109
+  (0.0ms) SAVEPOINT active_record_1
2110
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 21:55:50.048208"], ["updated_at", "2016-02-24 21:55:50.048208"]]
2111
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2112
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2113
+  (1.0ms) rollback transaction
2114
+  (0.1ms) begin transaction
2115
+ -------------------------------------------------------------------------------------
2116
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2117
+ -------------------------------------------------------------------------------------
2118
+  (0.0ms) SAVEPOINT active_record_1
2119
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 21:55:50.054923"], ["updated_at", "2016-02-24 21:55:50.054923"]]
2120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2121
+  (0.0ms) SAVEPOINT active_record_1
2122
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2123
+  (0.3ms) rollback transaction
2124
+  (0.0ms) begin transaction
2125
+ --------------------------------------------------------------------------------
2126
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2127
+ --------------------------------------------------------------------------------
2128
+  (0.0ms) SAVEPOINT active_record_1
2129
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2130
+  (0.0ms) rollback transaction
2131
+  (0.0ms) begin transaction
2132
+ --------------------------------------------------------------------
2133
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2134
+ --------------------------------------------------------------------
2135
+  (0.0ms) SAVEPOINT active_record_1
2136
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:55:50.061472"], ["updated_at", "2016-02-24 21:55:50.061472"]]
2137
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2138
+  (0.3ms) rollback transaction
2139
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2140
+  (0.1ms) begin transaction
2141
+ ----------------------------------------------------------------------
2142
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2143
+ ----------------------------------------------------------------------
2144
+  (0.0ms) rollback transaction
2145
+  (0.0ms) begin transaction
2146
+ -------------------------------------------------------------------------------------
2147
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2148
+ -------------------------------------------------------------------------------------
2149
+  (0.0ms) SAVEPOINT active_record_1
2150
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 21:56:03.083137"], ["updated_at", "2016-02-24 21:56:03.083137"]]
2151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2152
+  (0.0ms) SAVEPOINT active_record_1
2153
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2154
+  (1.1ms) rollback transaction
2155
+  (0.1ms) begin transaction
2156
+ --------------------------------------------------------------------
2157
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2158
+ --------------------------------------------------------------------
2159
+  (0.0ms) SAVEPOINT active_record_1
2160
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:56:03.097138"], ["updated_at", "2016-02-24 21:56:03.097138"]]
2161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2162
+  (0.3ms) rollback transaction
2163
+  (0.0ms) begin transaction
2164
+ --------------------------------------------------------------------------------
2165
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2166
+ --------------------------------------------------------------------------------
2167
+  (0.0ms) SAVEPOINT active_record_1
2168
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2169
+  (0.0ms) rollback transaction
2170
+  (0.0ms) begin transaction
2171
+ --------------------------------------
2172
+ ActiveRecord::ResourceTest: test_truth
2173
+ --------------------------------------
2174
+  (0.0ms) rollback transaction
2175
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2176
+  (0.1ms) begin transaction
2177
+ --------------------------------------------------------------------
2178
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2179
+ --------------------------------------------------------------------
2180
+  (0.0ms) SAVEPOINT active_record_1
2181
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 21:56:57.402886"], ["updated_at", "2016-02-24 21:56:57.402886"]]
2182
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2183
+  (0.7ms) rollback transaction
2184
+  (0.0ms) begin transaction
2185
+ --------------------------------------------------------------------------------
2186
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2187
+ --------------------------------------------------------------------------------
2188
+  (0.0ms) SAVEPOINT active_record_1
2189
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2190
+  (0.0ms) rollback transaction
2191
+  (0.0ms) begin transaction
2192
+ ----------------------------------------------------------------------
2193
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2194
+ ----------------------------------------------------------------------
2195
+  (0.0ms) rollback transaction
2196
+  (0.0ms) begin transaction
2197
+ -------------------------------------------------------------------------------------
2198
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2199
+ -------------------------------------------------------------------------------------
2200
+  (0.0ms) SAVEPOINT active_record_1
2201
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 21:56:57.412640"], ["updated_at", "2016-02-24 21:56:57.412640"]]
2202
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2203
+  (0.0ms) SAVEPOINT active_record_1
2204
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2205
+  (0.3ms) rollback transaction
2206
+  (0.0ms) begin transaction
2207
+ --------------------------------------
2208
+ ActiveRecord::ResourceTest: test_truth
2209
+ --------------------------------------
2210
+  (0.0ms) rollback transaction
2211
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2212
+  (0.1ms) begin transaction
2213
+ -------------------------------------------------------------------------------------
2214
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2215
+ -------------------------------------------------------------------------------------
2216
+  (0.0ms) SAVEPOINT active_record_1
2217
+ SQL (0.4ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 22:01:22.197160"], ["updated_at", "2016-02-24 22:01:22.197160"]]
2218
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2219
+  (0.0ms) SAVEPOINT active_record_1
2220
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2221
+  (1.1ms) rollback transaction
2222
+  (0.1ms) begin transaction
2223
+ ----------------------------------------------------------------------
2224
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2225
+ ----------------------------------------------------------------------
2226
+  (0.0ms) rollback transaction
2227
+  (0.1ms) begin transaction
2228
+ --------------------------------------
2229
+ ActiveRecord::ResourceTest: test_truth
2230
+ --------------------------------------
2231
+  (0.0ms) rollback transaction
2232
+  (0.1ms) begin transaction
2233
+ --------------------------------------------------------------------
2234
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2235
+ --------------------------------------------------------------------
2236
+  (0.0ms) SAVEPOINT active_record_1
2237
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:01:22.214232"], ["updated_at", "2016-02-24 22:01:22.214232"]]
2238
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2239
+  (0.3ms) rollback transaction
2240
+  (0.0ms) begin transaction
2241
+ --------------------------------------------------------------------------------
2242
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2243
+ --------------------------------------------------------------------------------
2244
+  (0.0ms) SAVEPOINT active_record_1
2245
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2246
+  (0.0ms) rollback transaction
2247
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2248
+  (0.1ms) begin transaction
2249
+ --------------------------------------
2250
+ ActiveRecord::ResourceTest: test_truth
2251
+ --------------------------------------
2252
+  (0.0ms) rollback transaction
2253
+  (0.0ms) begin transaction
2254
+ ----------------------------------------------------------------------
2255
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2256
+ ----------------------------------------------------------------------
2257
+  (0.0ms) SAVEPOINT active_record_1
2258
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:01:33.885110"], ["updated_at", "2016-02-24 22:01:33.885110"]]
2259
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2260
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2261
+  (1.0ms) rollback transaction
2262
+  (0.1ms) begin transaction
2263
+ -------------------------------------------------------------------------------------
2264
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2265
+ -------------------------------------------------------------------------------------
2266
+  (0.0ms) SAVEPOINT active_record_1
2267
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 22:01:33.892376"], ["updated_at", "2016-02-24 22:01:33.892376"]]
2268
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2269
+  (0.0ms) SAVEPOINT active_record_1
2270
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2271
+  (0.3ms) rollback transaction
2272
+  (0.0ms) begin transaction
2273
+ --------------------------------------------------------------------
2274
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2275
+ --------------------------------------------------------------------
2276
+  (0.1ms) SAVEPOINT active_record_1
2277
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:01:33.898853"], ["updated_at", "2016-02-24 22:01:33.898853"]]
2278
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2279
+  (0.3ms) rollback transaction
2280
+  (0.0ms) begin transaction
2281
+ --------------------------------------------------------------------------------
2282
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2283
+ --------------------------------------------------------------------------------
2284
+  (0.0ms) SAVEPOINT active_record_1
2285
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2286
+  (0.0ms) rollback transaction
2287
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2288
+  (0.1ms) begin transaction
2289
+ ----------------------------------------------------------------------
2290
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2291
+ ----------------------------------------------------------------------
2292
+  (0.0ms) SAVEPOINT active_record_1
2293
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:03:46.172319"], ["updated_at", "2016-02-24 22:03:46.172319"]]
2294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2295
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2296
+  (0.3ms) rollback transaction
2297
+  (0.0ms) begin transaction
2298
+ -------------------------------------------------------------------------------------
2299
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2300
+ -------------------------------------------------------------------------------------
2301
+  (0.0ms) SAVEPOINT active_record_1
2302
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 22:03:46.178371"], ["updated_at", "2016-02-24 22:03:46.178371"]]
2303
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2304
+  (0.0ms) SAVEPOINT active_record_1
2305
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2306
+  (0.3ms) rollback transaction
2307
+  (0.1ms) begin transaction
2308
+ --------------------------------------------------------------------------------
2309
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2310
+ --------------------------------------------------------------------------------
2311
+  (0.1ms) SAVEPOINT active_record_1
2312
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2313
+  (0.0ms) rollback transaction
2314
+  (0.0ms) begin transaction
2315
+ --------------------------------------------------------------------
2316
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2317
+ --------------------------------------------------------------------
2318
+  (0.0ms) SAVEPOINT active_record_1
2319
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:03:46.187925"], ["updated_at", "2016-02-24 22:03:46.187925"]]
2320
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2321
+  (0.4ms) rollback transaction
2322
+  (0.0ms) begin transaction
2323
+ --------------------------------------
2324
+ ActiveRecord::ResourceTest: test_truth
2325
+ --------------------------------------
2326
+  (0.0ms) rollback transaction
2327
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2328
+  (0.1ms) begin transaction
2329
+ --------------------------------------
2330
+ ActiveRecord::ResourceTest: test_truth
2331
+ --------------------------------------
2332
+  (0.0ms) rollback transaction
2333
+  (0.0ms) begin transaction
2334
+ -------------------------------------------------------------------------------------
2335
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2336
+ -------------------------------------------------------------------------------------
2337
+  (0.0ms) SAVEPOINT active_record_1
2338
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 22:04:11.424123"], ["updated_at", "2016-02-24 22:04:11.424123"]]
2339
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2340
+  (0.0ms) SAVEPOINT active_record_1
2341
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2342
+  (1.0ms) rollback transaction
2343
+  (0.1ms) begin transaction
2344
+ ----------------------------------------------------------------------
2345
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2346
+ ----------------------------------------------------------------------
2347
+  (0.0ms) SAVEPOINT active_record_1
2348
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:04:11.433031"], ["updated_at", "2016-02-24 22:04:11.433031"]]
2349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2350
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2351
+  (0.5ms) rollback transaction
2352
+  (0.0ms) begin transaction
2353
+ --------------------------------------------------------------------
2354
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2355
+ --------------------------------------------------------------------
2356
+  (0.0ms) SAVEPOINT active_record_1
2357
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:04:11.442558"], ["updated_at", "2016-02-24 22:04:11.442558"]]
2358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2359
+  (0.4ms) rollback transaction
2360
+  (0.0ms) begin transaction
2361
+ --------------------------------------------------------------------------------
2362
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2363
+ --------------------------------------------------------------------------------
2364
+  (0.0ms) SAVEPOINT active_record_1
2365
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2366
+  (0.0ms) rollback transaction
2367
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2368
+  (0.1ms) begin transaction
2369
+ --------------------------------------------------------------------
2370
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2371
+ --------------------------------------------------------------------
2372
+  (0.0ms) SAVEPOINT active_record_1
2373
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:04:37.791068"], ["updated_at", "2016-02-24 22:04:37.791068"]]
2374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2375
+  (0.9ms) rollback transaction
2376
+  (0.1ms) begin transaction
2377
+ --------------------------------------------------------------------------------
2378
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2379
+ --------------------------------------------------------------------------------
2380
+  (0.0ms) SAVEPOINT active_record_1
2381
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2382
+  (0.0ms) rollback transaction
2383
+  (0.0ms) begin transaction
2384
+ ----------------------------------------------------------------------
2385
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2386
+ ----------------------------------------------------------------------
2387
+  (0.1ms) SAVEPOINT active_record_1
2388
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:04:37.800663"], ["updated_at", "2016-02-24 22:04:37.800663"]]
2389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2390
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2391
+  (0.3ms) rollback transaction
2392
+  (0.0ms) begin transaction
2393
+ -------------------------------------------------------------------------------------
2394
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2395
+ -------------------------------------------------------------------------------------
2396
+  (0.0ms) SAVEPOINT active_record_1
2397
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 22:04:37.804913"], ["updated_at", "2016-02-24 22:04:37.804913"]]
2398
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2399
+  (0.0ms) SAVEPOINT active_record_1
2400
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2401
+  (0.3ms) rollback transaction
2402
+  (0.0ms) begin transaction
2403
+ --------------------------------------
2404
+ ActiveRecord::ResourceTest: test_truth
2405
+ --------------------------------------
2406
+  (0.0ms) rollback transaction
2407
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2408
+  (0.1ms) begin transaction
2409
+ ----------------------------------------------------------------------
2410
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2411
+ ----------------------------------------------------------------------
2412
+  (0.0ms) SAVEPOINT active_record_1
2413
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:04:52.686201"], ["updated_at", "2016-02-24 22:04:52.686201"]]
2414
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2415
+ SQL (0.1ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2416
+  (0.9ms) rollback transaction
2417
+  (0.1ms) begin transaction
2418
+ -------------------------------------------------------------------------------------
2419
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2420
+ -------------------------------------------------------------------------------------
2421
+  (0.0ms) SAVEPOINT active_record_1
2422
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 22:04:52.693457"], ["updated_at", "2016-02-24 22:04:52.693457"]]
2423
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2424
+  (0.0ms) SAVEPOINT active_record_1
2425
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2426
+  (0.3ms) rollback transaction
2427
+  (0.0ms) begin transaction
2428
+ --------------------------------------
2429
+ ActiveRecord::ResourceTest: test_truth
2430
+ --------------------------------------
2431
+  (0.0ms) rollback transaction
2432
+  (0.0ms) begin transaction
2433
+ --------------------------------------------------------------------
2434
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2435
+ --------------------------------------------------------------------
2436
+  (0.0ms) SAVEPOINT active_record_1
2437
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:04:52.702205"], ["updated_at", "2016-02-24 22:04:52.702205"]]
2438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2439
+  (0.3ms) rollback transaction
2440
+  (0.1ms) begin transaction
2441
+ --------------------------------------------------------------------------------
2442
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2443
+ --------------------------------------------------------------------------------
2444
+  (0.0ms) SAVEPOINT active_record_1
2445
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2446
+  (0.0ms) rollback transaction
2447
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2448
+  (0.1ms) begin transaction
2449
+ ----------------------------------------------------------------------
2450
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2451
+ ----------------------------------------------------------------------
2452
+  (0.1ms) SAVEPOINT active_record_1
2453
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:07:55.387969"], ["updated_at", "2016-02-24 22:07:55.387969"]]
2454
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2455
+  (0.0ms) SAVEPOINT active_record_1
2456
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2457
+  (0.9ms) rollback transaction
2458
+  (0.1ms) begin transaction
2459
+ -------------------------------------------------------------------------------------
2460
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2461
+ -------------------------------------------------------------------------------------
2462
+  (0.0ms) SAVEPOINT active_record_1
2463
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 22:07:55.393399"], ["updated_at", "2016-02-24 22:07:55.393399"]]
2464
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2465
+  (0.0ms) SAVEPOINT active_record_1
2466
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2467
+  (0.3ms) rollback transaction
2468
+  (0.0ms) begin transaction
2469
+ --------------------------------------------------------------------
2470
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2471
+ --------------------------------------------------------------------
2472
+  (0.0ms) SAVEPOINT active_record_1
2473
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:07:55.399955"], ["updated_at", "2016-02-24 22:07:55.399955"]]
2474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2475
+  (0.3ms) rollback transaction
2476
+  (0.1ms) begin transaction
2477
+ --------------------------------------------------------------------------------
2478
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2479
+ --------------------------------------------------------------------------------
2480
+  (0.0ms) SAVEPOINT active_record_1
2481
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2482
+  (0.0ms) rollback transaction
2483
+  (0.0ms) begin transaction
2484
+ --------------------------------------
2485
+ ActiveRecord::ResourceTest: test_truth
2486
+ --------------------------------------
2487
+  (0.0ms) rollback transaction
2488
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2489
+  (0.1ms) begin transaction
2490
+ --------------------------------------
2491
+ ActiveRecord::ResourceTest: test_truth
2492
+ --------------------------------------
2493
+  (0.0ms) rollback transaction
2494
+  (0.0ms) begin transaction
2495
+ -------------------------------------------------------------------------------------
2496
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2497
+ -------------------------------------------------------------------------------------
2498
+  (0.0ms) SAVEPOINT active_record_1
2499
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 22:08:03.085440"], ["updated_at", "2016-02-24 22:08:03.085440"]]
2500
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2501
+  (0.0ms) SAVEPOINT active_record_1
2502
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2503
+  (1.0ms) rollback transaction
2504
+  (0.1ms) begin transaction
2505
+ ----------------------------------------------------------------------
2506
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2507
+ ----------------------------------------------------------------------
2508
+  (0.0ms) SAVEPOINT active_record_1
2509
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:08:03.093700"], ["updated_at", "2016-02-24 22:08:03.093700"]]
2510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2511
+  (0.1ms) SAVEPOINT active_record_1
2512
+ SQL (0.2ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2513
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2514
+  (0.5ms) rollback transaction
2515
+  (0.1ms) begin transaction
2516
+ --------------------------------------------------------------------
2517
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2518
+ --------------------------------------------------------------------
2519
+  (0.0ms) SAVEPOINT active_record_1
2520
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:08:03.100003"], ["updated_at", "2016-02-24 22:08:03.100003"]]
2521
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2522
+  (0.3ms) rollback transaction
2523
+  (0.0ms) begin transaction
2524
+ --------------------------------------------------------------------------------
2525
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2526
+ --------------------------------------------------------------------------------
2527
+  (0.0ms) SAVEPOINT active_record_1
2528
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2529
+  (0.0ms) rollback transaction
2530
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2531
+  (0.1ms) begin transaction
2532
+ ----------------------------------------------------------------------
2533
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2534
+ ----------------------------------------------------------------------
2535
+  (0.0ms) SAVEPOINT active_record_1
2536
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:08:14.900856"], ["updated_at", "2016-02-24 22:08:14.900856"]]
2537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2538
+  (0.0ms) SAVEPOINT active_record_1
2539
+ SQL (0.2ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2540
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2541
+  (1.2ms) rollback transaction
2542
+  (0.1ms) begin transaction
2543
+ -------------------------------------------------------------------------------------
2544
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2545
+ -------------------------------------------------------------------------------------
2546
+  (0.0ms) SAVEPOINT active_record_1
2547
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 22:08:14.906645"], ["updated_at", "2016-02-24 22:08:14.906645"]]
2548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2549
+  (0.0ms) SAVEPOINT active_record_1
2550
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2551
+  (0.3ms) rollback transaction
2552
+  (0.0ms) begin transaction
2553
+ --------------------------------------
2554
+ ActiveRecord::ResourceTest: test_truth
2555
+ --------------------------------------
2556
+  (0.0ms) rollback transaction
2557
+  (0.0ms) begin transaction
2558
+ --------------------------------------------------------------------
2559
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2560
+ --------------------------------------------------------------------
2561
+  (0.0ms) SAVEPOINT active_record_1
2562
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:08:14.913665"], ["updated_at", "2016-02-24 22:08:14.913665"]]
2563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2564
+  (0.3ms) rollback transaction
2565
+  (0.0ms) begin transaction
2566
+ --------------------------------------------------------------------------------
2567
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2568
+ --------------------------------------------------------------------------------
2569
+  (0.0ms) SAVEPOINT active_record_1
2570
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2571
+  (0.0ms) rollback transaction
2572
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2573
+  (0.1ms) begin transaction
2574
+ --------------------------------------
2575
+ ActiveRecord::ResourceTest: test_truth
2576
+ --------------------------------------
2577
+  (0.0ms) rollback transaction
2578
+  (0.0ms) begin transaction
2579
+ -------------------------------------------------------------------------------------
2580
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2581
+ -------------------------------------------------------------------------------------
2582
+  (0.0ms) SAVEPOINT active_record_1
2583
+ SQL (0.5ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 22:08:47.856840"], ["updated_at", "2016-02-24 22:08:47.856840"]]
2584
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2585
+  (0.0ms) SAVEPOINT active_record_1
2586
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2587
+  (1.0ms) rollback transaction
2588
+  (0.1ms) begin transaction
2589
+ ----------------------------------------------------------------------
2590
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2591
+ ----------------------------------------------------------------------
2592
+  (0.0ms) SAVEPOINT active_record_1
2593
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:08:47.865345"], ["updated_at", "2016-02-24 22:08:47.865345"]]
2594
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2595
+  (0.0ms) SAVEPOINT active_record_1
2596
+ SQL (0.2ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2598
+  (0.5ms) rollback transaction
2599
+  (0.0ms) begin transaction
2600
+ --------------------------------------------------------------------
2601
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2602
+ --------------------------------------------------------------------
2603
+  (0.0ms) SAVEPOINT active_record_1
2604
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:08:47.873031"], ["updated_at", "2016-02-24 22:08:47.873031"]]
2605
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2606
+  (0.4ms) rollback transaction
2607
+  (0.0ms) begin transaction
2608
+ --------------------------------------------------------------------------------
2609
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2610
+ --------------------------------------------------------------------------------
2611
+  (0.0ms) SAVEPOINT active_record_1
2612
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2613
+  (0.0ms) rollback transaction
2614
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
2615
+  (0.9ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2616
+  (0.8ms) CREATE TABLE "deletables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2617
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2618
+  (0.1ms) select sqlite_version(*)
2619
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2620
+  (0.1ms) SELECT version FROM "schema_migrations"
2621
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160224203842')
2622
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160223204747')
2623
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2624
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2625
+  (1.6ms) CREATE TABLE "accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2626
+  (0.8ms) CREATE TABLE "deletables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2627
+  (0.7ms) CREATE TABLE "updatables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2628
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
2629
+  (0.1ms) select sqlite_version(*)
2630
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2631
+  (0.1ms) SELECT version FROM "schema_migrations"
2632
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160224221749')
2633
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160223204747')
2634
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160224203842')
2635
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2636
+  (0.1ms) begin transaction
2637
+ -------------------------------------------------------------------------------------
2638
+ UpdatableTest: test_it_calls_the_resource_update_validations_callback_before_deleting
2639
+ -------------------------------------------------------------------------------------
2640
+  (0.0ms) rollback transaction
2641
+  (0.1ms) begin transaction
2642
+ ---------------------------------------------------------------------
2643
+ UpdatableTest: test_it_calls_the_resource_update_callback_when_update
2644
+ ---------------------------------------------------------------------
2645
+  (0.0ms) SAVEPOINT active_record_1
2646
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2647
+  (0.0ms) SAVEPOINT active_record_1
2648
+ SQL (0.3ms) INSERT INTO "updatables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:22:35.578197"], ["updated_at", "2016-02-24 22:22:35.578197"]]
2649
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2650
+  (0.5ms) rollback transaction
2651
+  (0.0ms) begin transaction
2652
+ --------------------------------------------------------------------
2653
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2654
+ --------------------------------------------------------------------
2655
+  (0.0ms) SAVEPOINT active_record_1
2656
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2657
+  (0.0ms) rollback transaction
2658
+  (0.0ms) begin transaction
2659
+ --------------------------------------------------------------------------------
2660
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2661
+ --------------------------------------------------------------------------------
2662
+  (0.0ms) SAVEPOINT active_record_1
2663
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2664
+  (0.0ms) rollback transaction
2665
+  (0.0ms) begin transaction
2666
+ ----------------------------------------------------------------------
2667
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2668
+ ----------------------------------------------------------------------
2669
+  (0.0ms) SAVEPOINT active_record_1
2670
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:22:35.596959"], ["updated_at", "2016-02-24 22:22:35.596959"]]
2671
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2672
+  (0.0ms) SAVEPOINT active_record_1
2673
+ SQL (0.2ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2675
+  (0.5ms) rollback transaction
2676
+  (0.0ms) begin transaction
2677
+ -------------------------------------------------------------------------------------
2678
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2679
+ -------------------------------------------------------------------------------------
2680
+  (0.0ms) SAVEPOINT active_record_1
2681
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 22:22:35.599918"], ["updated_at", "2016-02-24 22:22:35.599918"]]
2682
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2683
+  (0.0ms) SAVEPOINT active_record_1
2684
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2685
+  (0.3ms) rollback transaction
2686
+  (0.0ms) begin transaction
2687
+ --------------------------------------
2688
+ ActiveRecord::ResourceTest: test_truth
2689
+ --------------------------------------
2690
+  (0.0ms) rollback transaction
2691
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2692
+  (0.1ms) begin transaction
2693
+ --------------------------------------------------------------------------------
2694
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2695
+ --------------------------------------------------------------------------------
2696
+  (0.0ms) SAVEPOINT active_record_1
2697
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2698
+  (0.0ms) rollback transaction
2699
+  (0.0ms) begin transaction
2700
+ --------------------------------------------------------------------
2701
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2702
+ --------------------------------------------------------------------
2703
+  (0.0ms) SAVEPOINT active_record_1
2704
+ SQL (0.3ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:23:25.821953"], ["updated_at", "2016-02-24 22:23:25.821953"]]
2705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2706
+  (1.0ms) rollback transaction
2707
+  (0.1ms) begin transaction
2708
+ --------------------------------------
2709
+ ActiveRecord::ResourceTest: test_truth
2710
+ --------------------------------------
2711
+  (0.0ms) rollback transaction
2712
+  (0.0ms) begin transaction
2713
+ ----------------------------------------------------------------------
2714
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2715
+ ----------------------------------------------------------------------
2716
+  (0.0ms) SAVEPOINT active_record_1
2717
+ SQL (0.3ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:23:25.833427"], ["updated_at", "2016-02-24 22:23:25.833427"]]
2718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2719
+  (0.0ms) SAVEPOINT active_record_1
2720
+ SQL (0.3ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2721
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2722
+  (0.4ms) rollback transaction
2723
+  (0.0ms) begin transaction
2724
+ -------------------------------------------------------------------------------------
2725
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2726
+ -------------------------------------------------------------------------------------
2727
+  (0.0ms) SAVEPOINT active_record_1
2728
+ SQL (0.1ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 22:23:25.836596"], ["updated_at", "2016-02-24 22:23:25.836596"]]
2729
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2730
+  (0.0ms) SAVEPOINT active_record_1
2731
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2732
+  (0.3ms) rollback transaction
2733
+  (0.0ms) begin transaction
2734
+ ---------------------------------------------------------------------
2735
+ UpdatableTest: test_it_calls_the_resource_update_callback_when_update
2736
+ ---------------------------------------------------------------------
2737
+  (0.0ms) SAVEPOINT active_record_1
2738
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2739
+  (0.0ms) SAVEPOINT active_record_1
2740
+ SQL (0.2ms) INSERT INTO "updatables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:23:25.842557"], ["updated_at", "2016-02-24 22:23:25.842557"]]
2741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2742
+  (0.3ms) rollback transaction
2743
+  (0.0ms) begin transaction
2744
+ -------------------------------------------------------------------------------------
2745
+ UpdatableTest: test_it_calls_the_resource_update_validations_callback_before_deleting
2746
+ -------------------------------------------------------------------------------------
2747
+  (0.0ms) rollback transaction
2748
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2749
+  (0.1ms) begin transaction
2750
+ ---------------------------------------------------------------------
2751
+ UpdatableTest: test_it_calls_the_resource_update_callback_when_update
2752
+ ---------------------------------------------------------------------
2753
+  (0.0ms) SAVEPOINT active_record_1
2754
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2755
+  (0.1ms) SAVEPOINT active_record_1
2756
+ SQL (0.4ms) INSERT INTO "updatables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:24:38.984317"], ["updated_at", "2016-02-24 22:24:38.984317"]]
2757
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2758
+  (1.2ms) rollback transaction
2759
+  (0.1ms) begin transaction
2760
+ -------------------------------------------------------------------------------------
2761
+ UpdatableTest: test_it_calls_the_resource_update_validations_callback_before_deleting
2762
+ -------------------------------------------------------------------------------------
2763
+  (0.0ms) SAVEPOINT active_record_1
2764
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2765
+  (0.0ms) SAVEPOINT active_record_1
2766
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2767
+  (0.0ms) rollback transaction
2768
+  (0.1ms) begin transaction
2769
+ --------------------------------------
2770
+ ActiveRecord::ResourceTest: test_truth
2771
+ --------------------------------------
2772
+  (0.0ms) rollback transaction
2773
+  (0.0ms) begin transaction
2774
+ ----------------------------------------------------------------------
2775
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2776
+ ----------------------------------------------------------------------
2777
+  (0.0ms) SAVEPOINT active_record_1
2778
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:24:38.999223"], ["updated_at", "2016-02-24 22:24:38.999223"]]
2779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2780
+  (0.0ms) SAVEPOINT active_record_1
2781
+ SQL (0.3ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2782
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2783
+  (0.5ms) rollback transaction
2784
+  (0.0ms) begin transaction
2785
+ -------------------------------------------------------------------------------------
2786
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2787
+ -------------------------------------------------------------------------------------
2788
+  (0.0ms) SAVEPOINT active_record_1
2789
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 22:24:39.002669"], ["updated_at", "2016-02-24 22:24:39.002669"]]
2790
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2791
+  (0.0ms) SAVEPOINT active_record_1
2792
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2793
+  (0.3ms) rollback transaction
2794
+  (0.0ms) begin transaction
2795
+ --------------------------------------------------------------------
2796
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2797
+ --------------------------------------------------------------------
2798
+  (0.0ms) SAVEPOINT active_record_1
2799
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:24:39.009462"], ["updated_at", "2016-02-24 22:24:39.009462"]]
2800
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2801
+  (0.4ms) rollback transaction
2802
+  (0.1ms) begin transaction
2803
+ --------------------------------------------------------------------------------
2804
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2805
+ --------------------------------------------------------------------------------
2806
+  (0.0ms) SAVEPOINT active_record_1
2807
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2808
+  (0.0ms) rollback transaction
2809
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2810
+  (0.1ms) begin transaction
2811
+ --------------------------------------------------------------------
2812
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2813
+ --------------------------------------------------------------------
2814
+  (0.1ms) SAVEPOINT active_record_1
2815
+ SQL (1.1ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:27:01.843149"], ["updated_at", "2016-02-24 22:27:01.843149"]]
2816
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2817
+  (0.4ms) rollback transaction
2818
+  (0.1ms) begin transaction
2819
+ --------------------------------------------------------------------------------
2820
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2821
+ --------------------------------------------------------------------------------
2822
+  (0.0ms) SAVEPOINT active_record_1
2823
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2824
+  (0.0ms) rollback transaction
2825
+  (0.0ms) begin transaction
2826
+ --------------------------------------
2827
+ ActiveRecord::ResourceTest: test_truth
2828
+ --------------------------------------
2829
+  (0.0ms) rollback transaction
2830
+  (0.0ms) begin transaction
2831
+ ---------------------------------------------------------------------
2832
+ UpdatableTest: test_it_calls_the_resource_update_callback_when_update
2833
+ ---------------------------------------------------------------------
2834
+  (0.1ms) SAVEPOINT active_record_1
2835
+ SQL (0.5ms) INSERT INTO "updatables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:27:01.855084"], ["updated_at", "2016-02-24 22:27:01.855084"]]
2836
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2837
+  (0.0ms) SAVEPOINT active_record_1
2838
+ SQL (0.4ms) UPDATE "updatables" SET "number" = ?, "updated_at" = ? WHERE "updatables"."id" = ? [["number", "valid"], ["updated_at", "2016-02-24 22:27:01.856747"], ["id", 1]]
2839
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2840
+  (0.6ms) rollback transaction
2841
+  (0.0ms) begin transaction
2842
+ -------------------------------------------------------------------------------------
2843
+ UpdatableTest: test_it_calls_the_resource_update_validations_callback_before_deleting
2844
+ -------------------------------------------------------------------------------------
2845
+  (0.0ms) SAVEPOINT active_record_1
2846
+ SQL (0.1ms) INSERT INTO "updatables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:27:01.863075"], ["updated_at", "2016-02-24 22:27:01.863075"]]
2847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2848
+  (0.0ms) SAVEPOINT active_record_1
2849
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2850
+  (0.3ms) rollback transaction
2851
+  (0.0ms) begin transaction
2852
+ ----------------------------------------------------------------------
2853
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2854
+ ----------------------------------------------------------------------
2855
+  (0.0ms) SAVEPOINT active_record_1
2856
+ SQL (0.5ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:27:01.869252"], ["updated_at", "2016-02-24 22:27:01.869252"]]
2857
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2858
+  (0.0ms) SAVEPOINT active_record_1
2859
+ SQL (0.3ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2860
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2861
+  (0.6ms) rollback transaction
2862
+  (0.0ms) begin transaction
2863
+ -------------------------------------------------------------------------------------
2864
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2865
+ -------------------------------------------------------------------------------------
2866
+  (0.0ms) SAVEPOINT active_record_1
2867
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 22:27:01.882683"], ["updated_at", "2016-02-24 22:27:01.882683"]]
2868
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2869
+  (0.0ms) SAVEPOINT active_record_1
2870
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2871
+  (0.3ms) rollback transaction
2872
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2873
+  (0.1ms) begin transaction
2874
+ --------------------------------------------------------------------
2875
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2876
+ --------------------------------------------------------------------
2877
+  (0.1ms) SAVEPOINT active_record_1
2878
+ SQL (1.1ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:27:28.229560"], ["updated_at", "2016-02-24 22:27:28.229560"]]
2879
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2880
+  (0.3ms) rollback transaction
2881
+  (0.0ms) begin transaction
2882
+ --------------------------------------------------------------------------------
2883
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2884
+ --------------------------------------------------------------------------------
2885
+  (0.0ms) SAVEPOINT active_record_1
2886
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2887
+  (0.1ms) rollback transaction
2888
+  (0.0ms) begin transaction
2889
+ --------------------------------------
2890
+ ActiveRecord::ResourceTest: test_truth
2891
+ --------------------------------------
2892
+  (0.0ms) rollback transaction
2893
+  (0.0ms) begin transaction
2894
+ -------------------------------------------------------------------------------------
2895
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2896
+ -------------------------------------------------------------------------------------
2897
+  (0.0ms) SAVEPOINT active_record_1
2898
+ SQL (0.5ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 22:27:28.241283"], ["updated_at", "2016-02-24 22:27:28.241283"]]
2899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2900
+  (0.0ms) SAVEPOINT active_record_1
2901
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2902
+  (0.3ms) rollback transaction
2903
+  (0.1ms) begin transaction
2904
+ ----------------------------------------------------------------------
2905
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2906
+ ----------------------------------------------------------------------
2907
+  (0.1ms) SAVEPOINT active_record_1
2908
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:27:28.244239"], ["updated_at", "2016-02-24 22:27:28.244239"]]
2909
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2910
+  (0.0ms) SAVEPOINT active_record_1
2911
+ SQL (0.3ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2912
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2913
+  (0.5ms) rollback transaction
2914
+  (0.0ms) begin transaction
2915
+ ---------------------------------------------------------------------
2916
+ UpdatableTest: test_it_calls_the_resource_update_callback_when_update
2917
+ ---------------------------------------------------------------------
2918
+  (0.0ms) SAVEPOINT active_record_1
2919
+ SQL (0.5ms) INSERT INTO "updatables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", ""], ["created_at", "2016-02-24 22:27:28.251967"], ["updated_at", "2016-02-24 22:27:28.251967"]]
2920
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2921
+  (0.0ms) SAVEPOINT active_record_1
2922
+ SQL (0.3ms) UPDATE "updatables" SET "number" = ?, "updated_at" = ? WHERE "updatables"."id" = ? [["number", "a"], ["updated_at", "2016-02-24 22:27:28.253510"], ["id", 1]]
2923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2924
+  (0.5ms) rollback transaction
2925
+  (0.0ms) begin transaction
2926
+ -------------------------------------------------------------------------------------
2927
+ UpdatableTest: test_it_calls_the_resource_update_validations_callback_before_deleting
2928
+ -------------------------------------------------------------------------------------
2929
+  (0.0ms) SAVEPOINT active_record_1
2930
+ SQL (0.2ms) INSERT INTO "updatables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", ""], ["created_at", "2016-02-24 22:27:28.269339"], ["updated_at", "2016-02-24 22:27:28.269339"]]
2931
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2932
+  (0.0ms) SAVEPOINT active_record_1
2933
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2934
+  (0.3ms) rollback transaction
2935
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2936
+  (0.1ms) begin transaction
2937
+ --------------------------------------
2938
+ ActiveRecord::ResourceTest: test_truth
2939
+ --------------------------------------
2940
+  (0.0ms) rollback transaction
2941
+  (0.0ms) begin transaction
2942
+ --------------------------------------------------------------------
2943
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
2944
+ --------------------------------------------------------------------
2945
+  (0.1ms) SAVEPOINT active_record_1
2946
+ SQL (1.0ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:29:43.388610"], ["updated_at", "2016-02-24 22:29:43.388610"]]
2947
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2948
+  (0.3ms) rollback transaction
2949
+  (0.0ms) begin transaction
2950
+ --------------------------------------------------------------------------------
2951
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
2952
+ --------------------------------------------------------------------------------
2953
+  (0.0ms) SAVEPOINT active_record_1
2954
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2955
+  (0.0ms) rollback transaction
2956
+  (0.0ms) begin transaction
2957
+ ----------------------------------------------------------------------
2958
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
2959
+ ----------------------------------------------------------------------
2960
+  (0.0ms) SAVEPOINT active_record_1
2961
+ SQL (0.5ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:29:43.399090"], ["updated_at", "2016-02-24 22:29:43.399090"]]
2962
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2963
+  (0.0ms) SAVEPOINT active_record_1
2964
+ SQL (0.2ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
2965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2966
+  (0.5ms) rollback transaction
2967
+  (0.1ms) begin transaction
2968
+ -------------------------------------------------------------------------------------
2969
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
2970
+ -------------------------------------------------------------------------------------
2971
+  (0.0ms) SAVEPOINT active_record_1
2972
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 22:29:43.402645"], ["updated_at", "2016-02-24 22:29:43.402645"]]
2973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2974
+  (0.0ms) SAVEPOINT active_record_1
2975
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2976
+  (0.3ms) rollback transaction
2977
+  (0.0ms) begin transaction
2978
+ ---------------------------------------------------------------------
2979
+ UpdatableTest: test_it_calls_the_resource_update_callback_when_update
2980
+ ---------------------------------------------------------------------
2981
+  (0.0ms) SAVEPOINT active_record_1
2982
+ SQL (0.5ms) INSERT INTO "updatables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", ""], ["created_at", "2016-02-24 22:29:43.409091"], ["updated_at", "2016-02-24 22:29:43.409091"]]
2983
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2984
+  (0.0ms) SAVEPOINT active_record_1
2985
+ SQL (0.3ms) UPDATE "updatables" SET "number" = ?, "updated_at" = ? WHERE "updatables"."id" = ? [["number", "a"], ["updated_at", "2016-02-24 22:29:43.410672"], ["id", 1]]
2986
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2987
+  (0.6ms) rollback transaction
2988
+  (0.1ms) begin transaction
2989
+ -------------------------------------------------------------------------------------
2990
+ UpdatableTest: test_it_calls_the_resource_update_validations_callback_before_deleting
2991
+ -------------------------------------------------------------------------------------
2992
+  (0.1ms) SAVEPOINT active_record_1
2993
+ SQL (0.2ms) INSERT INTO "updatables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", ""], ["created_at", "2016-02-24 22:29:43.428047"], ["updated_at", "2016-02-24 22:29:43.428047"]]
2994
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2995
+  (0.0ms) SAVEPOINT active_record_1
2996
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
2997
+  (0.4ms) rollback transaction
2998
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2999
+  (0.1ms) begin transaction
3000
+ ---------------------------------------------------------------------
3001
+ UpdatableTest: test_it_calls_the_resource_update_callback_when_update
3002
+ ---------------------------------------------------------------------
3003
+  (0.0ms) SAVEPOINT active_record_1
3004
+ SQL (1.0ms) INSERT INTO "updatables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", ""], ["created_at", "2016-02-24 22:30:45.106901"], ["updated_at", "2016-02-24 22:30:45.106901"]]
3005
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3006
+  (0.0ms) SAVEPOINT active_record_1
3007
+ SQL (0.3ms) UPDATE "updatables" SET "number" = ?, "updated_at" = ? WHERE "updatables"."id" = ? [["number", "a"], ["updated_at", "2016-02-24 22:30:45.110665"], ["id", 1]]
3008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3009
+  (0.6ms) rollback transaction
3010
+  (0.0ms) begin transaction
3011
+ -------------------------------------------------------------------------------------
3012
+ UpdatableTest: test_it_calls_the_resource_update_validations_callback_before_deleting
3013
+ -------------------------------------------------------------------------------------
3014
+  (0.0ms) SAVEPOINT active_record_1
3015
+ SQL (0.2ms) INSERT INTO "updatables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", ""], ["created_at", "2016-02-24 22:30:45.115906"], ["updated_at", "2016-02-24 22:30:45.115906"]]
3016
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3017
+  (0.0ms) SAVEPOINT active_record_1
3018
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
3019
+  (0.3ms) rollback transaction
3020
+  (0.1ms) begin transaction
3021
+ --------------------------------------
3022
+ ActiveRecord::ResourceTest: test_truth
3023
+ --------------------------------------
3024
+  (0.0ms) rollback transaction
3025
+  (0.0ms) begin transaction
3026
+ --------------------------------------------------------------------
3027
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
3028
+ --------------------------------------------------------------------
3029
+  (0.0ms) SAVEPOINT active_record_1
3030
+ SQL (0.2ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-24 22:30:45.126553"], ["updated_at", "2016-02-24 22:30:45.126553"]]
3031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3032
+  (0.5ms) rollback transaction
3033
+  (0.1ms) begin transaction
3034
+ --------------------------------------------------------------------------------
3035
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
3036
+ --------------------------------------------------------------------------------
3037
+  (0.0ms) SAVEPOINT active_record_1
3038
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
3039
+  (0.0ms) rollback transaction
3040
+  (0.1ms) begin transaction
3041
+ ----------------------------------------------------------------------
3042
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
3043
+ ----------------------------------------------------------------------
3044
+  (0.0ms) SAVEPOINT active_record_1
3045
+ SQL (0.5ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-24 22:30:45.135442"], ["updated_at", "2016-02-24 22:30:45.135442"]]
3046
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3047
+  (0.0ms) SAVEPOINT active_record_1
3048
+ SQL (0.5ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
3049
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3050
+  (0.6ms) rollback transaction
3051
+  (0.1ms) begin transaction
3052
+ -------------------------------------------------------------------------------------
3053
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
3054
+ -------------------------------------------------------------------------------------
3055
+  (0.0ms) SAVEPOINT active_record_1
3056
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-24 22:30:45.152698"], ["updated_at", "2016-02-24 22:30:45.152698"]]
3057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3058
+  (0.0ms) SAVEPOINT active_record_1
3059
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
3060
+  (0.3ms) rollback transaction
3061
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3062
+  (0.1ms) begin transaction
3063
+ --------------------------------------
3064
+ ActiveRecord::ResourceTest: test_truth
3065
+ --------------------------------------
3066
+  (0.0ms) rollback transaction
3067
+  (0.0ms) begin transaction
3068
+ ----------------------------------------------------------------------
3069
+ DeletableTest: test_it_calls_the_delete_resource_callback_when_deleted
3070
+ ----------------------------------------------------------------------
3071
+  (0.1ms) SAVEPOINT active_record_1
3072
+ SQL (1.0ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "valid"], ["created_at", "2016-02-26 08:40:47.461264"], ["updated_at", "2016-02-26 08:40:47.461264"]]
3073
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3074
+  (0.0ms) SAVEPOINT active_record_1
3075
+ SQL (0.3ms) DELETE FROM "deletables" WHERE "deletables"."id" = ? [["id", 1]]
3076
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3077
+  (0.7ms) rollback transaction
3078
+  (0.1ms) begin transaction
3079
+ -------------------------------------------------------------------------------------
3080
+ DeletableTest: test_it_calls_the_delete_resource_validations_callback_before_deleting
3081
+ -------------------------------------------------------------------------------------
3082
+  (0.0ms) SAVEPOINT active_record_1
3083
+ SQL (0.2ms) INSERT INTO "deletables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "invalid"], ["created_at", "2016-02-26 08:40:47.469623"], ["updated_at", "2016-02-26 08:40:47.469623"]]
3084
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3085
+  (0.0ms) SAVEPOINT active_record_1
3086
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
3087
+  (0.3ms) rollback transaction
3088
+  (0.0ms) begin transaction
3089
+ --------------------------------------------------------------------
3090
+ AccountTest: test_it_calls_the_create_resource_callback_when_created
3091
+ --------------------------------------------------------------------
3092
+  (0.0ms) SAVEPOINT active_record_1
3093
+ SQL (0.5ms) INSERT INTO "accounts" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", "a"], ["created_at", "2016-02-26 08:40:47.477936"], ["updated_at", "2016-02-26 08:40:47.477936"]]
3094
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3095
+  (0.3ms) rollback transaction
3096
+  (0.1ms) begin transaction
3097
+ --------------------------------------------------------------------------------
3098
+ AccountTest: test_it_calls_the_create_resource_validations_callback_when_created
3099
+ --------------------------------------------------------------------------------
3100
+  (0.0ms) SAVEPOINT active_record_1
3101
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
3102
+  (0.0ms) rollback transaction
3103
+  (0.0ms) begin transaction
3104
+ ---------------------------------------------------------------------
3105
+ UpdatableTest: test_it_calls_the_resource_update_callback_when_update
3106
+ ---------------------------------------------------------------------
3107
+  (0.0ms) SAVEPOINT active_record_1
3108
+ SQL (0.2ms) INSERT INTO "updatables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", ""], ["created_at", "2016-02-26 08:40:47.487627"], ["updated_at", "2016-02-26 08:40:47.487627"]]
3109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3110
+  (0.0ms) SAVEPOINT active_record_1
3111
+ SQL (0.3ms) UPDATE "updatables" SET "number" = ?, "updated_at" = ? WHERE "updatables"."id" = ? [["number", "a"], ["updated_at", "2016-02-26 08:40:47.489012"], ["id", 1]]
3112
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3113
+  (0.7ms) rollback transaction
3114
+  (0.0ms) begin transaction
3115
+ -------------------------------------------------------------------------------------
3116
+ UpdatableTest: test_it_calls_the_resource_update_validations_callback_before_deleting
3117
+ -------------------------------------------------------------------------------------
3118
+  (0.0ms) SAVEPOINT active_record_1
3119
+ SQL (0.2ms) INSERT INTO "updatables" ("number", "created_at", "updated_at") VALUES (?, ?, ?) [["number", ""], ["created_at", "2016-02-26 08:40:47.503654"], ["updated_at", "2016-02-26 08:40:47.503654"]]
3120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3121
+  (0.0ms) SAVEPOINT active_record_1
3122
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
3123
+  (0.2ms) rollback transaction