acts_as_ruintsti 0.0.2 → 0.0.3
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/version.rb +1 -1
- data/lib/acts_as_ruintsti.rb +1 -0
- data/test/acts_as_ruintsti_test.rb +8 -2
- data/test/dummy/log/test.log +786 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 265feb31bbd24ce5113fb1b8e9479e8d1cfdfae9
|
4
|
+
data.tar.gz: 9d84665c2bd365a3e12903e6d6f71c39d5b2556c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ea7377ce92b3cb82fb09c2637c273f10fdb035fd3ff7b36f935fd30523990755f90448e8adb0402206fce64d9b90df66365286f523bf908e3900fddf87e7536
|
7
|
+
data.tar.gz: 01b146620ab928ece709ce4b533e9159b5a869b5ae8e841774626523bc733d8abf3801984bc715e46f313ec11d256bffb16e55363ed0d1705460de011fb9eeb0
|
data/lib/acts_as_ruintsti.rb
CHANGED
@@ -23,6 +23,7 @@ module ActsAsRuintsti
|
|
23
23
|
def subclass_from_attrs(attr)
|
24
24
|
type_num = attr.with_indifferent_access[inheritance_column]
|
25
25
|
if type_num.present?
|
26
|
+
type_num = type_num.to_i if type_num.class == String and type_num =~ /\A\d+\z/
|
26
27
|
subclass_name = @@acts_as_ruintsti_params[type_num]
|
27
28
|
if subclass_name.present? && subclass_name != self.name
|
28
29
|
subclass = subclass_name.safe_constantize
|
@@ -47,8 +47,8 @@ class ActsAsRuintstiTest < ActiveSupport::TestCase
|
|
47
47
|
assert_equal Block.new(:type => 1).class, RedBlock
|
48
48
|
end
|
49
49
|
|
50
|
-
test "when create block type=2, created BlueBlock" do
|
51
|
-
assert_equal Block.new(:type => 2).class, BlueBlock
|
50
|
+
test "when create block type='2', created BlueBlock" do
|
51
|
+
assert_equal Block.new(:type => '2').class, BlueBlock
|
52
52
|
end
|
53
53
|
|
54
54
|
test "when create block type=3, raise SubclassNotFound" do
|
@@ -56,4 +56,10 @@ class ActsAsRuintstiTest < ActiveSupport::TestCase
|
|
56
56
|
Block.new(:type => 3)
|
57
57
|
end
|
58
58
|
end
|
59
|
+
|
60
|
+
test "when create block type='hoge', raise SubclassNotFound" do
|
61
|
+
assert_raise ActiveRecord::SubclassNotFound do
|
62
|
+
Block.new(:type => 'hoge')
|
63
|
+
end
|
64
|
+
end
|
59
65
|
end
|
data/test/dummy/log/test.log
CHANGED
@@ -1298,3 +1298,789 @@ ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
|
1298
1298
|
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1299
1299
|
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1300
1300
|
[1m[35m (0.6ms)[0m rollback transaction
|
1301
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1302
|
+
----------------------------------------------
|
1303
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
1304
|
+
----------------------------------------------
|
1305
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1306
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1307
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1308
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1309
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1310
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1311
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
1312
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
1313
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
1314
|
+
[1m[36m (2.1ms)[0m [1mrollback transaction[0m
|
1315
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1316
|
+
---------------------------------------------
|
1317
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
1318
|
+
---------------------------------------------
|
1319
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1320
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
1321
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1322
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1323
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
1324
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1325
|
+
[1m[36mBlock Load (0.1ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
1326
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1327
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1328
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1329
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1330
|
+
--------------------------------------------------------------
|
1331
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
1332
|
+
--------------------------------------------------------------
|
1333
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1334
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1335
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1336
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1337
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1338
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1339
|
+
[1m[35mBlock Load (0.0ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
1340
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
1341
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
1342
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1343
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1344
|
+
------------------------------------------------------------
|
1345
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
1346
|
+
------------------------------------------------------------
|
1347
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1348
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
1349
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1350
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1351
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
1352
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1353
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
1354
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1355
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1356
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1357
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1358
|
+
-------------------------------------------------------------------
|
1359
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
1360
|
+
-------------------------------------------------------------------
|
1361
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1362
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1363
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1364
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1365
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1366
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1367
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1368
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1369
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1370
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1371
|
+
--------------------------------------------------------------------
|
1372
|
+
ActsAsRuintstiTest: test_when_create_block_type=2,_created_BlueBlock
|
1373
|
+
--------------------------------------------------------------------
|
1374
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1375
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1376
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1377
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1378
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1379
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1380
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1381
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1382
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1383
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1384
|
+
-------------------------------------------------------------------------
|
1385
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
1386
|
+
-------------------------------------------------------------------------
|
1387
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1388
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1389
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1390
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1391
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1392
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1393
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1394
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1395
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1396
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1397
|
+
----------------------------------------------
|
1398
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
1399
|
+
----------------------------------------------
|
1400
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1401
|
+
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1402
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1403
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1404
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1405
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1406
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
1407
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
1408
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
1409
|
+
[1m[36m (2.1ms)[0m [1mrollback transaction[0m
|
1410
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1411
|
+
---------------------------------------------
|
1412
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
1413
|
+
---------------------------------------------
|
1414
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1415
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
1416
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1417
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1418
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
1419
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1420
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
1421
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1422
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1423
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1424
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1425
|
+
--------------------------------------------------------------
|
1426
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
1427
|
+
--------------------------------------------------------------
|
1428
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1429
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1430
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1431
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1432
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1433
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1434
|
+
[1m[35mBlock Load (0.0ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
1435
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
1436
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
1437
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1438
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1439
|
+
------------------------------------------------------------
|
1440
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
1441
|
+
------------------------------------------------------------
|
1442
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1443
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
1444
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1445
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1446
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
1447
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1448
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
1449
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1450
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1451
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1452
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1453
|
+
----------------------------------------------------------------------
|
1454
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
1455
|
+
----------------------------------------------------------------------
|
1456
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1457
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1458
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1459
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1460
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1461
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1462
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1463
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1464
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1465
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1466
|
+
-------------------------------------------------------------------
|
1467
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
1468
|
+
-------------------------------------------------------------------
|
1469
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1470
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1471
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1472
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1473
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1474
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1475
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1476
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1477
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1478
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1479
|
+
-------------------------------------------------------------------------
|
1480
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
1481
|
+
-------------------------------------------------------------------------
|
1482
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1483
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1484
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1485
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1486
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1487
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1488
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1489
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1490
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1491
|
+
[1m[36m (1.4ms)[0m [1mbegin transaction[0m
|
1492
|
+
----------------------------------------------
|
1493
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
1494
|
+
----------------------------------------------
|
1495
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1496
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1497
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1498
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1499
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1500
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1501
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
1502
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
1503
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
1504
|
+
[1m[36m (2.1ms)[0m [1mrollback transaction[0m
|
1505
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1506
|
+
---------------------------------------------
|
1507
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
1508
|
+
---------------------------------------------
|
1509
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1510
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
1511
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1512
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1513
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
1514
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1515
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
1516
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1517
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1518
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1519
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1520
|
+
--------------------------------------------------------------
|
1521
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
1522
|
+
--------------------------------------------------------------
|
1523
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1524
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1525
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1526
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1527
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1528
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1529
|
+
[1m[35mBlock Load (0.0ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
1530
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
1531
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
1532
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1533
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1534
|
+
------------------------------------------------------------
|
1535
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
1536
|
+
------------------------------------------------------------
|
1537
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1538
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
1539
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1540
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1541
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
1542
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1543
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
1544
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1545
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1546
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1547
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1548
|
+
----------------------------------------------------------------------
|
1549
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
1550
|
+
----------------------------------------------------------------------
|
1551
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1552
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1553
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1554
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1555
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1556
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1557
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1558
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1559
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1560
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1561
|
+
-------------------------------------------------------------------
|
1562
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
1563
|
+
-------------------------------------------------------------------
|
1564
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1565
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1566
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1567
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1568
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1569
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1570
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1571
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1572
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1573
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1574
|
+
-------------------------------------------------------------------------
|
1575
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
1576
|
+
-------------------------------------------------------------------------
|
1577
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1578
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1579
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1580
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1581
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1582
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1583
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1584
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1585
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1586
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1587
|
+
----------------------------------------------
|
1588
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
1589
|
+
----------------------------------------------
|
1590
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1591
|
+
[1m[36mSQL (2.7ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1592
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1593
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1594
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1595
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1596
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
1597
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
1598
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
1599
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1600
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1601
|
+
---------------------------------------------
|
1602
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
1603
|
+
---------------------------------------------
|
1604
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1605
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
1606
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1607
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1608
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
1609
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1610
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
1611
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1612
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1613
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1614
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1615
|
+
--------------------------------------------------------------
|
1616
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
1617
|
+
--------------------------------------------------------------
|
1618
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1619
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1620
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1621
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1622
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1623
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1624
|
+
[1m[35mBlock Load (0.0ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
1625
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
1626
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
1627
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1628
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1629
|
+
------------------------------------------------------------
|
1630
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
1631
|
+
------------------------------------------------------------
|
1632
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1633
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
1634
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1635
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1636
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
1637
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1638
|
+
[1m[36mBlock Load (0.1ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
1639
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1640
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1641
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1642
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1643
|
+
----------------------------------------------------------------------
|
1644
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
1645
|
+
----------------------------------------------------------------------
|
1646
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1647
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1648
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1649
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1650
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1651
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1652
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1653
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1654
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1655
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1656
|
+
-------------------------------------------------------------------
|
1657
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
1658
|
+
-------------------------------------------------------------------
|
1659
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1660
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1661
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1662
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1663
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1664
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1665
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1666
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1667
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1668
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1669
|
+
-------------------------------------------------------------------------
|
1670
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
1671
|
+
-------------------------------------------------------------------------
|
1672
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1673
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1674
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1675
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1676
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1677
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1678
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1679
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1680
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1681
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1682
|
+
----------------------------------------------
|
1683
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
1684
|
+
----------------------------------------------
|
1685
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1686
|
+
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1687
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1688
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1689
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1690
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1691
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
1692
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
1693
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
1694
|
+
[1m[36m (2.6ms)[0m [1mrollback transaction[0m
|
1695
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1696
|
+
---------------------------------------------
|
1697
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
1698
|
+
---------------------------------------------
|
1699
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1700
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
1701
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1702
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1703
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
1704
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1705
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
1706
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1707
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1708
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1709
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1710
|
+
--------------------------------------------------------------
|
1711
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
1712
|
+
--------------------------------------------------------------
|
1713
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1714
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1715
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1716
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1717
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1718
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1719
|
+
[1m[35mBlock Load (0.0ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
1720
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
1721
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
1722
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1723
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1724
|
+
------------------------------------------------------------
|
1725
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
1726
|
+
------------------------------------------------------------
|
1727
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1728
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
1729
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1730
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1731
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
1732
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1733
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
1734
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1735
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1736
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1737
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1738
|
+
----------------------------------------------------------------------
|
1739
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
1740
|
+
----------------------------------------------------------------------
|
1741
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1742
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1743
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1744
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1745
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1746
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1747
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1748
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1749
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1750
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1751
|
+
-------------------------------------------------------------------
|
1752
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
1753
|
+
-------------------------------------------------------------------
|
1754
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1755
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1756
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1757
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1758
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1759
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1760
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1761
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1762
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1763
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1764
|
+
-------------------------------------------------------------------------
|
1765
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
1766
|
+
-------------------------------------------------------------------------
|
1767
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1768
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1769
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1770
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1771
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1772
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1773
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1774
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1775
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1776
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1777
|
+
----------------------------------------------
|
1778
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
1779
|
+
----------------------------------------------
|
1780
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1781
|
+
[1m[36mSQL (2.6ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1782
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1783
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1784
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1785
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1786
|
+
[1m[35mBlock Load (0.2ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
1787
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
1788
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
1789
|
+
[1m[36m (1.9ms)[0m [1mrollback transaction[0m
|
1790
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1791
|
+
---------------------------------------------
|
1792
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
1793
|
+
---------------------------------------------
|
1794
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1795
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
1796
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1797
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1798
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
1799
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1800
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
1801
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1802
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1803
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1804
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1805
|
+
--------------------------------------------------------------
|
1806
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
1807
|
+
--------------------------------------------------------------
|
1808
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1809
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1810
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1811
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1812
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1813
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1814
|
+
[1m[35mBlock Load (0.0ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
1815
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
1816
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
1817
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1818
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1819
|
+
------------------------------------------------------------
|
1820
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
1821
|
+
------------------------------------------------------------
|
1822
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1823
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
1824
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1825
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1826
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
1827
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1828
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
1829
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1830
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1831
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1832
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1833
|
+
----------------------------------------------------------------------
|
1834
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
1835
|
+
----------------------------------------------------------------------
|
1836
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1837
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1838
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1839
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1840
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1841
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1842
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1843
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1844
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1845
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1846
|
+
-------------------------------------------------------------------
|
1847
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
1848
|
+
-------------------------------------------------------------------
|
1849
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1850
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1851
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1852
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1853
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1854
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1855
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1856
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1857
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1858
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1859
|
+
-------------------------------------------------------------------------
|
1860
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
1861
|
+
-------------------------------------------------------------------------
|
1862
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1863
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1864
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1865
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1866
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1867
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1868
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1869
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1870
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1871
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1872
|
+
----------------------------------------------
|
1873
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
1874
|
+
----------------------------------------------
|
1875
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1876
|
+
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1877
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1878
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1879
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1880
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1881
|
+
[1m[35mBlock Load (0.3ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
1882
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
1883
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
1884
|
+
[1m[36m (2.4ms)[0m [1mrollback transaction[0m
|
1885
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1886
|
+
---------------------------------------------
|
1887
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
1888
|
+
---------------------------------------------
|
1889
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1890
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
1891
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1892
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1893
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
1894
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1895
|
+
[1m[36mBlock Load (0.1ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
1896
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1897
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1898
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
1899
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1900
|
+
--------------------------------------------------------------
|
1901
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
1902
|
+
--------------------------------------------------------------
|
1903
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1904
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1905
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1906
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1907
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1908
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1909
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
1910
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
1911
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
1912
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1913
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1914
|
+
------------------------------------------------------------
|
1915
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
1916
|
+
------------------------------------------------------------
|
1917
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1918
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
1919
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1920
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1921
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
1922
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1923
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
1924
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1925
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1926
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1927
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1928
|
+
----------------------------------------------------------------------
|
1929
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
1930
|
+
----------------------------------------------------------------------
|
1931
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1932
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1933
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1934
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1935
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1936
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1937
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1938
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1939
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1940
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1941
|
+
------------------------------------------------------------------------------
|
1942
|
+
ActsAsRuintstiTest: test_when_create_block_type='hoge',_raise_SubclassNotFound
|
1943
|
+
------------------------------------------------------------------------------
|
1944
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1945
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1946
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1947
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1948
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1949
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1950
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1951
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1952
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
1953
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1954
|
+
-------------------------------------------------------------------
|
1955
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
1956
|
+
-------------------------------------------------------------------
|
1957
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1958
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1959
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1960
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1961
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1962
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1963
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1964
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1965
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
1966
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1967
|
+
-------------------------------------------------------------------------
|
1968
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
1969
|
+
-------------------------------------------------------------------------
|
1970
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1971
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1972
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1973
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1974
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1975
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1976
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
1977
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
1978
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
1979
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1980
|
+
----------------------------------------------
|
1981
|
+
ActsAsRuintstiTest: test_BlueBlock's_type_is_2
|
1982
|
+
----------------------------------------------
|
1983
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1984
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
1985
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1986
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1987
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
1988
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1989
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
1990
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
1991
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
1992
|
+
[1m[36m (1.7ms)[0m [1mrollback transaction[0m
|
1993
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1994
|
+
---------------------------------------------
|
1995
|
+
ActsAsRuintstiTest: test_RedBlock's_type_is_1
|
1996
|
+
---------------------------------------------
|
1997
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1998
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
1999
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2000
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2001
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
2002
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2003
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
2004
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2005
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2006
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2007
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2008
|
+
--------------------------------------------------------------
|
2009
|
+
ActsAsRuintstiTest: test_loaded_BlueBlock's_class_is_BlueBlock
|
2010
|
+
--------------------------------------------------------------
|
2011
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2012
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2013
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2014
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2015
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2016
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2017
|
+
[1m[35mBlock Load (0.1ms)[0m SELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1 [["id", 2]]
|
2018
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1[0m
|
2019
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2
|
2020
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2021
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2022
|
+
------------------------------------------------------------
|
2023
|
+
ActsAsRuintstiTest: test_loaded_RedBlock's_class_is_RedBlock
|
2024
|
+
------------------------------------------------------------
|
2025
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2026
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 1]]
|
2027
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2028
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2029
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 2]]
|
2030
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2031
|
+
[1m[36mBlock Load (0.0ms)[0m [1mSELECT "blocks".* FROM "blocks" WHERE "blocks"."id" = ? LIMIT 1[0m [["id", 1]]
|
2032
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2033
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2034
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2035
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2036
|
+
----------------------------------------------------------------------
|
2037
|
+
ActsAsRuintstiTest: test_when_create_block_type='2',_created_BlueBlock
|
2038
|
+
----------------------------------------------------------------------
|
2039
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2040
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2041
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2042
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2043
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2044
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2045
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2046
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2047
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2048
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2049
|
+
------------------------------------------------------------------------------
|
2050
|
+
ActsAsRuintstiTest: test_when_create_block_type='hoge',_raise_SubclassNotFound
|
2051
|
+
------------------------------------------------------------------------------
|
2052
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2053
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2054
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2055
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2056
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2057
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2058
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2059
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2060
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2061
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2062
|
+
-------------------------------------------------------------------
|
2063
|
+
ActsAsRuintstiTest: test_when_create_block_type=1,_created_RedBlock
|
2064
|
+
-------------------------------------------------------------------
|
2065
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2066
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2067
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2068
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2069
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2070
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2071
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2072
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2073
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2074
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2075
|
+
-------------------------------------------------------------------------
|
2076
|
+
ActsAsRuintstiTest: test_when_create_block_type=3,_raise_SubclassNotFound
|
2077
|
+
-------------------------------------------------------------------------
|
2078
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2079
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "blocks" ("type") VALUES (?)[0m [["type", 1]]
|
2080
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2081
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2082
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "blocks" ("type") VALUES (?) [["type", 2]]
|
2083
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2084
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "blocks" WHERE "blocks"."type" IN (1) AND "blocks"."id" = 1
|
2085
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "blocks" WHERE "blocks"."type" IN (2) AND "blocks"."id" = 2[0m
|
2086
|
+
[1m[35m (0.5ms)[0m rollback transaction
|