acts_as_ruintsti 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acts_as_ruintsti.rb +9 -6
- data/lib/acts_as_ruintsti/version.rb +1 -1
- data/test/acts_as_ruintsti_test.rb +14 -0
- data/test/dummy/db/schema.rb +4 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +23 -0
- data/test/dummy/log/test.log +1019 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4a1d538c2e288cba813318cc8ed3ce855cbb817
|
4
|
+
data.tar.gz: 800004520111e1b653f8ee012871735cfbcb98c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9a26eafa8aab2c21cb7f885759eaab4014641ddbb93072ee79add5014f9d67c0dbf4ccd5832e63897eae7ce05751b0fa2ea5a38cb82089b6cbda23fb4ba792c
|
7
|
+
data.tar.gz: ddbb86541c2ce27f6eed916b64bb70aa5ac5f8f320151f178ff6395b739575818a7d9ce3cfe7f6132818515bb090dc61a6f18477cc5bb817495b82d144ca9163
|
data/lib/acts_as_ruintsti.rb
CHANGED
@@ -8,23 +8,26 @@ module ActsAsRuintsti
|
|
8
8
|
end
|
9
9
|
end
|
10
10
|
module ClassMethods
|
11
|
-
|
11
|
+
def acts_as_ruintsti_params
|
12
|
+
@@acts_as_ruintsti_params[table_name]
|
13
|
+
end
|
12
14
|
def acts_as_ruintsti_params=(params)
|
13
|
-
@@acts_as_ruintsti_params
|
15
|
+
@@acts_as_ruintsti_params ||= {}
|
16
|
+
@@acts_as_ruintsti_params[table_name] = params
|
14
17
|
end
|
15
18
|
def sti_name
|
16
|
-
n =
|
17
|
-
n ?
|
19
|
+
n = acts_as_ruintsti_params.values.index(self.name.to_s)
|
20
|
+
n ? acts_as_ruintsti_params.keys[n] : 0
|
18
21
|
end
|
19
22
|
def find_sti_class(type_name)
|
20
|
-
class_name =
|
23
|
+
class_name = acts_as_ruintsti_params[type_name.to_i]
|
21
24
|
class_name ? class_name.constantize : self
|
22
25
|
end
|
23
26
|
def subclass_from_attrs(attr)
|
24
27
|
type_num = attr.with_indifferent_access[inheritance_column]
|
25
28
|
if type_num.present?
|
26
29
|
type_num = type_num.to_i if type_num.class == String and type_num =~ /\A\d+\z/
|
27
|
-
subclass_name =
|
30
|
+
subclass_name = acts_as_ruintsti_params[type_num]
|
28
31
|
if subclass_name.present? && subclass_name != self.name
|
29
32
|
subclass = subclass_name.safe_constantize
|
30
33
|
unless descendants.include?(subclass)
|
@@ -1,6 +1,15 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
require 'test_helper'
|
3
3
|
|
4
|
+
class Box < ActiveRecord::Base
|
5
|
+
acts_as_ruintsti({
|
6
|
+
1 => 'WhiteBox',
|
7
|
+
2 => 'BlackBox',
|
8
|
+
})
|
9
|
+
end
|
10
|
+
class WhiteBox < Box; end
|
11
|
+
class BlackBox < Box; end
|
12
|
+
|
4
13
|
class Block < ActiveRecord::Base
|
5
14
|
acts_as_ruintsti({
|
6
15
|
1 => 'RedBlock',
|
@@ -10,6 +19,7 @@ end
|
|
10
19
|
class RedBlock < Block; end
|
11
20
|
class BlueBlock < Block; end
|
12
21
|
|
22
|
+
|
13
23
|
class ActsAsRuintstiTest < ActiveSupport::TestCase
|
14
24
|
def setup
|
15
25
|
@red = RedBlock.new
|
@@ -62,4 +72,8 @@ class ActsAsRuintstiTest < ActiveSupport::TestCase
|
|
62
72
|
Block.new(:type => 'hoge')
|
63
73
|
end
|
64
74
|
end
|
75
|
+
|
76
|
+
test "acts_as_ruintsti_params is different between Block and Box" do
|
77
|
+
assert_not_equal Block.acts_as_ruintsti_params, Box.acts_as_ruintsti_params
|
78
|
+
end
|
65
79
|
end
|
data/test/dummy/db/schema.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -7,3 +7,26 @@ Migrating to CreateWorks (0)
|
|
7
7
|
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
8
8
|
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
9
9
|
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('1')[0m
|
10
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
11
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
12
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
14
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
15
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
16
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
17
|
+
[1m[36m (3.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
18
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
19
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
20
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
21
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22
|
+
[1m[36m (3.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
23
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
24
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
25
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
26
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "blocks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" integer) [0m
|
27
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "boxes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" integer)
|
28
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
29
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
30
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
31
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('2')
|
32
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
data/test/dummy/log/test.log
CHANGED
@@ -2084,3 +2084,1022 @@ ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
|
2084
2084
|
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2085
2085
|
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2086
2086
|
[1m[35m (0.5ms)[0m rollback transaction
|
2087
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2088
|
+
----------------------------------------------
|
2089
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
2090
|
+
----------------------------------------------
|
2091
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2092
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2093
|
+
---------------------------------------------
|
2094
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
2095
|
+
---------------------------------------------
|
2096
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2097
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2098
|
+
--------------------------------------------------------------
|
2099
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
2100
|
+
--------------------------------------------------------------
|
2101
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2102
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2103
|
+
------------------------------------------------------------
|
2104
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
2105
|
+
------------------------------------------------------------
|
2106
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2107
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2108
|
+
----------------------------------------------------------------------
|
2109
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
2110
|
+
----------------------------------------------------------------------
|
2111
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2112
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2113
|
+
------------------------------------------------------------------------------
|
2114
|
+
ActsAsRuintstiTest: test_when_create_block_type='hoge',_raise_SubclassNotFound
|
2115
|
+
------------------------------------------------------------------------------
|
2116
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2117
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2118
|
+
-------------------------------------------------------------------
|
2119
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
2120
|
+
-------------------------------------------------------------------
|
2121
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2122
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2123
|
+
-------------------------------------------------------------------------
|
2124
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
2125
|
+
-------------------------------------------------------------------------
|
2126
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2127
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2128
|
+
----------------------------------------------
|
2129
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
2130
|
+
----------------------------------------------
|
2131
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2132
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2133
|
+
---------------------------------------------
|
2134
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
2135
|
+
---------------------------------------------
|
2136
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2137
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2138
|
+
--------------------------------------------------------------
|
2139
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
2140
|
+
--------------------------------------------------------------
|
2141
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2142
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2143
|
+
------------------------------------------------------------
|
2144
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
2145
|
+
------------------------------------------------------------
|
2146
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2147
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2148
|
+
----------------------------------------------------------------------
|
2149
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
2150
|
+
----------------------------------------------------------------------
|
2151
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2152
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2153
|
+
------------------------------------------------------------------------------
|
2154
|
+
ActsAsRuintstiTest: test_when_create_block_type='hoge',_raise_SubclassNotFound
|
2155
|
+
------------------------------------------------------------------------------
|
2156
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2157
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2158
|
+
-------------------------------------------------------------------
|
2159
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
2160
|
+
-------------------------------------------------------------------
|
2161
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2162
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2163
|
+
-------------------------------------------------------------------------
|
2164
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
2165
|
+
-------------------------------------------------------------------------
|
2166
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2167
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2168
|
+
----------------------------------------------
|
2169
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
2170
|
+
----------------------------------------------
|
2171
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2172
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2173
|
+
---------------------------------------------
|
2174
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
2175
|
+
---------------------------------------------
|
2176
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2177
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2178
|
+
--------------------------------------------------------------
|
2179
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
2180
|
+
--------------------------------------------------------------
|
2181
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2182
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2183
|
+
------------------------------------------------------------
|
2184
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
2185
|
+
------------------------------------------------------------
|
2186
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2187
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2188
|
+
----------------------------------------------------------------------
|
2189
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
2190
|
+
----------------------------------------------------------------------
|
2191
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2192
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2193
|
+
------------------------------------------------------------------------------
|
2194
|
+
ActsAsRuintstiTest: test_when_create_block_type='hoge',_raise_SubclassNotFound
|
2195
|
+
------------------------------------------------------------------------------
|
2196
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2197
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2198
|
+
-------------------------------------------------------------------
|
2199
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
2200
|
+
-------------------------------------------------------------------
|
2201
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2202
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2203
|
+
-------------------------------------------------------------------------
|
2204
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
2205
|
+
-------------------------------------------------------------------------
|
2206
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2207
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2208
|
+
----------------------------------------------
|
2209
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
2210
|
+
----------------------------------------------
|
2211
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2212
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2213
|
+
---------------------------------------------
|
2214
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
2215
|
+
---------------------------------------------
|
2216
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2217
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2218
|
+
--------------------------------------------------------------
|
2219
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
2220
|
+
--------------------------------------------------------------
|
2221
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2222
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2223
|
+
------------------------------------------------------------
|
2224
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
2225
|
+
------------------------------------------------------------
|
2226
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2227
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2228
|
+
----------------------------------------------------------------------
|
2229
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
2230
|
+
----------------------------------------------------------------------
|
2231
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2232
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2233
|
+
------------------------------------------------------------------------------
|
2234
|
+
ActsAsRuintstiTest: test_when_create_block_type='hoge',_raise_SubclassNotFound
|
2235
|
+
------------------------------------------------------------------------------
|
2236
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2237
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2238
|
+
-------------------------------------------------------------------
|
2239
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
2240
|
+
-------------------------------------------------------------------
|
2241
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2242
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2243
|
+
-------------------------------------------------------------------------
|
2244
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
2245
|
+
-------------------------------------------------------------------------
|
2246
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2247
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2248
|
+
----------------------------------------------
|
2249
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
2250
|
+
----------------------------------------------
|
2251
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2252
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2253
|
+
---------------------------------------------
|
2254
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
2255
|
+
---------------------------------------------
|
2256
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2257
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2258
|
+
--------------------------------------------------------------
|
2259
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
2260
|
+
--------------------------------------------------------------
|
2261
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2262
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2263
|
+
------------------------------------------------------------
|
2264
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
2265
|
+
------------------------------------------------------------
|
2266
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2267
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2268
|
+
----------------------------------------------------------------------
|
2269
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
2270
|
+
----------------------------------------------------------------------
|
2271
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2272
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2273
|
+
------------------------------------------------------------------------------
|
2274
|
+
ActsAsRuintstiTest: test_when_create_block_type='hoge',_raise_SubclassNotFound
|
2275
|
+
------------------------------------------------------------------------------
|
2276
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2277
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2278
|
+
-------------------------------------------------------------------
|
2279
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
2280
|
+
-------------------------------------------------------------------
|
2281
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2282
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2283
|
+
-------------------------------------------------------------------------
|
2284
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
2285
|
+
-------------------------------------------------------------------------
|
2286
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2287
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2288
|
+
----------------------------------------------
|
2289
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
2290
|
+
----------------------------------------------
|
2291
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2292
|
+
[1m[36mSQL (3.8ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2293
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2294
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2295
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2296
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2297
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
2298
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
2299
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
2300
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
2301
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2302
|
+
---------------------------------------------
|
2303
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
2304
|
+
---------------------------------------------
|
2305
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2306
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
2307
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2308
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2309
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
2310
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2311
|
+
[1m[36mBlock Load (0.1ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
2312
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2313
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2314
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2315
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2316
|
+
--------------------------------------------------------------
|
2317
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
2318
|
+
--------------------------------------------------------------
|
2319
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2320
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2321
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2322
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2323
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2324
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2325
|
+
[1m[35mBlock Load (0.0ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
2326
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
2327
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
2328
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2329
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2330
|
+
------------------------------------------------------------
|
2331
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
2332
|
+
------------------------------------------------------------
|
2333
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2334
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
2335
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2336
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2337
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
2338
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2339
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
2340
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2341
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2342
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2343
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2344
|
+
----------------------------------------------------------------------
|
2345
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
2346
|
+
----------------------------------------------------------------------
|
2347
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2348
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2349
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2350
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2351
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2352
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2353
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2354
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2355
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2356
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2357
|
+
------------------------------------------------------------------------------
|
2358
|
+
ActsAsRuintstiTest: test_when_create_block_type='hoge',_raise_SubclassNotFound
|
2359
|
+
------------------------------------------------------------------------------
|
2360
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2361
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2362
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2363
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2364
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2365
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2366
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2367
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2368
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2369
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2370
|
+
-------------------------------------------------------------------
|
2371
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
2372
|
+
-------------------------------------------------------------------
|
2373
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2374
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2375
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2376
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2377
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2378
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2379
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2380
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2381
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2382
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2383
|
+
-------------------------------------------------------------------------
|
2384
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
2385
|
+
-------------------------------------------------------------------------
|
2386
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2387
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2388
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2389
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2390
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2391
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2392
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2393
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2394
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2395
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2396
|
+
----------------------------------------------
|
2397
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
2398
|
+
----------------------------------------------
|
2399
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2400
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2401
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2402
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2403
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2404
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2405
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
2406
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
2407
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
2408
|
+
[1m[36m (2.4ms)[0m [1mrollback transaction[0m
|
2409
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2410
|
+
---------------------------------------------
|
2411
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
2412
|
+
---------------------------------------------
|
2413
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2414
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
2415
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2416
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2417
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
2418
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2419
|
+
[1m[36mBlock Load (0.1ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
2420
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2421
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2422
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2423
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2424
|
+
--------------------------------------------------------------
|
2425
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
2426
|
+
--------------------------------------------------------------
|
2427
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2428
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2429
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2430
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2431
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2432
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2433
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
2434
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
2435
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
2436
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2437
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2438
|
+
------------------------------------------------------------
|
2439
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
2440
|
+
------------------------------------------------------------
|
2441
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2442
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
2443
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2444
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2445
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
2446
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2447
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
2448
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2449
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2450
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2451
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2452
|
+
----------------------------------------------------------------------
|
2453
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
2454
|
+
----------------------------------------------------------------------
|
2455
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2456
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2457
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2458
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2459
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2460
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2461
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2462
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2463
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2464
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2465
|
+
------------------------------------------------------------------------------
|
2466
|
+
ActsAsRuintstiTest: test_when_create_block_type='hoge',_raise_SubclassNotFound
|
2467
|
+
------------------------------------------------------------------------------
|
2468
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2469
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2470
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2471
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2472
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2473
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2474
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2475
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2476
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2477
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2478
|
+
-------------------------------------------------------------------
|
2479
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
2480
|
+
-------------------------------------------------------------------
|
2481
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2482
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2483
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2484
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2485
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2486
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2487
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2488
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2489
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2490
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2491
|
+
-------------------------------------------------------------------------
|
2492
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
2493
|
+
-------------------------------------------------------------------------
|
2494
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2495
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2496
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2497
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2498
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2499
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2500
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2501
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2502
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2503
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2504
|
+
----------------------------------------------
|
2505
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
2506
|
+
----------------------------------------------
|
2507
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2508
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2509
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2510
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2511
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2512
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2513
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
2514
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
2515
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
2516
|
+
[1m[36m (1.7ms)[0m [1mrollback transaction[0m
|
2517
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2518
|
+
---------------------------------------------
|
2519
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
2520
|
+
---------------------------------------------
|
2521
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2522
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
2523
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2524
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2525
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
2526
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2527
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
2528
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2529
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2530
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2531
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2532
|
+
-----------------------------------------------------------------------------------
|
2533
|
+
ActsAsRuintstiTest: test_acts_as_ruintsti_params_is_different_between_Block_and_Box
|
2534
|
+
-----------------------------------------------------------------------------------
|
2535
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2536
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2537
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2538
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2539
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2540
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2541
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2542
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2543
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2544
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2545
|
+
--------------------------------------------------------------
|
2546
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
2547
|
+
--------------------------------------------------------------
|
2548
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2549
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2550
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2551
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2552
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2553
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2554
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
2555
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
2556
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
2557
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2558
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2559
|
+
------------------------------------------------------------
|
2560
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
2561
|
+
------------------------------------------------------------
|
2562
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2563
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
2564
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2565
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2566
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
2567
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2568
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
2569
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2570
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2571
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2572
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2573
|
+
----------------------------------------------------------------------
|
2574
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
2575
|
+
----------------------------------------------------------------------
|
2576
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2577
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2578
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2579
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2580
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2581
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2582
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2583
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2584
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2585
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2586
|
+
------------------------------------------------------------------------------
|
2587
|
+
ActsAsRuintstiTest: test_when_create_block_type='hoge',_raise_SubclassNotFound
|
2588
|
+
------------------------------------------------------------------------------
|
2589
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2590
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2591
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2592
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2593
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2594
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2595
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2596
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2597
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2598
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2599
|
+
-------------------------------------------------------------------
|
2600
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
2601
|
+
-------------------------------------------------------------------
|
2602
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2603
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2604
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2605
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2606
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2607
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2608
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2609
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2610
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2611
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2612
|
+
-------------------------------------------------------------------------
|
2613
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
2614
|
+
-------------------------------------------------------------------------
|
2615
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2616
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2617
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2618
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2619
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2620
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2621
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2622
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2623
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2624
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2625
|
+
----------------------------------------------
|
2626
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
2627
|
+
----------------------------------------------
|
2628
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2629
|
+
[1m[36mSQL (2.6ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 0]]
|
2630
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2631
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2632
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 0]]
|
2633
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2634
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 1
|
2635
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 2[0m
|
2636
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2637
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2638
|
+
---------------------------------------------
|
2639
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
2640
|
+
---------------------------------------------
|
2641
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2642
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 0]]
|
2643
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2644
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2645
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 0]]
|
2646
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2647
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 1
|
2648
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 2[0m
|
2649
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2650
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2651
|
+
-----------------------------------------------------------------------------------
|
2652
|
+
ActsAsRuintstiTest: test_acts_as_ruintsti_params_is_different_between_Block_and_Box
|
2653
|
+
-----------------------------------------------------------------------------------
|
2654
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2655
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 0]]
|
2656
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2657
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2658
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 0]]
|
2659
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2660
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 1
|
2661
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 2[0m
|
2662
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2663
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2664
|
+
--------------------------------------------------------------
|
2665
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
2666
|
+
--------------------------------------------------------------
|
2667
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2668
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 0]]
|
2669
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2670
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2671
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 0]]
|
2672
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2673
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
2674
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 1[0m
|
2675
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 2
|
2676
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2677
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2678
|
+
------------------------------------------------------------
|
2679
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
2680
|
+
------------------------------------------------------------
|
2681
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2682
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 0]]
|
2683
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2684
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2685
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 0]]
|
2686
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2687
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
2688
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 1
|
2689
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 2[0m
|
2690
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2691
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2692
|
+
----------------------------------------------------------------------
|
2693
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
2694
|
+
----------------------------------------------------------------------
|
2695
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2696
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 0]]
|
2697
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2698
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2699
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 0]]
|
2700
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2701
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 1
|
2702
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 2[0m
|
2703
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2704
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2705
|
+
------------------------------------------------------------------------------
|
2706
|
+
ActsAsRuintstiTest: test_when_create_block_type='hoge',_raise_SubclassNotFound
|
2707
|
+
------------------------------------------------------------------------------
|
2708
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2709
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 0]]
|
2710
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2711
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2712
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 0]]
|
2713
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2714
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 1
|
2715
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 2[0m
|
2716
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2717
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2718
|
+
-------------------------------------------------------------------
|
2719
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
2720
|
+
-------------------------------------------------------------------
|
2721
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2722
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 0]]
|
2723
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2724
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2725
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 0]]
|
2726
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2727
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 1
|
2728
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 2[0m
|
2729
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2730
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2731
|
+
-------------------------------------------------------------------------
|
2732
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
2733
|
+
-------------------------------------------------------------------------
|
2734
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2735
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 0]]
|
2736
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2737
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2738
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 0]]
|
2739
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2740
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 1
|
2741
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (0) AND "blocks"."id" = 2[0m
|
2742
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2743
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2744
|
+
----------------------------------------------
|
2745
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
2746
|
+
----------------------------------------------
|
2747
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2748
|
+
[1m[36mSQL (2.9ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2749
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2750
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2751
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2752
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2753
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
2754
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
2755
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
2756
|
+
[1m[36m (1.9ms)[0m [1mrollback transaction[0m
|
2757
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2758
|
+
---------------------------------------------
|
2759
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
2760
|
+
---------------------------------------------
|
2761
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2762
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
2763
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2764
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2765
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
2766
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2767
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
2768
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2769
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2770
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2771
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2772
|
+
-----------------------------------------------------------------------------------
|
2773
|
+
ActsAsRuintstiTest: test_acts_as_ruintsti_params_is_different_between_Block_and_Box
|
2774
|
+
-----------------------------------------------------------------------------------
|
2775
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2776
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2777
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2778
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2779
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2780
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2781
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2782
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2783
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2784
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2785
|
+
--------------------------------------------------------------
|
2786
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
2787
|
+
--------------------------------------------------------------
|
2788
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2789
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2790
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2791
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2792
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2793
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2794
|
+
[1m[35mBlock Load (0.0ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
2795
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
2796
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
2797
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2798
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2799
|
+
------------------------------------------------------------
|
2800
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
2801
|
+
------------------------------------------------------------
|
2802
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2803
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
2804
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2805
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2806
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
2807
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2808
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
2809
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2810
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2811
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2812
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2813
|
+
----------------------------------------------------------------------
|
2814
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
2815
|
+
----------------------------------------------------------------------
|
2816
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2817
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2818
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2819
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2820
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2821
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2822
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2823
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2824
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2825
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2826
|
+
------------------------------------------------------------------------------
|
2827
|
+
ActsAsRuintstiTest: test_when_create_block_type='hoge',_raise_SubclassNotFound
|
2828
|
+
------------------------------------------------------------------------------
|
2829
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2830
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2831
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2832
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2833
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2834
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2835
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2836
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2837
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2838
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2839
|
+
-------------------------------------------------------------------
|
2840
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
2841
|
+
-------------------------------------------------------------------
|
2842
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2843
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2844
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2845
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2846
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2847
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2848
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2849
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2850
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2851
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2852
|
+
-------------------------------------------------------------------------
|
2853
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
2854
|
+
-------------------------------------------------------------------------
|
2855
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2856
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2857
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2858
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2859
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2860
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2861
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2862
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2863
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2864
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2865
|
+
----------------------------------------------
|
2866
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
2867
|
+
----------------------------------------------
|
2868
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2869
|
+
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2870
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2871
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2872
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2873
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2874
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
2875
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
2876
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
2877
|
+
[1m[36m (1.9ms)[0m [1mrollback transaction[0m
|
2878
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2879
|
+
---------------------------------------------
|
2880
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
2881
|
+
---------------------------------------------
|
2882
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2883
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
2884
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2885
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2886
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
2887
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2888
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
2889
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2890
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2891
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2892
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2893
|
+
-----------------------------------------------------------------------------------
|
2894
|
+
ActsAsRuintstiTest: test_acts_as_ruintsti_params_is_different_between_Block_and_Box
|
2895
|
+
-----------------------------------------------------------------------------------
|
2896
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2897
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2898
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2899
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2900
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2901
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2902
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2903
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2904
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2905
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2906
|
+
--------------------------------------------------------------
|
2907
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
2908
|
+
--------------------------------------------------------------
|
2909
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2910
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2911
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2912
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2913
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2914
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2915
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
2916
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
2917
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
2918
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2919
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2920
|
+
------------------------------------------------------------
|
2921
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
2922
|
+
------------------------------------------------------------
|
2923
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2924
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
2925
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2926
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2927
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
2928
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2929
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
2930
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2931
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2932
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2933
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2934
|
+
----------------------------------------------------------------------
|
2935
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
2936
|
+
----------------------------------------------------------------------
|
2937
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2938
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2939
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2940
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2941
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2942
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2943
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2944
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2945
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2946
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2947
|
+
------------------------------------------------------------------------------
|
2948
|
+
ActsAsRuintstiTest: test_when_create_block_type='hoge',_raise_SubclassNotFound
|
2949
|
+
------------------------------------------------------------------------------
|
2950
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2951
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2952
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2953
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2954
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2955
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2956
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2957
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2958
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2959
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2960
|
+
-------------------------------------------------------------------
|
2961
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
2962
|
+
-------------------------------------------------------------------
|
2963
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2964
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2965
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2966
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2967
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2968
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2969
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2970
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2971
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2972
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2973
|
+
-------------------------------------------------------------------------
|
2974
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
2975
|
+
-------------------------------------------------------------------------
|
2976
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2977
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2978
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2979
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2980
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2981
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2982
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2983
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2984
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2985
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2986
|
+
----------------------------------------------
|
2987
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
2988
|
+
----------------------------------------------
|
2989
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2990
|
+
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2991
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2992
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2993
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2994
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2995
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
2996
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
2997
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
2998
|
+
[1m[36m (1.9ms)[0m [1mrollback transaction[0m
|
2999
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3000
|
+
---------------------------------------------
|
3001
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
3002
|
+
---------------------------------------------
|
3003
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3004
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
3005
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3006
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3007
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
3008
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3009
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
3010
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
3011
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
3012
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
3013
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3014
|
+
-----------------------------------------------------------------------------------
|
3015
|
+
ActsAsRuintstiTest: test_acts_as_ruintsti_params_is_different_between_Block_and_Box
|
3016
|
+
-----------------------------------------------------------------------------------
|
3017
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3018
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
3019
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3020
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3021
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
3022
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3023
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
3024
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
3025
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
3026
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3027
|
+
--------------------------------------------------------------
|
3028
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
3029
|
+
--------------------------------------------------------------
|
3030
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3031
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
3032
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3033
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3034
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
3035
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3036
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
3037
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
3038
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
3039
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
3040
|
+
[1m[35m (0.1ms)[0m begin transaction
|
3041
|
+
------------------------------------------------------------
|
3042
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
3043
|
+
------------------------------------------------------------
|
3044
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3045
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
3046
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3047
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3048
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
3049
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3050
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
3051
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
3052
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
3053
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
3054
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3055
|
+
----------------------------------------------------------------------
|
3056
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
3057
|
+
----------------------------------------------------------------------
|
3058
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
3059
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
3060
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
3061
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3062
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
3063
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3064
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
3065
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
3066
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
3067
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3068
|
+
------------------------------------------------------------------------------
|
3069
|
+
ActsAsRuintstiTest: test_when_create_block_type='hoge',_raise_SubclassNotFound
|
3070
|
+
------------------------------------------------------------------------------
|
3071
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3072
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
3073
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3074
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3075
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
3076
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3077
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
3078
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
3079
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
3080
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3081
|
+
-------------------------------------------------------------------
|
3082
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
3083
|
+
-------------------------------------------------------------------
|
3084
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3085
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
3086
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3087
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3088
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
3089
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3090
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
3091
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
3092
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
3093
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3094
|
+
-------------------------------------------------------------------------
|
3095
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
3096
|
+
-------------------------------------------------------------------------
|
3097
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
3098
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
3099
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
3100
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
3101
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
3102
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3103
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
3104
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
3105
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_ruintsti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ru/MuckRu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|