large_text_field 0.3.2 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/db/migrate/20110217210640_add_large_text_fields.rb +1 -2
- data/lib/large_text_field/named_text_value.rb +0 -4
- data/lib/large_text_field/owner.rb +2 -2
- data/lib/large_text_field/version.rb +1 -1
- data/lib/large_text_field.rb +0 -2
- data/test/dummy/app/models/library.rb +0 -1
- data/test/dummy/config/database.yml +13 -1
- data/test/dummy/config/environments/development.rb +0 -3
- data/test/dummy/config/environments/test.rb +0 -3
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +10 -9
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +32 -12
- data/test/dummy/log/test.log +1261 -439
- data/test/reports/TEST-LargeTextField-LibraryTest.xml +3 -3
- data/test/reports/TEST-LargeTextField-NamedTextValueTest.xml +6 -6
- data/test/reports/TEST-LargeTextField-OwnerTest.xml +26 -24
- data/test/reports/TEST-LargeTextFieldTest.xml +2 -2
- data/test/test_helper.rb +3 -1
- data/test/unit/large_text_field/owner_test.rb +4 -0
- metadata +13 -21
data/test/dummy/log/test.log
CHANGED
@@ -1,165 +1,772 @@
|
|
1
|
+
[1m[36m (1.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
5
|
+
Migrating to AddLargeTextFields (20110217210640)
|
6
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "large_text_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field_name" varchar NOT NULL, "value" text(16777215), "owner_id" integer NOT NULL, "owner_type" varchar NOT NULL)
|
8
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "large_text_field_by_owner_field" ON "large_text_fields" ("owner_type", "owner_id", "field_name")[0m
|
9
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20110217210640"]]
|
10
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
11
|
+
Migrating to CreateLibraries (20160217033529)
|
12
|
+
[1m[35m (0.0ms)[0m begin transaction
|
13
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "libraries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL) [0m
|
14
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160217033529"]]
|
15
|
+
[1m[36m (1.5ms)[0m [1mcommit transaction[0m
|
16
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
17
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
18
|
+
FROM sqlite_master
|
19
|
+
WHERE name='large_text_field_by_owner_field' AND type='index'
|
20
|
+
UNION ALL
|
21
|
+
SELECT sql
|
22
|
+
FROM sqlite_temp_master
|
23
|
+
WHERE name='large_text_field_by_owner_field' AND type='index'
|
24
|
+
[0m
|
25
|
+
[1m[36m (1.4ms)[0m [1mDROP TABLE "large_text_fields"[0m
|
26
|
+
[1m[35m (1.4ms)[0m CREATE TABLE "large_text_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "field_name" varchar NOT NULL, "value" text(16777215), "owner_id" integer NOT NULL, "owner_type" varchar NOT NULL)
|
27
|
+
[1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
28
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "large_text_field_by_owner_field" ON "large_text_fields" ("owner_type", "owner_id", "field_name")
|
29
|
+
[1m[36m (1.2ms)[0m [1mDROP TABLE "libraries"[0m
|
30
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "libraries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL)
|
31
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
32
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1
33
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3
34
|
[1m[35m (0.1ms)[0m begin transaction
|
35
|
+
--------------------------------------------------------------------------------------------------
|
36
|
+
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should belong to owner.
|
37
|
+
--------------------------------------------------------------------------------------------------
|
38
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
39
|
+
[1m[35m (0.0ms)[0m begin transaction
|
40
|
+
-----------------------------------------------------------------------------------------------------------------------
|
41
|
+
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should have field name and value attributes.
|
42
|
+
-----------------------------------------------------------------------------------------------------------------------
|
43
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
44
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
45
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
46
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
47
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?)[0m [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 1], ["owner_type", "Library"]]
|
48
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
49
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
50
|
+
[1m[35mLibrary Load (0.1ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
51
|
+
[1m[36m (1.3ms)[0m [1mrollback transaction[0m
|
52
|
+
[1m[35m (0.1ms)[0m begin transaction
|
53
|
+
--------------------------------------------------------------------------------------------------------------------------
|
54
|
+
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should use large_text_fields as the table name.
|
55
|
+
--------------------------------------------------------------------------------------------------------------------------
|
56
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
57
|
+
[1m[35m (0.0ms)[0m begin transaction
|
58
|
+
-------------------------------------------------------------------------------------------------------
|
59
|
+
LargeTextField::NamedTextValueTest: test_: unique index should allow different owners and field names.
|
60
|
+
-------------------------------------------------------------------------------------------------------
|
61
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
62
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
63
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
64
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
65
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Alexandria"]]
|
66
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
67
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
68
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?) [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 1], ["owner_type", "Library"]]
|
69
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
70
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
71
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?)[0m [["field_name", "dog"], ["value", "Wiki"], ["owner_id", 1], ["owner_type", "Library"]]
|
72
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
73
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
74
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?) [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 2], ["owner_type", "Library"]]
|
75
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
76
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
77
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
78
|
+
------------------------------------------------------------------------------------------------------------------------------------
|
79
|
+
LargeTextField::NamedTextValueTest: test_: unique index should raise a unique constraint failure on the same owner, and field name.
|
80
|
+
------------------------------------------------------------------------------------------------------------------------------------
|
81
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
82
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
83
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
84
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
85
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?) [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 1], ["owner_type", "Library"]]
|
86
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
87
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
88
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?)[0m [["field_name", "puppy"], ["value", "Wiki"], ["owner_id", 1], ["owner_type", "Library"]]
|
89
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
90
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
91
|
+
[1m[35m (0.0ms)[0m begin transaction
|
92
|
+
---------------------------------------------------------------------------------------------------
|
93
|
+
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to construct a library.
|
94
|
+
---------------------------------------------------------------------------------------------------
|
95
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
96
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Alexandria Public Library"]]
|
97
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
98
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
99
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", " The Royal Library of Alexandria or Ancient Library of Alexandria in Alexandria, Egypt, was one of the\n largest and most significant libraries of the ancient world. It was dedicated to the Muses, the nine\n goddesses of the arts.[1] It flourished under the patronage of the Ptolemaic dynasty and functioned\n as a major center of scholarship from its construction in the 3rd century BCE until the Roman conquest\n of Egypt in 30 BCE, with collections of works, lecture halls, meeting rooms, and gardens. The library\n was part of a larger research institution called the Musaeum of Alexandria, where many of the most\n famous thinkers of the ancient world studied.\n\n The library was created by Ptolemy I Soter, who was a Macedonian general and the successor of Alexander\n the Great.[2] Most of the books were kept as papyrus scrolls. It is unknown how many such scrolls were\n housed at any given time.\n\n The library is famous for having been burned down, resulting in the loss of many scrolls and books; its\n destruction has become a symbol for the loss of cultural knowledge. A few sources differ on who is\n responsible for the destruction and when it occurred. There is mythology regarding this main burning\n but the library may in truth have suffered several fires or other acts of destruction over many years.\n Possible occasions for the partial or complete destruction of the Library of Alexandria include a fire\n set by Julius Caesar in 48 BCE and an attack by Aurelian in the CE 270s.\n\n After the main library was fully destroyed, ancient scholars used a \"daughter library\" in a temple known\n as the Serapeum, located in another part of the city. According to Socrates of Constantinople, Coptic Pope\n Theophilus destroyed the Serapeum in AD 391, although it's not certain that it still contained an offshoot\n of the library then.\n"]]
|
100
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
101
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
102
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.1ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
103
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
104
|
+
[1m[35m (0.0ms)[0m begin transaction
|
105
|
+
--------------------------------------------------------------------------------------------------------------------------------
|
106
|
+
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to dup a class that has no current large text field.
|
107
|
+
--------------------------------------------------------------------------------------------------------------------------------
|
108
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
109
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4
110
|
----------------------------------------------------------------------------------------------------------
|
5
111
|
LargeTextField::OwnerTest: test_: a large text field should allow a custom maximum length to be provided.
|
6
112
|
----------------------------------------------------------------------------------------------------------
|
7
113
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8
|
-
[1m[
|
114
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
115
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
116
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
117
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
118
|
+
---------------------------------------------------------------------------------------------------
|
119
|
+
LargeTextField::OwnerTest: test_: a large text field should allow for concurrent sets and deletes.
|
120
|
+
---------------------------------------------------------------------------------------------------
|
121
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
122
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
123
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
124
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
125
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
126
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"]]
|
127
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
128
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
129
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
130
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
131
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ? [["id", 2]]
|
132
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "large_text_fields" SET "value" = ? WHERE "large_text_fields"."id" = ?[0m [["value", "third"], ["id", 1]]
|
133
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
134
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
135
|
+
[1m[35m (0.0ms)[0m begin transaction
|
136
|
+
------------------------------------------------------------------------------------------------------
|
137
|
+
LargeTextField::OwnerTest: test_: a large text field should allow get and set with saves and deletes.
|
138
|
+
------------------------------------------------------------------------------------------------------
|
139
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
140
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
141
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
143
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger "]]
|
144
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
145
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
146
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
147
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
148
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "large_text_fields" SET "value" = ? WHERE "large_text_fields"."id" = ? [["value", "mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom "], ["id", 1]]
|
149
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
150
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
151
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
152
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
153
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 1]]
|
154
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
155
|
+
[1m[36mLibrary Load (0.1ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
156
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
157
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
158
|
+
[1m[35m (0.1ms)[0m begin transaction
|
159
|
+
----------------------------------------------------------------------------------------
|
160
|
+
LargeTextField::OwnerTest: test_: a large text field should be able to be eager loaded.
|
161
|
+
----------------------------------------------------------------------------------------
|
162
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
163
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
164
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
165
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
166
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
167
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"]]
|
168
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
169
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
170
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_type" = 'Library' AND "large_text_fields"."owner_id" IN (1)[0m
|
171
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
172
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
173
|
+
----------------------------------------------------------------------------------------------
|
174
|
+
LargeTextField::OwnerTest: test_: a large text field should be able to update deleted fields.
|
175
|
+
----------------------------------------------------------------------------------------------
|
176
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
177
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
178
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
179
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
180
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
181
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
182
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
183
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
184
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
185
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 1]]
|
186
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
187
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
188
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
189
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
190
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
191
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
192
|
+
[1m[35m (0.1ms)[0m begin transaction
|
193
|
+
---------------------------------------------------------------------------------------------------
|
194
|
+
LargeTextField::OwnerTest: test_: a large text field should be cloned with the rest of the record.
|
195
|
+
---------------------------------------------------------------------------------------------------
|
196
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
197
|
+
[1m[35mSQL (7.5ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
198
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
199
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
200
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
201
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"]]
|
202
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
203
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
204
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
205
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "description"], ["value", "first"], ["owner_id", 2]]
|
206
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"], ["owner_id", 2]]
|
207
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
208
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
209
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
210
|
+
[1m[36mLibrary Load (0.1ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
211
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.1ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
212
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
213
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ? [["id", 3]]
|
214
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 4]]
|
215
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "libraries" WHERE "libraries"."id" = ? [["id", 2]]
|
216
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
217
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."id" = ? LIMIT 1 [["id", 3]]
|
218
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."id" = ? LIMIT 1[0m [["id", 4]]
|
219
|
+
[1m[35m (33.4ms)[0m rollback transaction
|
220
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
221
|
+
-------------------------------------------------------------------------------------------------------------------------------------------------------------
|
222
|
+
LargeTextField::OwnerTest: test_: a large text field should declare the association when it is first described and other meta data when it is first defined.
|
223
|
+
-------------------------------------------------------------------------------------------------------------------------------------------------------------
|
224
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
225
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
226
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
227
|
+
[1m[36m (8.8ms)[0m [1mrollback transaction[0m
|
228
|
+
[1m[35m (0.1ms)[0m begin transaction
|
229
|
+
------------------------------------------------------------------------------------------------------
|
230
|
+
LargeTextField::OwnerTest: test_: a large text field should delete fields when they are set to blank.
|
231
|
+
------------------------------------------------------------------------------------------------------
|
232
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
233
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
234
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
235
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
236
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
237
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
238
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
239
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
240
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
241
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
242
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
243
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ? [["id", 1]]
|
244
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
245
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
246
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
247
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
248
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
249
|
+
[1m[35m (0.1ms)[0m begin transaction
|
250
|
+
------------------------------------------------------------------------------------------------------------------
|
251
|
+
LargeTextField::OwnerTest: test_: a large text field should delete large text fields when the owner is destroyed.
|
252
|
+
------------------------------------------------------------------------------------------------------------------
|
253
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
254
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
255
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
256
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "large_text_fields"
|
257
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
258
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Cambridge University Library"]]
|
259
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "in england"], ["owner_id", 2]]
|
260
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
261
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields"[0m
|
262
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
263
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 1]]
|
264
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "libraries" WHERE "libraries"."id" = ? [["id", 2]]
|
265
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
266
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields"
|
267
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
268
|
+
[1m[35m (0.0ms)[0m begin transaction
|
269
|
+
--------------------------------------------------------------------------------------------------------------------
|
270
|
+
LargeTextField::OwnerTest: test_: a large text field should detect changes when @text_field_hash hash is/not empty.
|
271
|
+
--------------------------------------------------------------------------------------------------------------------
|
272
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
273
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
274
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
275
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
276
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
277
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "description"], ["value", "a new note"], ["owner_id", 2]]
|
278
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
279
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
280
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
281
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
282
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
283
|
+
--------------------------------------------------------------------------------------------------------
|
284
|
+
LargeTextField::OwnerTest: test_: a large text field should forget about changes if they are not saved.
|
285
|
+
--------------------------------------------------------------------------------------------------------
|
286
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
287
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
288
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
289
|
+
[1m[36mLibrary Load (0.1ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
290
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.1ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
291
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
292
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
293
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
294
|
+
[1m[35mLibrary Load (0.1ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
295
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
296
|
+
[1m[35mLibrary Load (0.1ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
297
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
298
|
+
[1m[35m (3.2ms)[0m rollback transaction
|
299
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
300
|
+
---------------------------------------------------------------------------------------------------
|
301
|
+
LargeTextField::OwnerTest: test_: a large text field should not save fields that are set to blank.
|
302
|
+
---------------------------------------------------------------------------------------------------
|
303
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
304
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
305
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
306
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
307
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Millie"]]
|
308
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "first"], ["owner_id", 2]]
|
309
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
310
|
+
[1m[36mLibrary Load (0.1ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 2]]
|
311
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.1ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 2], ["owner_type", "Library"]]
|
312
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
313
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
314
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
315
|
+
-------------------------------------------------------------------------------------------------------
|
316
|
+
LargeTextField::OwnerTest: test_: a large text field should only validate_large_text_fields if loaded.
|
317
|
+
-------------------------------------------------------------------------------------------------------
|
318
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
319
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
320
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
321
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
322
|
+
[1m[35m (0.1ms)[0m begin transaction
|
323
|
+
-----------------------------------------------------------------------------------------------------------------------------------------------
|
324
|
+
LargeTextField::OwnerTest: test_: a large text field should prevent a custom maximum length to be provided that is not in the allowable range.
|
325
|
+
-----------------------------------------------------------------------------------------------------------------------------------------------
|
326
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
327
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
328
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
329
|
+
[1m[35m (1.4ms)[0m rollback transaction
|
330
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
331
|
+
-----------------------------------------------------------------------------------------------------------------------
|
332
|
+
LargeTextField::OwnerTest: test_: a large text field should prevent a non-Integer to be provided for a custom maximum.
|
333
|
+
-----------------------------------------------------------------------------------------------------------------------
|
334
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
335
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
336
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
337
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
338
|
+
[1m[35m (0.1ms)[0m begin transaction
|
339
|
+
------------------------------------------------------------------------------
|
340
|
+
LargeTextField::OwnerTest: test_: a large text field should read from a file.
|
341
|
+
------------------------------------------------------------------------------
|
342
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
343
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
344
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
345
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
346
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
347
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
348
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
349
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 2], ["owner_type", "Library"], ["field_name", "description"], ["value", "this is a string from the file"]]
|
350
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
351
|
+
[1m[35mLibrary Load (0.1ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
352
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
353
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
354
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
355
|
+
------------------------------------------------------------------------------------------------------------------
|
356
|
+
LargeTextField::OwnerTest: test_: a large text field should reload changes when they come from a different model.
|
357
|
+
------------------------------------------------------------------------------------------------------------------
|
358
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
359
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
360
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
361
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
362
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Cambridge University Library"]]
|
363
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "in england"], ["owner_id", 2]]
|
364
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
365
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 2]]
|
366
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
367
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
368
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "large_text_fields" SET "value" = ? WHERE "large_text_fields"."id" = ? [["value", "The main research library of the University of Cambridge in England"], ["id", 1]]
|
369
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
370
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
371
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
372
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
373
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
374
|
+
-------------------------------------------------------------------------------------------------
|
375
|
+
LargeTextField::OwnerTest: test_: a large text field should singularize the errors if requested.
|
376
|
+
-------------------------------------------------------------------------------------------------
|
377
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
378
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
379
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
380
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
381
|
+
[1m[35m (0.1ms)[0m begin transaction
|
382
|
+
------------------------------------------------------------------------------------------------------------
|
383
|
+
LargeTextField::OwnerTest: test_: a large text field should support strings or symbols for get/set methods.
|
384
|
+
------------------------------------------------------------------------------------------------------------
|
385
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
386
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
387
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
388
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
389
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
390
|
+
-----------------------------------------------------------------------------------------
|
391
|
+
LargeTextField::OwnerTest: test_: a large text field should validate the maximum length.
|
392
|
+
-----------------------------------------------------------------------------------------
|
393
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
394
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
395
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
396
|
+
[1m[36m (1.3ms)[0m [1mrollback transaction[0m
|
397
|
+
[1m[35m (0.1ms)[0m begin transaction
|
398
|
+
----------------------------------------------------------------------------------------------------------------
|
399
|
+
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should be able to assign empty string.
|
400
|
+
----------------------------------------------------------------------------------------------------------------
|
401
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
402
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
403
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
404
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
405
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
406
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
407
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
408
|
+
--------------------------------------------------------------------------------------------------------------------
|
409
|
+
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should be able to assign non empty string.
|
410
|
+
--------------------------------------------------------------------------------------------------------------------
|
411
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
412
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
413
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "notes"], ["value", "this is some text"], ["owner_id", 1]]
|
414
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
415
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
416
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
417
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
418
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
419
|
+
-----------------------------------------------------------------------------------------------------------------
|
420
|
+
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should raise error on saving nil value.
|
421
|
+
-----------------------------------------------------------------------------------------------------------------
|
422
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
423
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
424
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
425
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
426
|
+
------------------------------
|
427
|
+
LargeTextFieldTest: test_truth
|
428
|
+
------------------------------
|
429
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
430
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
431
|
+
[1m[35m (0.1ms)[0m begin transaction
|
432
|
+
------------------------------
|
433
|
+
LargeTextFieldTest: test_truth
|
434
|
+
------------------------------
|
9
435
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
10
436
|
[1m[35m (0.0ms)[0m begin transaction
|
437
|
+
----------------------------------------------------------------------------------------------------------
|
438
|
+
LargeTextField::OwnerTest: test_: a large text field should allow a custom maximum length to be provided.
|
439
|
+
----------------------------------------------------------------------------------------------------------
|
440
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
441
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
442
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
443
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
444
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11
445
|
---------------------------------------------------------------------------------------------------
|
12
446
|
LargeTextField::OwnerTest: test_: a large text field should allow for concurrent sets and deletes.
|
13
447
|
---------------------------------------------------------------------------------------------------
|
448
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
449
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
450
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
14
451
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
15
|
-
[1m[
|
16
|
-
[1m[
|
452
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
453
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"]]
|
454
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
455
|
+
[1m[36mLibrary Load (0.1ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
456
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.1ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
457
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
458
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ? [["id", 2]]
|
459
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "large_text_fields" SET "value" = ? WHERE "large_text_fields"."id" = ?[0m [["value", "third"], ["id", 1]]
|
460
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
461
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
17
462
|
[1m[35m (0.0ms)[0m begin transaction
|
18
463
|
------------------------------------------------------------------------------------------------------
|
19
464
|
LargeTextField::OwnerTest: test_: a large text field should allow get and set with saves and deletes.
|
20
465
|
------------------------------------------------------------------------------------------------------
|
21
466
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
22
|
-
[1m[
|
23
|
-
[1m[36m (0.0ms)[0m [
|
467
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
468
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
469
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
470
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger "]]
|
471
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
472
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
473
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
474
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
475
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "large_text_fields" SET "value" = ? WHERE "large_text_fields"."id" = ? [["value", "mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom "], ["id", 1]]
|
476
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
477
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
478
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
479
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
480
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 1]]
|
481
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
482
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
483
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
484
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
24
485
|
[1m[35m (0.0ms)[0m begin transaction
|
25
486
|
----------------------------------------------------------------------------------------
|
26
487
|
LargeTextField::OwnerTest: test_: a large text field should be able to be eager loaded.
|
27
488
|
----------------------------------------------------------------------------------------
|
28
489
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
29
|
-
[1m[
|
30
|
-
[1m[36m (0.0ms)[0m [
|
31
|
-
[1m[35m (0.0ms)[0m
|
490
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
491
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
492
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
493
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
494
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"]]
|
495
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
496
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
497
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_type" = 'Library' AND "large_text_fields"."owner_id" IN (1)[0m
|
498
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
499
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32
500
|
----------------------------------------------------------------------------------------------
|
33
501
|
LargeTextField::OwnerTest: test_: a large text field should be able to update deleted fields.
|
34
502
|
----------------------------------------------------------------------------------------------
|
35
|
-
[1m[
|
36
|
-
[1m[
|
37
|
-
[1m[
|
503
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
504
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
505
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
506
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
507
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
508
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
509
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
510
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
511
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
512
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 1]]
|
513
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
514
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
515
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
516
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
517
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
518
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
38
519
|
[1m[35m (0.0ms)[0m begin transaction
|
39
520
|
---------------------------------------------------------------------------------------------------
|
40
521
|
LargeTextField::OwnerTest: test_: a large text field should be cloned with the rest of the record.
|
41
522
|
---------------------------------------------------------------------------------------------------
|
42
523
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
43
|
-
[1m[
|
44
|
-
[1m[36m (0.0ms)[0m [
|
45
|
-
[1m[35m (0.0ms)[0m
|
524
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
525
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
526
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
527
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
528
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"]]
|
529
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
530
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
531
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
532
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "description"], ["value", "first"], ["owner_id", 2]]
|
533
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"], ["owner_id", 2]]
|
534
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
535
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
536
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
537
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
538
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
539
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
540
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ? [["id", 3]]
|
541
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 4]]
|
542
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "libraries" WHERE "libraries"."id" = ? [["id", 2]]
|
543
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
544
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.1ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."id" = ? LIMIT 1 [["id", 3]]
|
545
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."id" = ? LIMIT 1[0m [["id", 4]]
|
546
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
547
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
46
548
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------
|
47
549
|
LargeTextField::OwnerTest: test_: a large text field should declare the association when it is first described and other meta data when it is first defined.
|
48
550
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------
|
49
|
-
[1m[
|
50
|
-
[1m[
|
51
|
-
[1m[
|
551
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
552
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
553
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
554
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
52
555
|
[1m[35m (0.0ms)[0m begin transaction
|
53
556
|
------------------------------------------------------------------------------------------------------
|
54
557
|
LargeTextField::OwnerTest: test_: a large text field should delete fields when they are set to blank.
|
55
558
|
------------------------------------------------------------------------------------------------------
|
56
559
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
57
|
-
[1m[
|
58
|
-
[1m[36m (0.0ms)[0m [
|
560
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
561
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
562
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
563
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
564
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
565
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
566
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
567
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
568
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
569
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
570
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ? [["id", 1]]
|
571
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
572
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
573
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
574
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
575
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
59
576
|
[1m[35m (0.0ms)[0m begin transaction
|
60
577
|
------------------------------------------------------------------------------------------------------------------
|
61
578
|
LargeTextField::OwnerTest: test_: a large text field should delete large text fields when the owner is destroyed.
|
62
579
|
------------------------------------------------------------------------------------------------------------------
|
63
580
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
64
|
-
[1m[
|
65
|
-
[1m[36m (0.0ms)[0m [
|
581
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
582
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
583
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields"
|
584
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
585
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Cambridge University Library"]]
|
586
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "in england"], ["owner_id", 2]]
|
587
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
588
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields"[0m
|
589
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
590
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 1]]
|
591
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "libraries" WHERE "libraries"."id" = ? [["id", 2]]
|
592
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
593
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields"
|
594
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
66
595
|
[1m[35m (0.0ms)[0m begin transaction
|
67
596
|
--------------------------------------------------------------------------------------------------------------------
|
68
597
|
LargeTextField::OwnerTest: test_: a large text field should detect changes when @text_field_hash hash is/not empty.
|
69
598
|
--------------------------------------------------------------------------------------------------------------------
|
70
599
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
71
|
-
[1m[
|
72
|
-
[1m[36m (0.0ms)[0m [
|
73
|
-
[1m[35m (0.0ms)[0m
|
600
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
601
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
602
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
603
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
604
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "description"], ["value", "a new note"], ["owner_id", 2]]
|
605
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
606
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
607
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
608
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
609
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
74
610
|
--------------------------------------------------------------------------------------------------------
|
75
611
|
LargeTextField::OwnerTest: test_: a large text field should forget about changes if they are not saved.
|
76
612
|
--------------------------------------------------------------------------------------------------------
|
613
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
614
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
615
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
616
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
617
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
77
618
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
78
|
-
[1m[
|
79
|
-
[1m[36m (0.0ms)[0m [
|
80
|
-
[1m[
|
619
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
620
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
621
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
622
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
623
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
624
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
625
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
626
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
81
627
|
---------------------------------------------------------------------------------------------------
|
82
628
|
LargeTextField::OwnerTest: test_: a large text field should not save fields that are set to blank.
|
83
629
|
---------------------------------------------------------------------------------------------------
|
84
|
-
[1m[
|
85
|
-
[1m[
|
86
|
-
[1m[
|
87
|
-
[1m[
|
630
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
631
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
632
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
633
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
634
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Millie"]]
|
635
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "first"], ["owner_id", 2]]
|
636
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
637
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 2]]
|
638
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 2], ["owner_type", "Library"]]
|
639
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
640
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
641
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
88
642
|
-------------------------------------------------------------------------------------------------------
|
89
643
|
LargeTextField::OwnerTest: test_: a large text field should only validate_large_text_fields if loaded.
|
90
644
|
-------------------------------------------------------------------------------------------------------
|
91
|
-
[1m[
|
92
|
-
[1m[
|
93
|
-
[1m[
|
645
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
646
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
647
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
648
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
94
649
|
[1m[35m (0.0ms)[0m begin transaction
|
95
650
|
-----------------------------------------------------------------------------------------------------------------------------------------------
|
96
651
|
LargeTextField::OwnerTest: test_: a large text field should prevent a custom maximum length to be provided that is not in the allowable range.
|
97
652
|
-----------------------------------------------------------------------------------------------------------------------------------------------
|
98
653
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
99
|
-
[1m[
|
100
|
-
[1m[36m (0.0ms)[0m [
|
101
|
-
[1m[35m (0.
|
654
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
655
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
656
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
657
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
102
658
|
-----------------------------------------------------------------------------------------------------------------------
|
103
659
|
LargeTextField::OwnerTest: test_: a large text field should prevent a non-Integer to be provided for a custom maximum.
|
104
660
|
-----------------------------------------------------------------------------------------------------------------------
|
105
|
-
[1m[
|
106
|
-
[1m[
|
107
|
-
[1m[
|
661
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
662
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
663
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
664
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
108
665
|
[1m[35m (0.0ms)[0m begin transaction
|
109
666
|
------------------------------------------------------------------------------
|
110
667
|
LargeTextField::OwnerTest: test_: a large text field should read from a file.
|
111
668
|
------------------------------------------------------------------------------
|
112
669
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
113
|
-
[1m[
|
114
|
-
[1m[36m (0.0ms)[0m [
|
115
|
-
[1m[35m (0.0ms)[0m
|
670
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
671
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
672
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
673
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
674
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
675
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
676
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 2], ["owner_type", "Library"], ["field_name", "description"], ["value", "this is a string from the file"]]
|
677
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
678
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
679
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
680
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
681
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
116
682
|
------------------------------------------------------------------------------------------------------------------
|
117
683
|
LargeTextField::OwnerTest: test_: a large text field should reload changes when they come from a different model.
|
118
684
|
------------------------------------------------------------------------------------------------------------------
|
685
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
686
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
687
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
119
688
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
120
|
-
[1m[
|
121
|
-
[1m[
|
122
|
-
[1m[35m (0.0ms)[0m
|
689
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Cambridge University Library"]]
|
690
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "in england"], ["owner_id", 2]]
|
691
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
692
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 2]]
|
693
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
694
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
695
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "large_text_fields" SET "value" = ? WHERE "large_text_fields"."id" = ? [["value", "The main research library of the University of Cambridge in England"], ["id", 1]]
|
696
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
697
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
698
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
699
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
700
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
123
701
|
-------------------------------------------------------------------------------------------------
|
124
702
|
LargeTextField::OwnerTest: test_: a large text field should singularize the errors if requested.
|
125
703
|
-------------------------------------------------------------------------------------------------
|
126
|
-
[1m[
|
127
|
-
[1m[
|
128
|
-
[1m[
|
704
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
705
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
706
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
707
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
129
708
|
[1m[35m (0.0ms)[0m begin transaction
|
130
709
|
------------------------------------------------------------------------------------------------------------
|
131
710
|
LargeTextField::OwnerTest: test_: a large text field should support strings or symbols for get/set methods.
|
132
711
|
------------------------------------------------------------------------------------------------------------
|
133
712
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
134
|
-
[1m[
|
135
|
-
[1m[36m (0.0ms)[0m [
|
136
|
-
[1m[35m (
|
713
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
714
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
715
|
+
[1m[35m (2.2ms)[0m rollback transaction
|
716
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
137
717
|
-----------------------------------------------------------------------------------------
|
138
718
|
LargeTextField::OwnerTest: test_: a large text field should validate the maximum length.
|
139
719
|
-----------------------------------------------------------------------------------------
|
140
|
-
[1m[
|
141
|
-
[1m[
|
142
|
-
[1m[
|
143
|
-
[1m[
|
720
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
721
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
722
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
723
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
724
|
+
[1m[35m (0.1ms)[0m begin transaction
|
144
725
|
----------------------------------------------------------------------------------------------------------------
|
145
726
|
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should be able to assign empty string.
|
146
727
|
----------------------------------------------------------------------------------------------------------------
|
147
728
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
148
|
-
[1m[
|
149
|
-
[1m[36m (0.0ms)[0m [
|
150
|
-
[1m[
|
729
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
730
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
731
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
732
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
733
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
734
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
151
735
|
--------------------------------------------------------------------------------------------------------------------
|
152
736
|
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should be able to assign non empty string.
|
153
737
|
--------------------------------------------------------------------------------------------------------------------
|
154
|
-
[1m[
|
155
|
-
[1m[
|
156
|
-
[1m[
|
157
|
-
[1m[
|
738
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
739
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
740
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "notes"], ["value", "this is some text"], ["owner_id", 1]]
|
741
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
742
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
743
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
744
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
745
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
158
746
|
-----------------------------------------------------------------------------------------------------------------
|
159
747
|
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should raise error on saving nil value.
|
160
748
|
-----------------------------------------------------------------------------------------------------------------
|
161
|
-
[1m[
|
162
|
-
[1m[
|
749
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
750
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
751
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
752
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
753
|
+
---------------------------------------------------------------------------------------------------
|
754
|
+
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to construct a library.
|
755
|
+
---------------------------------------------------------------------------------------------------
|
756
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
757
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Alexandria Public Library"]]
|
758
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "notes"], ["value", "none_set"], ["owner_id", 1]]
|
759
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
760
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
761
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", " The Royal Library of Alexandria or Ancient Library of Alexandria in Alexandria, Egypt, was one of the\n largest and most significant libraries of the ancient world. It was dedicated to the Muses, the nine\n goddesses of the arts.[1] It flourished under the patronage of the Ptolemaic dynasty and functioned\n as a major center of scholarship from its construction in the 3rd century BCE until the Roman conquest\n of Egypt in 30 BCE, with collections of works, lecture halls, meeting rooms, and gardens. The library\n was part of a larger research institution called the Musaeum of Alexandria, where many of the most\n famous thinkers of the ancient world studied.\n\n The library was created by Ptolemy I Soter, who was a Macedonian general and the successor of Alexander\n the Great.[2] Most of the books were kept as papyrus scrolls. It is unknown how many such scrolls were\n housed at any given time.\n\n The library is famous for having been burned down, resulting in the loss of many scrolls and books; its\n destruction has become a symbol for the loss of cultural knowledge. A few sources differ on who is\n responsible for the destruction and when it occurred. There is mythology regarding this main burning\n but the library may in truth have suffered several fires or other acts of destruction over many years.\n Possible occasions for the partial or complete destruction of the Library of Alexandria include a fire\n set by Julius Caesar in 48 BCE and an attack by Aurelian in the CE 270s.\n\n After the main library was fully destroyed, ancient scholars used a \"daughter library\" in a temple known\n as the Serapeum, located in another part of the city. According to Socrates of Constantinople, Coptic Pope\n Theophilus destroyed the Serapeum in AD 391, although it's not certain that it still contained an offshoot\n of the library then.\n"]]
|
762
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
763
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
764
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
765
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
766
|
+
[1m[35m (0.1ms)[0m begin transaction
|
767
|
+
--------------------------------------------------------------------------------------------------------------------------------
|
768
|
+
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to dup a class that has no current large text field.
|
769
|
+
--------------------------------------------------------------------------------------------------------------------------------
|
163
770
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
164
771
|
[1m[35m (0.0ms)[0m begin transaction
|
165
772
|
--------------------------------------------------------------------------------------------------
|
@@ -171,51 +778,59 @@ LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should
|
|
171
778
|
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should have field name and value attributes.
|
172
779
|
-----------------------------------------------------------------------------------------------------------------------
|
173
780
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
174
|
-
[1m[
|
175
|
-
[1m[
|
176
|
-
[1m[35m (0.0ms)[0m
|
781
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
782
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "notes"], ["value", "none_set"], ["owner_id", 1]]
|
783
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
784
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
785
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?) [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 1], ["owner_type", "Library"]]
|
786
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
787
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."id" = ? LIMIT 1 [["id", 2]]
|
788
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
789
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
790
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
177
791
|
--------------------------------------------------------------------------------------------------------------------------
|
178
792
|
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should use large_text_fields as the table name.
|
179
793
|
--------------------------------------------------------------------------------------------------------------------------
|
180
|
-
[1m[
|
181
|
-
[1m[
|
794
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
795
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
182
796
|
-------------------------------------------------------------------------------------------------------
|
183
797
|
LargeTextField::NamedTextValueTest: test_: unique index should allow different owners and field names.
|
184
798
|
-------------------------------------------------------------------------------------------------------
|
799
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
800
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
801
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "notes"], ["value", "none_set"], ["owner_id", 1]]
|
802
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
803
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
804
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Alexandria"]]
|
805
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "notes"], ["value", "none_set"], ["owner_id", 2]]
|
806
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
807
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
808
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?)[0m [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 1], ["owner_type", "Library"]]
|
809
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
185
810
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
186
|
-
[1m[
|
187
|
-
[1m[36m (0.0ms)[0m [
|
811
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?) [["field_name", "dog"], ["value", "Wiki"], ["owner_id", 1], ["owner_type", "Library"]]
|
812
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
813
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
814
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?)[0m [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 2], ["owner_type", "Library"]]
|
815
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
816
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
188
817
|
[1m[35m (0.0ms)[0m begin transaction
|
189
818
|
------------------------------------------------------------------------------------------------------------------------------------
|
190
819
|
LargeTextField::NamedTextValueTest: test_: unique index should raise a unique constraint failure on the same owner, and field name.
|
191
820
|
------------------------------------------------------------------------------------------------------------------------------------
|
192
821
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
193
|
-
[1m[
|
194
|
-
[1m[
|
195
|
-
[1m[35m (0.0ms)[0m
|
196
|
-
---------------------------------------------------------------------------------------------------
|
197
|
-
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to construct a library.
|
198
|
-
---------------------------------------------------------------------------------------------------
|
822
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
823
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "notes"], ["value", "none_set"], ["owner_id", 1]]
|
824
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
199
825
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
826
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?) [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 1], ["owner_type", "Library"]]
|
827
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
828
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
829
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?)[0m [["field_name", "puppy"], ["value", "Wiki"], ["owner_id", 1], ["owner_type", "Library"]]
|
200
830
|
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
201
|
-
[1m[36m (0.
|
202
|
-
[1m[
|
203
|
-
--------------------------------------------------------------------------------------------------------------------------------
|
204
|
-
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to dup a class that has no current large text field.
|
205
|
-
--------------------------------------------------------------------------------------------------------------------------------
|
206
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
207
|
-
[1m[35m (0.0ms)[0m begin transaction
|
208
|
-
------------------------------
|
209
|
-
LargeTextFieldTest: test_truth
|
210
|
-
------------------------------
|
211
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
212
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
831
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
832
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
213
833
|
[1m[35m (0.1ms)[0m begin transaction
|
214
|
-
------------------------------
|
215
|
-
LargeTextFieldTest: test_truth
|
216
|
-
------------------------------
|
217
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
218
|
-
[1m[35m (0.0ms)[0m begin transaction
|
219
834
|
--------------------------------------------------------------------------------------------------
|
220
835
|
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should belong to owner.
|
221
836
|
--------------------------------------------------------------------------------------------------
|
@@ -225,14 +840,14 @@ LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should
|
|
225
840
|
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should have field name and value attributes.
|
226
841
|
-----------------------------------------------------------------------------------------------------------------------
|
227
842
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
228
|
-
[1m[35mSQL (0.
|
843
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
229
844
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230
845
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231
|
-
[1m[36mSQL (0.
|
846
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?)[0m [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 1], ["owner_type", "Library"]]
|
232
847
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
233
848
|
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
234
849
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
235
|
-
[1m[36m (
|
850
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
236
851
|
[1m[35m (0.0ms)[0m begin transaction
|
237
852
|
--------------------------------------------------------------------------------------------------------------------------
|
238
853
|
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should use large_text_fields as the table name.
|
@@ -253,11 +868,11 @@ LargeTextField::NamedTextValueTest: test_: unique index should allow different o
|
|
253
868
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
254
869
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
255
870
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?)[0m [["field_name", "dog"], ["value", "Wiki"], ["owner_id", 1], ["owner_type", "Library"]]
|
256
|
-
[1m[35m (0.
|
871
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
257
872
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
258
873
|
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?) [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 2], ["owner_type", "Library"]]
|
259
874
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
260
|
-
[1m[35m (0.
|
875
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
261
876
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
262
877
|
------------------------------------------------------------------------------------------------------------------------------------
|
263
878
|
LargeTextField::NamedTextValueTest: test_: unique index should raise a unique constraint failure on the same owner, and field name.
|
@@ -271,7 +886,7 @@ LargeTextField::NamedTextValueTest: test_: unique index should raise a unique co
|
|
271
886
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
272
887
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?)[0m [["field_name", "puppy"], ["value", "Wiki"], ["owner_id", 1], ["owner_type", "Library"]]
|
273
888
|
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
274
|
-
[1m[36m (0.
|
889
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
275
890
|
[1m[35m (0.0ms)[0m begin transaction
|
276
891
|
---------------------------------------------------------------------------------------------------
|
277
892
|
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to construct a library.
|
@@ -280,51 +895,97 @@ LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to co
|
|
280
895
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Alexandria Public Library"]]
|
281
896
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282
897
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
283
|
-
[1m[
|
284
|
-
[1m[35m (
|
285
|
-
[1m[
|
898
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", " The Royal Library of Alexandria or Ancient Library of Alexandria in Alexandria, Egypt, was one of the\n largest and most significant libraries of the ancient world. It was dedicated to the Muses, the nine\n goddesses of the arts.[1] It flourished under the patronage of the Ptolemaic dynasty and functioned\n as a major center of scholarship from its construction in the 3rd century BCE until the Roman conquest\n of Egypt in 30 BCE, with collections of works, lecture halls, meeting rooms, and gardens. The library\n was part of a larger research institution called the Musaeum of Alexandria, where many of the most\n famous thinkers of the ancient world studied.\n\n The library was created by Ptolemy I Soter, who was a Macedonian general and the successor of Alexander\n the Great.[2] Most of the books were kept as papyrus scrolls. It is unknown how many such scrolls were\n housed at any given time.\n\n The library is famous for having been burned down, resulting in the loss of many scrolls and books; its\n destruction has become a symbol for the loss of cultural knowledge. A few sources differ on who is\n responsible for the destruction and when it occurred. There is mythology regarding this main burning\n but the library may in truth have suffered several fires or other acts of destruction over many years.\n Possible occasions for the partial or complete destruction of the Library of Alexandria include a fire\n set by Julius Caesar in 48 BCE and an attack by Aurelian in the CE 270s.\n\n After the main library was fully destroyed, ancient scholars used a \"daughter library\" in a temple known\n as the Serapeum, located in another part of the city. According to Socrates of Constantinople, Coptic Pope\n Theophilus destroyed the Serapeum in AD 391, although it's not certain that it still contained an offshoot\n of the library then.\n"]]
|
899
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
900
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
901
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.1ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
902
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
903
|
+
[1m[35m (0.0ms)[0m begin transaction
|
286
904
|
--------------------------------------------------------------------------------------------------------------------------------
|
287
905
|
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to dup a class that has no current large text field.
|
288
906
|
--------------------------------------------------------------------------------------------------------------------------------
|
289
|
-
[1m[
|
290
|
-
[1m[
|
907
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
908
|
+
[1m[35m (0.0ms)[0m begin transaction
|
291
909
|
----------------------------------------------------------------------------------------------------------
|
292
910
|
LargeTextField::OwnerTest: test_: a large text field should allow a custom maximum length to be provided.
|
293
911
|
----------------------------------------------------------------------------------------------------------
|
294
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
295
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
296
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
297
|
-
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
298
|
-
[1m[35m (0.0ms)[0m begin transaction
|
299
|
-
---------------------------------------------------------------------------------------------------
|
300
|
-
LargeTextField::OwnerTest: test_: a large text field should allow for concurrent sets and deletes.
|
301
|
-
---------------------------------------------------------------------------------------------------
|
302
912
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
303
913
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
304
914
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
305
915
|
[1m[35m (0.8ms)[0m rollback transaction
|
306
916
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
917
|
+
---------------------------------------------------------------------------------------------------
|
918
|
+
LargeTextField::OwnerTest: test_: a large text field should allow for concurrent sets and deletes.
|
919
|
+
---------------------------------------------------------------------------------------------------
|
920
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
921
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
922
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
923
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
924
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
925
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"]]
|
926
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
927
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
928
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
929
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
930
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ? [["id", 2]]
|
931
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "large_text_fields" SET "value" = ? WHERE "large_text_fields"."id" = ?[0m [["value", "third"], ["id", 1]]
|
932
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
933
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
934
|
+
[1m[35m (0.0ms)[0m begin transaction
|
307
935
|
------------------------------------------------------------------------------------------------------
|
308
936
|
LargeTextField::OwnerTest: test_: a large text field should allow get and set with saves and deletes.
|
309
937
|
------------------------------------------------------------------------------------------------------
|
938
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
939
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
940
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
310
941
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
311
|
-
[1m[36mSQL (0.
|
942
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger "]]
|
312
943
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
944
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
945
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
946
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
947
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "large_text_fields" SET "value" = ? WHERE "large_text_fields"."id" = ? [["value", "mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom "], ["id", 1]]
|
948
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
949
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
950
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
951
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
952
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 1]]
|
953
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
954
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
955
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
313
956
|
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
314
|
-
[1m[35m (0.
|
957
|
+
[1m[35m (0.0ms)[0m begin transaction
|
315
958
|
----------------------------------------------------------------------------------------
|
316
959
|
LargeTextField::OwnerTest: test_: a large text field should be able to be eager loaded.
|
317
960
|
----------------------------------------------------------------------------------------
|
318
961
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
319
962
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
320
963
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
321
|
-
[1m[35m (
|
964
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
965
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
966
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"]]
|
967
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
968
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
969
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_type" = 'Library' AND "large_text_fields"."owner_id" IN (1)[0m
|
970
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
322
971
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
323
972
|
----------------------------------------------------------------------------------------------
|
324
973
|
LargeTextField::OwnerTest: test_: a large text field should be able to update deleted fields.
|
325
974
|
----------------------------------------------------------------------------------------------
|
326
975
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
327
|
-
[1m[36mSQL (0.
|
976
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
977
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
978
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
979
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
980
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
981
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
982
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
983
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
984
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 1]]
|
985
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
986
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
987
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
988
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
328
989
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
329
990
|
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
330
991
|
[1m[35m (0.0ms)[0m begin transaction
|
@@ -334,31 +995,75 @@ LargeTextField::OwnerTest: test_: a large text field should be cloned with the r
|
|
334
995
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
335
996
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
336
997
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
337
|
-
[1m[35m (0.
|
998
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
999
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
1000
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"]]
|
1001
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1002
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1003
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1004
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "description"], ["value", "first"], ["owner_id", 2]]
|
1005
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"], ["owner_id", 2]]
|
1006
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1007
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1008
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1009
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
1010
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1011
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1012
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ? [["id", 3]]
|
1013
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 4]]
|
1014
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "libraries" WHERE "libraries"."id" = ? [["id", 2]]
|
1015
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1016
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."id" = ? LIMIT 1 [["id", 3]]
|
1017
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."id" = ? LIMIT 1[0m [["id", 4]]
|
1018
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
338
1019
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
339
1020
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------
|
340
1021
|
LargeTextField::OwnerTest: test_: a large text field should declare the association when it is first described and other meta data when it is first defined.
|
341
1022
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------
|
342
1023
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
343
|
-
[1m[36mSQL (0.
|
1024
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
344
1025
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
345
|
-
[1m[36m (0.
|
1026
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
346
1027
|
[1m[35m (0.0ms)[0m begin transaction
|
347
1028
|
------------------------------------------------------------------------------------------------------
|
348
1029
|
LargeTextField::OwnerTest: test_: a large text field should delete fields when they are set to blank.
|
349
1030
|
------------------------------------------------------------------------------------------------------
|
350
1031
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
351
|
-
[1m[35mSQL (0.
|
1032
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
352
1033
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
353
|
-
[1m[35m (0.
|
354
|
-
[1m[36m (0.0ms)[0m [
|
1034
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1035
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1036
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
1037
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1038
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1039
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1040
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1041
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1042
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ? [["id", 1]]
|
1043
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1044
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1045
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1046
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1047
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1048
|
+
[1m[35m (0.1ms)[0m begin transaction
|
355
1049
|
------------------------------------------------------------------------------------------------------------------
|
356
1050
|
LargeTextField::OwnerTest: test_: a large text field should delete large text fields when the owner is destroyed.
|
357
1051
|
------------------------------------------------------------------------------------------------------------------
|
358
|
-
[1m[
|
359
|
-
[1m[
|
1052
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1053
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1054
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1055
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "large_text_fields"
|
1056
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1057
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Cambridge University Library"]]
|
1058
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "in england"], ["owner_id", 2]]
|
360
1059
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
361
|
-
[1m[36m (
|
1060
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields"[0m
|
1061
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1062
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 1]]
|
1063
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "libraries" WHERE "libraries"."id" = ? [["id", 2]]
|
1064
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1065
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields"
|
1066
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
362
1067
|
[1m[35m (0.0ms)[0m begin transaction
|
363
1068
|
--------------------------------------------------------------------------------------------------------------------
|
364
1069
|
LargeTextField::OwnerTest: test_: a large text field should detect changes when @text_field_hash hash is/not empty.
|
@@ -366,7 +1071,13 @@ LargeTextField::OwnerTest: test_: a large text field should detect changes when
|
|
366
1071
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
367
1072
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
368
1073
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
369
|
-
[1m[35m (0.
|
1074
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1075
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1076
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "description"], ["value", "a new note"], ["owner_id", 2]]
|
1077
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1078
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
1079
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
1080
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
370
1081
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
371
1082
|
--------------------------------------------------------------------------------------------------------
|
372
1083
|
LargeTextField::OwnerTest: test_: a large text field should forget about changes if they are not saved.
|
@@ -374,23 +1085,39 @@ LargeTextField::OwnerTest: test_: a large text field should forget about changes
|
|
374
1085
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
375
1086
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
376
1087
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
377
|
-
[1m[
|
378
|
-
[1m[
|
1088
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
1089
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1090
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1091
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
1092
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1093
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1094
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1095
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1096
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1097
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1098
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
379
1099
|
---------------------------------------------------------------------------------------------------
|
380
1100
|
LargeTextField::OwnerTest: test_: a large text field should not save fields that are set to blank.
|
381
1101
|
---------------------------------------------------------------------------------------------------
|
1102
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1103
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1104
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
382
1105
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
383
|
-
[1m[35mSQL (0.
|
384
|
-
[1m[
|
385
|
-
[1m[35m (0.
|
1106
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Millie"]]
|
1107
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "first"], ["owner_id", 2]]
|
1108
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1109
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 2]]
|
1110
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 2], ["owner_type", "Library"]]
|
1111
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
1112
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
386
1113
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
387
1114
|
-------------------------------------------------------------------------------------------------------
|
388
1115
|
LargeTextField::OwnerTest: test_: a large text field should only validate_large_text_fields if loaded.
|
389
1116
|
-------------------------------------------------------------------------------------------------------
|
390
|
-
[1m[35m (0.
|
1117
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
391
1118
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
392
1119
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
393
|
-
[1m[36m (
|
1120
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
394
1121
|
[1m[35m (0.0ms)[0m begin transaction
|
395
1122
|
-----------------------------------------------------------------------------------------------------------------------------------------------
|
396
1123
|
LargeTextField::OwnerTest: test_: a large text field should prevent a custom maximum length to be provided that is not in the allowable range.
|
@@ -412,9 +1139,17 @@ LargeTextField::OwnerTest: test_: a large text field should prevent a non-Intege
|
|
412
1139
|
LargeTextField::OwnerTest: test_: a large text field should read from a file.
|
413
1140
|
------------------------------------------------------------------------------
|
414
1141
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
415
|
-
[1m[35mSQL (0.
|
1142
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
416
1143
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
417
|
-
[1m[35m (0.
|
1144
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1145
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1146
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1147
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1148
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 2], ["owner_type", "Library"], ["field_name", "description"], ["value", "this is a string from the file"]]
|
1149
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1150
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
1151
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
1152
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
418
1153
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
419
1154
|
------------------------------------------------------------------------------------------------------------------
|
420
1155
|
LargeTextField::OwnerTest: test_: a large text field should reload changes when they come from a different model.
|
@@ -422,74 +1157,94 @@ LargeTextField::OwnerTest: test_: a large text field should reload changes when
|
|
422
1157
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
423
1158
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
424
1159
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
425
|
-
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
426
|
-
[1m[35m (0.0ms)[0m begin transaction
|
427
|
-
-------------------------------------------------------------------------------------------------
|
428
|
-
LargeTextField::OwnerTest: test_: a large text field should singularize the errors if requested.
|
429
|
-
-------------------------------------------------------------------------------------------------
|
430
1160
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
431
|
-
[1m[35mSQL (0.
|
1161
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Cambridge University Library"]]
|
1162
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "in england"], ["owner_id", 2]]
|
1163
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1164
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 2]]
|
1165
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1166
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
1167
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "large_text_fields" SET "value" = ? WHERE "large_text_fields"."id" = ? [["value", "The main research library of the University of Cambridge in England"], ["id", 1]]
|
432
1168
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1169
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
1170
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
433
1171
|
[1m[35m (0.7ms)[0m rollback transaction
|
434
1172
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1173
|
+
-------------------------------------------------------------------------------------------------
|
1174
|
+
LargeTextField::OwnerTest: test_: a large text field should singularize the errors if requested.
|
1175
|
+
-------------------------------------------------------------------------------------------------
|
1176
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1177
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1178
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1179
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
1180
|
+
[1m[35m (0.1ms)[0m begin transaction
|
435
1181
|
------------------------------------------------------------------------------------------------------------
|
436
1182
|
LargeTextField::OwnerTest: test_: a large text field should support strings or symbols for get/set methods.
|
437
1183
|
------------------------------------------------------------------------------------------------------------
|
438
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
439
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
440
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
441
|
-
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
442
|
-
[1m[35m (0.0ms)[0m begin transaction
|
443
|
-
-----------------------------------------------------------------------------------------
|
444
|
-
LargeTextField::OwnerTest: test_: a large text field should validate the maximum length.
|
445
|
-
-----------------------------------------------------------------------------------------
|
446
1184
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
447
1185
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
448
1186
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
449
|
-
[1m[35m (0.
|
1187
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
450
1188
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
451
|
-
|
452
|
-
LargeTextField::OwnerTest: test_:
|
453
|
-
|
1189
|
+
-----------------------------------------------------------------------------------------
|
1190
|
+
LargeTextField::OwnerTest: test_: a large text field should validate the maximum length.
|
1191
|
+
-----------------------------------------------------------------------------------------
|
454
1192
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
455
1193
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
456
1194
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
457
|
-
[1m[36m (
|
458
|
-
[1m[35m (0.
|
1195
|
+
[1m[36m (1.8ms)[0m [1mrollback transaction[0m
|
1196
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1197
|
+
----------------------------------------------------------------------------------------------------------------
|
1198
|
+
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should be able to assign empty string.
|
1199
|
+
----------------------------------------------------------------------------------------------------------------
|
1200
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1201
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1202
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1203
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1204
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1205
|
+
[1m[35m (2.9ms)[0m rollback transaction
|
1206
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
459
1207
|
--------------------------------------------------------------------------------------------------------------------
|
460
1208
|
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should be able to assign non empty string.
|
461
1209
|
--------------------------------------------------------------------------------------------------------------------
|
462
|
-
[1m[
|
463
|
-
[1m[
|
464
|
-
[1m[
|
465
|
-
[1m[
|
466
|
-
[1m[
|
467
|
-
[1m[
|
1210
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1211
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1212
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "notes"], ["value", "this is some text"], ["owner_id", 1]]
|
1213
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1214
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1215
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1216
|
+
[1m[35m (2.8ms)[0m rollback transaction
|
1217
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
468
1218
|
-----------------------------------------------------------------------------------------------------------------
|
469
1219
|
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should raise error on saving nil value.
|
470
1220
|
-----------------------------------------------------------------------------------------------------------------
|
471
|
-
[1m[
|
472
|
-
[1m[
|
473
|
-
[1m[
|
474
|
-
[1m[
|
1221
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1222
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1223
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1224
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1225
|
+
------------------------------
|
1226
|
+
LargeTextFieldTest: test_truth
|
1227
|
+
------------------------------
|
1228
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
1229
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
475
1230
|
[1m[35m (0.1ms)[0m begin transaction
|
476
1231
|
--------------------------------------------------------------------------------------------------
|
477
1232
|
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should belong to owner.
|
478
1233
|
--------------------------------------------------------------------------------------------------
|
479
|
-
[1m[36m (0.
|
1234
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
480
1235
|
[1m[35m (0.0ms)[0m begin transaction
|
481
1236
|
-----------------------------------------------------------------------------------------------------------------------
|
482
1237
|
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should have field name and value attributes.
|
483
1238
|
-----------------------------------------------------------------------------------------------------------------------
|
484
1239
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
485
|
-
[1m[35mSQL (0.
|
486
|
-
[1m[36m (0.
|
1240
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1241
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
487
1242
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
488
|
-
[1m[36mSQL (0.
|
1243
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?)[0m [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 1], ["owner_type", "Library"]]
|
489
1244
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
490
1245
|
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
491
|
-
[1m[35mLibrary Load (0.
|
492
|
-
[1m[36m (
|
1246
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1247
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
493
1248
|
[1m[35m (0.0ms)[0m begin transaction
|
494
1249
|
--------------------------------------------------------------------------------------------------------------------------
|
495
1250
|
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should use large_text_fields as the table name.
|
@@ -501,10 +1256,10 @@ LargeTextField::NamedTextValueTest: test_: unique index should allow different o
|
|
501
1256
|
-------------------------------------------------------------------------------------------------------
|
502
1257
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
503
1258
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
504
|
-
[1m[36m (0.
|
1259
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
505
1260
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
506
|
-
[1m[36mSQL (0.
|
507
|
-
[1m[35m (0.
|
1261
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Alexandria"]]
|
1262
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
508
1263
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
509
1264
|
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?) [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 1], ["owner_type", "Library"]]
|
510
1265
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
@@ -514,7 +1269,7 @@ LargeTextField::NamedTextValueTest: test_: unique index should allow different o
|
|
514
1269
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
515
1270
|
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?) [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 2], ["owner_type", "Library"]]
|
516
1271
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
517
|
-
[1m[35m (0.
|
1272
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
518
1273
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
519
1274
|
------------------------------------------------------------------------------------------------------------------------------------
|
520
1275
|
LargeTextField::NamedTextValueTest: test_: unique index should raise a unique constraint failure on the same owner, and field name.
|
@@ -526,35 +1281,22 @@ LargeTextField::NamedTextValueTest: test_: unique index should raise a unique co
|
|
526
1281
|
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?) [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 1], ["owner_type", "Library"]]
|
527
1282
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
528
1283
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
529
|
-
[1m[36mSQL (0.
|
1284
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?)[0m [["field_name", "puppy"], ["value", "Wiki"], ["owner_id", 1], ["owner_type", "Library"]]
|
530
1285
|
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
531
|
-
[1m[36m (0.
|
532
|
-
[1m[35m (0.0ms)[0m begin transaction
|
533
|
-
---------------------------------------------------------------------------------------------------
|
534
|
-
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to construct a library.
|
535
|
-
---------------------------------------------------------------------------------------------------
|
536
|
-
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
537
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Alexandria Public Library"]]
|
538
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
539
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
540
|
-
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", " The Royal Library of Alexandria or Ancient Library of Alexandria in Alexandria, Egypt, was one of the\n largest and most significant libraries of the ancient world. It was dedicated to the Muses, the nine\n goddesses of the arts.[1] It flourished under the patronage of the Ptolemaic dynasty and functioned\n as a major center of scholarship from its construction in the 3rd century BCE until the Roman conquest\n of Egypt in 30 BCE, with collections of works, lecture halls, meeting rooms, and gardens. The library\n was part of a larger research institution called the Musaeum of Alexandria, where many of the most\n famous thinkers of the ancient world studied.\n\n The library was created by Ptolemy I Soter, who was a Macedonian general and the successor of Alexander\n the Great.[2] Most of the books were kept as papyrus scrolls. It is unknown how many such scrolls were\n housed at any given time.\n\n The library is famous for having been burned down, resulting in the loss of many scrolls and books; its\n destruction has become a symbol for the loss of cultural knowledge. A few sources differ on who is\n responsible for the destruction and when it occurred. There is mythology regarding this main burning\n but the library may in truth have suffered several fires or other acts of destruction over many years.\n Possible occasions for the partial or complete destruction of the Library of Alexandria include a fire\n set by Julius Caesar in 48 BCE and an attack by Aurelian in the CE 270s.\n\n After the main library was fully destroyed, ancient scholars used a \"daughter library\" in a temple known\n as the Serapeum, located in another part of the city. According to Socrates of Constantinople, Coptic Pope\n Theophilus destroyed the Serapeum in AD 391, although it's not certain that it still contained an offshoot\n of the library then.\n"]]
|
541
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
542
|
-
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
543
|
-
[1m[35mLargeTextField::NamedTextValue Load (0.1ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
544
|
-
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1286
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
545
1287
|
[1m[35m (0.0ms)[0m begin transaction
|
546
|
-
|
547
|
-
|
548
|
-
|
1288
|
+
------------------------------
|
1289
|
+
LargeTextFieldTest: test_truth
|
1290
|
+
------------------------------
|
549
1291
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
550
1292
|
[1m[35m (0.0ms)[0m begin transaction
|
551
1293
|
----------------------------------------------------------------------------------------------------------
|
552
1294
|
LargeTextField::OwnerTest: test_: a large text field should allow a custom maximum length to be provided.
|
553
1295
|
----------------------------------------------------------------------------------------------------------
|
554
1296
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
555
|
-
[1m[35mSQL (0.
|
1297
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
556
1298
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
557
|
-
[1m[35m (
|
1299
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
558
1300
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
559
1301
|
---------------------------------------------------------------------------------------------------
|
560
1302
|
LargeTextField::OwnerTest: test_: a large text field should allow for concurrent sets and deletes.
|
@@ -567,12 +1309,12 @@ LargeTextField::OwnerTest: test_: a large text field should allow for concurrent
|
|
567
1309
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"]]
|
568
1310
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
569
1311
|
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
570
|
-
[1m[35mLargeTextField::NamedTextValue Load (0.
|
1312
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.1ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
571
1313
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
572
1314
|
[1m[35mSQL (0.1ms)[0m DELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ? [["id", 2]]
|
573
1315
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "large_text_fields" SET "value" = ? WHERE "large_text_fields"."id" = ?[0m [["value", "third"], ["id", 1]]
|
574
1316
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
575
|
-
[1m[36m (0.
|
1317
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
576
1318
|
[1m[35m (0.0ms)[0m begin transaction
|
577
1319
|
------------------------------------------------------------------------------------------------------
|
578
1320
|
LargeTextField::OwnerTest: test_: a large text field should allow get and set with saves and deletes.
|
@@ -595,13 +1337,13 @@ LargeTextField::OwnerTest: test_: a large text field should allow get and set wi
|
|
595
1337
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
596
1338
|
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
597
1339
|
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
598
|
-
[1m[36m (0.
|
599
|
-
[1m[35m (0.
|
1340
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1341
|
+
[1m[35m (0.0ms)[0m begin transaction
|
600
1342
|
----------------------------------------------------------------------------------------
|
601
1343
|
LargeTextField::OwnerTest: test_: a large text field should be able to be eager loaded.
|
602
1344
|
----------------------------------------------------------------------------------------
|
603
1345
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
604
|
-
[1m[35mSQL (0.
|
1346
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
605
1347
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
606
1348
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
607
1349
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
@@ -609,7 +1351,7 @@ LargeTextField::OwnerTest: test_: a large text field should be able to be eager
|
|
609
1351
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
610
1352
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
611
1353
|
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_type" = 'Library' AND "large_text_fields"."owner_id" IN (1)[0m
|
612
|
-
[1m[35m (
|
1354
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
613
1355
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
614
1356
|
----------------------------------------------------------------------------------------------
|
615
1357
|
LargeTextField::OwnerTest: test_: a large text field should be able to update deleted fields.
|
@@ -617,7 +1359,7 @@ LargeTextField::OwnerTest: test_: a large text field should be able to update de
|
|
617
1359
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
618
1360
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
619
1361
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
620
|
-
[1m[36m (0.
|
1362
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
621
1363
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
622
1364
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
623
1365
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
@@ -629,7 +1371,7 @@ LargeTextField::OwnerTest: test_: a large text field should be able to update de
|
|
629
1371
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
630
1372
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
631
1373
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
632
|
-
[1m[36m (
|
1374
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
633
1375
|
[1m[35m (0.0ms)[0m begin transaction
|
634
1376
|
---------------------------------------------------------------------------------------------------
|
635
1377
|
LargeTextField::OwnerTest: test_: a large text field should be cloned with the rest of the record.
|
@@ -642,12 +1384,12 @@ LargeTextField::OwnerTest: test_: a large text field should be cloned with the r
|
|
642
1384
|
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"]]
|
643
1385
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
644
1386
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
645
|
-
[1m[36mSQL (0.
|
1387
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
646
1388
|
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "description"], ["value", "first"], ["owner_id", 2]]
|
647
1389
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"], ["owner_id", 2]]
|
648
1390
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
649
1391
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
650
|
-
[1m[35m (0.
|
1392
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
651
1393
|
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
652
1394
|
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
653
1395
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
@@ -663,9 +1405,9 @@ LargeTextField::OwnerTest: test_: a large text field should be cloned with the r
|
|
663
1405
|
LargeTextField::OwnerTest: test_: a large text field should declare the association when it is first described and other meta data when it is first defined.
|
664
1406
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------
|
665
1407
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
666
|
-
[1m[36mSQL (0.
|
1408
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
667
1409
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
668
|
-
[1m[36m (
|
1410
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
669
1411
|
[1m[35m (0.0ms)[0m begin transaction
|
670
1412
|
------------------------------------------------------------------------------------------------------
|
671
1413
|
LargeTextField::OwnerTest: test_: a large text field should delete fields when they are set to blank.
|
@@ -686,15 +1428,15 @@ LargeTextField::OwnerTest: test_: a large text field should delete fields when t
|
|
686
1428
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
687
1429
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
688
1430
|
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
689
|
-
[1m[36m (0.
|
1431
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
690
1432
|
[1m[35m (0.0ms)[0m begin transaction
|
691
1433
|
------------------------------------------------------------------------------------------------------------------
|
692
1434
|
LargeTextField::OwnerTest: test_: a large text field should delete large text fields when the owner is destroyed.
|
693
1435
|
------------------------------------------------------------------------------------------------------------------
|
694
1436
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
695
|
-
[1m[35mSQL (0.
|
1437
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
696
1438
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
697
|
-
[1m[35m (0.
|
1439
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields"
|
698
1440
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
699
1441
|
[1m[35mSQL (0.0ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Cambridge University Library"]]
|
700
1442
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "in england"], ["owner_id", 2]]
|
@@ -711,7 +1453,7 @@ LargeTextField::OwnerTest: test_: a large text field should delete large text fi
|
|
711
1453
|
LargeTextField::OwnerTest: test_: a large text field should detect changes when @text_field_hash hash is/not empty.
|
712
1454
|
--------------------------------------------------------------------------------------------------------------------
|
713
1455
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
714
|
-
[1m[35mSQL (0.
|
1456
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
715
1457
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
716
1458
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
717
1459
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
@@ -719,7 +1461,7 @@ LargeTextField::OwnerTest: test_: a large text field should detect changes when
|
|
719
1461
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
720
1462
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
721
1463
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
722
|
-
[1m[35m (0.
|
1464
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
723
1465
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
724
1466
|
--------------------------------------------------------------------------------------------------------
|
725
1467
|
LargeTextField::OwnerTest: test_: a large text field should forget about changes if they are not saved.
|
@@ -736,22 +1478,22 @@ LargeTextField::OwnerTest: test_: a large text field should forget about changes
|
|
736
1478
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
737
1479
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
738
1480
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
739
|
-
[1m[35m (0.
|
1481
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
740
1482
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
741
1483
|
---------------------------------------------------------------------------------------------------
|
742
1484
|
LargeTextField::OwnerTest: test_: a large text field should not save fields that are set to blank.
|
743
1485
|
---------------------------------------------------------------------------------------------------
|
744
1486
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
745
|
-
[1m[36mSQL (0.
|
1487
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
746
1488
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
747
1489
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
748
|
-
[1m[35mSQL (0.
|
749
|
-
[1m[36mSQL (0.
|
1490
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Millie"]]
|
1491
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "first"], ["owner_id", 2]]
|
750
1492
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
751
1493
|
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 2]]
|
752
1494
|
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 2], ["owner_type", "Library"]]
|
753
1495
|
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
754
|
-
[1m[35m (
|
1496
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
755
1497
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
756
1498
|
-------------------------------------------------------------------------------------------------------
|
757
1499
|
LargeTextField::OwnerTest: test_: a large text field should only validate_large_text_fields if loaded.
|
@@ -759,7 +1501,7 @@ LargeTextField::OwnerTest: test_: a large text field should only validate_large_
|
|
759
1501
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
760
1502
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
761
1503
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
762
|
-
[1m[36m (
|
1504
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
763
1505
|
[1m[35m (0.0ms)[0m begin transaction
|
764
1506
|
-----------------------------------------------------------------------------------------------------------------------------------------------
|
765
1507
|
LargeTextField::OwnerTest: test_: a large text field should prevent a custom maximum length to be provided that is not in the allowable range.
|
@@ -767,13 +1509,13 @@ LargeTextField::OwnerTest: test_: a large text field should prevent a custom max
|
|
767
1509
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
768
1510
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
769
1511
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
770
|
-
[1m[35m (
|
1512
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
771
1513
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
772
1514
|
-----------------------------------------------------------------------------------------------------------------------
|
773
1515
|
LargeTextField::OwnerTest: test_: a large text field should prevent a non-Integer to be provided for a custom maximum.
|
774
1516
|
-----------------------------------------------------------------------------------------------------------------------
|
775
1517
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
776
|
-
[1m[36mSQL (0.
|
1518
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
777
1519
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
778
1520
|
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
779
1521
|
[1m[35m (0.0ms)[0m begin transaction
|
@@ -781,7 +1523,7 @@ LargeTextField::OwnerTest: test_: a large text field should prevent a non-Intege
|
|
781
1523
|
LargeTextField::OwnerTest: test_: a large text field should read from a file.
|
782
1524
|
------------------------------------------------------------------------------
|
783
1525
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
784
|
-
[1m[35mSQL (0.
|
1526
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
785
1527
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
786
1528
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
787
1529
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
@@ -797,10 +1539,10 @@ LargeTextField::OwnerTest: test_: a large text field should read from a file.
|
|
797
1539
|
LargeTextField::OwnerTest: test_: a large text field should reload changes when they come from a different model.
|
798
1540
|
------------------------------------------------------------------------------------------------------------------
|
799
1541
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
800
|
-
[1m[36mSQL (0.
|
1542
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
801
1543
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
802
1544
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
803
|
-
[1m[35mSQL (0.
|
1545
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Cambridge University Library"]]
|
804
1546
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "in england"], ["owner_id", 2]]
|
805
1547
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
806
1548
|
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 2]]
|
@@ -810,7 +1552,7 @@ LargeTextField::OwnerTest: test_: a large text field should reload changes when
|
|
810
1552
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
811
1553
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
812
1554
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
813
|
-
[1m[35m (
|
1555
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
814
1556
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
815
1557
|
-------------------------------------------------------------------------------------------------
|
816
1558
|
LargeTextField::OwnerTest: test_: a large text field should singularize the errors if requested.
|
@@ -818,7 +1560,7 @@ LargeTextField::OwnerTest: test_: a large text field should singularize the erro
|
|
818
1560
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
819
1561
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
820
1562
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
821
|
-
[1m[36m (0.
|
1563
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
822
1564
|
[1m[35m (0.0ms)[0m begin transaction
|
823
1565
|
------------------------------------------------------------------------------------------------------------
|
824
1566
|
LargeTextField::OwnerTest: test_: a large text field should support strings or symbols for get/set methods.
|
@@ -826,7 +1568,7 @@ LargeTextField::OwnerTest: test_: a large text field should support strings or s
|
|
826
1568
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
827
1569
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
828
1570
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
829
|
-
[1m[35m (
|
1571
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
830
1572
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
831
1573
|
-----------------------------------------------------------------------------------------
|
832
1574
|
LargeTextField::OwnerTest: test_: a large text field should validate the maximum length.
|
@@ -834,7 +1576,7 @@ LargeTextField::OwnerTest: test_: a large text field should validate the maximum
|
|
834
1576
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
835
1577
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
836
1578
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
837
|
-
[1m[36m (
|
1579
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
838
1580
|
[1m[35m (0.0ms)[0m begin transaction
|
839
1581
|
----------------------------------------------------------------------------------------------------------------
|
840
1582
|
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should be able to assign empty string.
|
@@ -855,7 +1597,7 @@ LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should
|
|
855
1597
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
856
1598
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
857
1599
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
858
|
-
[1m[35m (0.
|
1600
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
859
1601
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
860
1602
|
-----------------------------------------------------------------------------------------------------------------
|
861
1603
|
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should raise error on saving nil value.
|
@@ -864,22 +1606,84 @@ LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should
|
|
864
1606
|
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
865
1607
|
[1m[35m (0.0ms)[0m rollback transaction
|
866
1608
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
[1m[35m (0.0ms)[0m
|
871
|
-
[1m[
|
872
|
-
[1m[
|
873
|
-
[1m[
|
874
|
-
[1m[
|
1609
|
+
---------------------------------------------------------------------------------------------------
|
1610
|
+
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to construct a library.
|
1611
|
+
---------------------------------------------------------------------------------------------------
|
1612
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1613
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Alexandria Public Library"]]
|
1614
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "notes"], ["value", "none_set"], ["owner_id", 1]]
|
1615
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1616
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1617
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", " The Royal Library of Alexandria or Ancient Library of Alexandria in Alexandria, Egypt, was one of the\n largest and most significant libraries of the ancient world. It was dedicated to the Muses, the nine\n goddesses of the arts.[1] It flourished under the patronage of the Ptolemaic dynasty and functioned\n as a major center of scholarship from its construction in the 3rd century BCE until the Roman conquest\n of Egypt in 30 BCE, with collections of works, lecture halls, meeting rooms, and gardens. The library\n was part of a larger research institution called the Musaeum of Alexandria, where many of the most\n famous thinkers of the ancient world studied.\n\n The library was created by Ptolemy I Soter, who was a Macedonian general and the successor of Alexander\n the Great.[2] Most of the books were kept as papyrus scrolls. It is unknown how many such scrolls were\n housed at any given time.\n\n The library is famous for having been burned down, resulting in the loss of many scrolls and books; its\n destruction has become a symbol for the loss of cultural knowledge. A few sources differ on who is\n responsible for the destruction and when it occurred. There is mythology regarding this main burning\n but the library may in truth have suffered several fires or other acts of destruction over many years.\n Possible occasions for the partial or complete destruction of the Library of Alexandria include a fire\n set by Julius Caesar in 48 BCE and an attack by Aurelian in the CE 270s.\n\n After the main library was fully destroyed, ancient scholars used a \"daughter library\" in a temple known\n as the Serapeum, located in another part of the city. According to Socrates of Constantinople, Coptic Pope\n Theophilus destroyed the Serapeum in AD 391, although it's not certain that it still contained an offshoot\n of the library then.\n"]]
|
1618
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1619
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
1620
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1621
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
875
1622
|
[1m[35m (0.0ms)[0m begin transaction
|
1623
|
+
--------------------------------------------------------------------------------------------------------------------------------
|
1624
|
+
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to dup a class that has no current large text field.
|
1625
|
+
--------------------------------------------------------------------------------------------------------------------------------
|
1626
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1627
|
+
[1m[36m (63.6ms)[0m [1mCREATE TABLE `large_text_fields` (`id` int(11) auto_increment PRIMARY KEY, `field_name` varchar(255) NOT NULL, `value` mediumtext, `owner_id` int(11) NOT NULL, `owner_type` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
1628
|
+
[1m[35m (28.3ms)[0m CREATE UNIQUE INDEX `large_text_field_by_owner_field` ON `large_text_fields` (`owner_type`, `owner_id`, `field_name`)
|
1629
|
+
[1m[36m (14.4ms)[0m [1mCREATE TABLE `libraries` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
1630
|
+
[1m[35m (14.6ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
1631
|
+
[1m[36m (25.4ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`) [0m
|
1632
|
+
[1m[35m (1.0ms)[0m SELECT version FROM `schema_migrations`
|
1633
|
+
[1m[36m (0.5ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20160217033529')[0m
|
1634
|
+
[1m[35m (1.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20110217210640')
|
1635
|
+
[1m[36mActiveRecord::SchemaMigration Load (3.1ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1636
|
+
[1m[36m (13.5ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
1637
|
+
[1m[35m (29.8ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
1638
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1639
|
+
Migrating to AddLargeTextFields (20110217210640)
|
1640
|
+
[1m[35m (25.8ms)[0m CREATE TABLE `large_text_fields` (`id` int(11) auto_increment PRIMARY KEY, `field_name` varchar(255) NOT NULL, `value` mediumtext, `owner_id` int(11) NOT NULL, `owner_type` varchar(255) NOT NULL) ENGINE=InnoDB
|
1641
|
+
[1m[36m (15.0ms)[0m [1mCREATE UNIQUE INDEX `large_text_field_by_owner_field` ON `large_text_fields` (`owner_type`, `owner_id`, `field_name`) [0m
|
1642
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1643
|
+
[1m[36mSQL (3.1ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20110217210640')[0m
|
1644
|
+
[1m[35m (0.4ms)[0m COMMIT
|
1645
|
+
Migrating to CreateLibraries (20160217033529)
|
1646
|
+
[1m[36m (15.7ms)[0m [1mCREATE TABLE `libraries` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
1647
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1648
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20160217033529')[0m
|
1649
|
+
[1m[35m (0.3ms)[0m COMMIT
|
1650
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1651
|
+
[1m[35m (0.3ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1652
|
+
,fk.referenced_column_name as 'primary_key'
|
1653
|
+
,fk.column_name as 'column'
|
1654
|
+
,fk.constraint_name as 'name'
|
1655
|
+
FROM information_schema.key_column_usage fk
|
1656
|
+
WHERE fk.referenced_column_name is not null
|
1657
|
+
AND fk.table_schema = 'large_text_field_test'
|
1658
|
+
AND fk.table_name = 'large_text_fields'
|
1659
|
+
|
1660
|
+
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `large_text_fields`[0m
|
1661
|
+
[1m[35m (0.2ms)[0m SELECT fk.referenced_table_name as 'to_table'
|
1662
|
+
,fk.referenced_column_name as 'primary_key'
|
1663
|
+
,fk.column_name as 'column'
|
1664
|
+
,fk.constraint_name as 'name'
|
1665
|
+
FROM information_schema.key_column_usage fk
|
1666
|
+
WHERE fk.referenced_column_name is not null
|
1667
|
+
AND fk.table_schema = 'large_text_field_test'
|
1668
|
+
AND fk.table_name = 'libraries'
|
1669
|
+
|
1670
|
+
[1m[36m (0.1ms)[0m [1mSHOW CREATE TABLE `libraries`[0m
|
1671
|
+
[1m[36m (6.3ms)[0m [1mDROP TABLE `large_text_fields` CASCADE[0m
|
1672
|
+
[1m[35m (32.5ms)[0m CREATE TABLE `large_text_fields` (`id` int(11) auto_increment PRIMARY KEY, `field_name` varchar(255) NOT NULL, `value` mediumtext, `owner_id` int(11) NOT NULL, `owner_type` varchar(255) NOT NULL) ENGINE=InnoDB
|
1673
|
+
[1m[36m (20.9ms)[0m [1mCREATE UNIQUE INDEX `large_text_field_by_owner_field` USING btree ON `large_text_fields` (`owner_type`, `owner_id`, `field_name`) [0m
|
1674
|
+
[1m[35m (4.1ms)[0m DROP TABLE `libraries` CASCADE
|
1675
|
+
[1m[36m (12.3ms)[0m [1mCREATE TABLE `libraries` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
1676
|
+
[1m[35m (3.0ms)[0m SELECT version FROM `schema_migrations`
|
1677
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1678
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1679
|
+
[1m[35m (0.1ms)[0m begin transaction
|
876
1680
|
----------------------------------------------------------------------------------------------------------
|
877
1681
|
LargeTextField::OwnerTest: test_: a large text field should allow a custom maximum length to be provided.
|
878
1682
|
----------------------------------------------------------------------------------------------------------
|
879
1683
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
880
1684
|
[1m[35mSQL (1.1ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
881
1685
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
882
|
-
[1m[35m (0.
|
1686
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
883
1687
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
884
1688
|
---------------------------------------------------------------------------------------------------
|
885
1689
|
LargeTextField::OwnerTest: test_: a large text field should allow for concurrent sets and deletes.
|
@@ -888,22 +1692,22 @@ LargeTextField::OwnerTest: test_: a large text field should allow for concurrent
|
|
888
1692
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
889
1693
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
890
1694
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
891
|
-
[1m[35mSQL (0.
|
892
|
-
[1m[36mSQL (0.
|
1695
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
1696
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"]]
|
893
1697
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
894
1698
|
[1m[36mLibrary Load (0.1ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
895
1699
|
[1m[35mLargeTextField::NamedTextValue Load (0.1ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
896
1700
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
897
1701
|
[1m[35mSQL (0.1ms)[0m DELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ? [["id", 2]]
|
898
|
-
[1m[36mSQL (0.
|
1702
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "large_text_fields" SET "value" = ? WHERE "large_text_fields"."id" = ?[0m [["value", "third"], ["id", 1]]
|
899
1703
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
900
|
-
[1m[36m (0.
|
901
|
-
[1m[35m (0.
|
1704
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
1705
|
+
[1m[35m (0.0ms)[0m begin transaction
|
902
1706
|
------------------------------------------------------------------------------------------------------
|
903
1707
|
LargeTextField::OwnerTest: test_: a large text field should allow get and set with saves and deletes.
|
904
1708
|
------------------------------------------------------------------------------------------------------
|
905
1709
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
906
|
-
[1m[35mSQL (0.
|
1710
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
907
1711
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
908
1712
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
909
1713
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger "]]
|
@@ -920,7 +1724,7 @@ LargeTextField::OwnerTest: test_: a large text field should allow get and set wi
|
|
920
1724
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
921
1725
|
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
922
1726
|
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
923
|
-
[1m[36m (
|
1727
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
924
1728
|
[1m[35m (0.0ms)[0m begin transaction
|
925
1729
|
----------------------------------------------------------------------------------------
|
926
1730
|
LargeTextField::OwnerTest: test_: a large text field should be able to be eager loaded.
|
@@ -931,10 +1735,10 @@ LargeTextField::OwnerTest: test_: a large text field should be able to be eager
|
|
931
1735
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
932
1736
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
933
1737
|
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"]]
|
934
|
-
[1m[36m (0.
|
1738
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
935
1739
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
936
|
-
[1m[36mLargeTextField::NamedTextValue Load (0.
|
937
|
-
[1m[35m (0.
|
1740
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_type" = 'Library' AND "large_text_fields"."owner_id" IN (1)[0m
|
1741
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
938
1742
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
939
1743
|
----------------------------------------------------------------------------------------------
|
940
1744
|
LargeTextField::OwnerTest: test_: a large text field should be able to update deleted fields.
|
@@ -954,7 +1758,7 @@ LargeTextField::OwnerTest: test_: a large text field should be able to update de
|
|
954
1758
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
955
1759
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
956
1760
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
957
|
-
[1m[36m (0.
|
1761
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
958
1762
|
[1m[35m (0.0ms)[0m begin transaction
|
959
1763
|
---------------------------------------------------------------------------------------------------
|
960
1764
|
LargeTextField::OwnerTest: test_: a large text field should be cloned with the rest of the record.
|
@@ -990,18 +1794,18 @@ LargeTextField::OwnerTest: test_: a large text field should declare the associat
|
|
990
1794
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
991
1795
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
992
1796
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
993
|
-
[1m[36m (0.
|
1797
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
994
1798
|
[1m[35m (0.0ms)[0m begin transaction
|
995
1799
|
------------------------------------------------------------------------------------------------------
|
996
1800
|
LargeTextField::OwnerTest: test_: a large text field should delete fields when they are set to blank.
|
997
1801
|
------------------------------------------------------------------------------------------------------
|
998
1802
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
999
|
-
[1m[35mSQL (0.
|
1803
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1000
1804
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1001
1805
|
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1002
1806
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1003
1807
|
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
1004
|
-
[1m[36m (0.
|
1808
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1005
1809
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1006
1810
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1007
1811
|
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
@@ -1011,32 +1815,32 @@ LargeTextField::OwnerTest: test_: a large text field should delete fields when t
|
|
1011
1815
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1012
1816
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1013
1817
|
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1014
|
-
[1m[36m (0.
|
1818
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
1015
1819
|
[1m[35m (0.0ms)[0m begin transaction
|
1016
1820
|
------------------------------------------------------------------------------------------------------------------
|
1017
1821
|
LargeTextField::OwnerTest: test_: a large text field should delete large text fields when the owner is destroyed.
|
1018
1822
|
------------------------------------------------------------------------------------------------------------------
|
1019
1823
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1020
|
-
[1m[35mSQL (0.
|
1824
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1021
1825
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1022
|
-
[1m[35m (0.
|
1826
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "large_text_fields"
|
1023
1827
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1024
1828
|
[1m[35mSQL (0.0ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Cambridge University Library"]]
|
1025
1829
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "in england"], ["owner_id", 2]]
|
1026
1830
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1027
|
-
[1m[36m (0.
|
1831
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields"[0m
|
1028
1832
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1029
1833
|
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 1]]
|
1030
1834
|
[1m[35mSQL (0.0ms)[0m DELETE FROM "libraries" WHERE "libraries"."id" = ? [["id", 2]]
|
1031
1835
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1032
1836
|
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields"
|
1033
|
-
[1m[36m (
|
1837
|
+
[1m[36m (2.0ms)[0m [1mrollback transaction[0m
|
1034
1838
|
[1m[35m (0.0ms)[0m begin transaction
|
1035
1839
|
--------------------------------------------------------------------------------------------------------------------
|
1036
1840
|
LargeTextField::OwnerTest: test_: a large text field should detect changes when @text_field_hash hash is/not empty.
|
1037
1841
|
--------------------------------------------------------------------------------------------------------------------
|
1038
1842
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1039
|
-
[1m[35mSQL (0.
|
1843
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1040
1844
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1041
1845
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1042
1846
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
@@ -1044,7 +1848,7 @@ LargeTextField::OwnerTest: test_: a large text field should detect changes when
|
|
1044
1848
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1045
1849
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
1046
1850
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
1047
|
-
[1m[35m (0.
|
1851
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1048
1852
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1049
1853
|
--------------------------------------------------------------------------------------------------------
|
1050
1854
|
LargeTextField::OwnerTest: test_: a large text field should forget about changes if they are not saved.
|
@@ -1061,7 +1865,7 @@ LargeTextField::OwnerTest: test_: a large text field should forget about changes
|
|
1061
1865
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1062
1866
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1063
1867
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1064
|
-
[1m[35m (0.
|
1868
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1065
1869
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1066
1870
|
---------------------------------------------------------------------------------------------------
|
1067
1871
|
LargeTextField::OwnerTest: test_: a large text field should not save fields that are set to blank.
|
@@ -1076,7 +1880,7 @@ LargeTextField::OwnerTest: test_: a large text field should not save fields that
|
|
1076
1880
|
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 2]]
|
1077
1881
|
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 2], ["owner_type", "Library"]]
|
1078
1882
|
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
1079
|
-
[1m[35m (0.
|
1883
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1080
1884
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1081
1885
|
-------------------------------------------------------------------------------------------------------
|
1082
1886
|
LargeTextField::OwnerTest: test_: a large text field should only validate_large_text_fields if loaded.
|
@@ -1084,7 +1888,7 @@ LargeTextField::OwnerTest: test_: a large text field should only validate_large_
|
|
1084
1888
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1085
1889
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1086
1890
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1087
|
-
[1m[36m (
|
1891
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1088
1892
|
[1m[35m (0.0ms)[0m begin transaction
|
1089
1893
|
-----------------------------------------------------------------------------------------------------------------------------------------------
|
1090
1894
|
LargeTextField::OwnerTest: test_: a large text field should prevent a custom maximum length to be provided that is not in the allowable range.
|
@@ -1092,21 +1896,21 @@ LargeTextField::OwnerTest: test_: a large text field should prevent a custom max
|
|
1092
1896
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1093
1897
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1094
1898
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1095
|
-
[1m[35m (0.
|
1899
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1096
1900
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1097
1901
|
-----------------------------------------------------------------------------------------------------------------------
|
1098
1902
|
LargeTextField::OwnerTest: test_: a large text field should prevent a non-Integer to be provided for a custom maximum.
|
1099
1903
|
-----------------------------------------------------------------------------------------------------------------------
|
1100
1904
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1101
|
-
[1m[36mSQL (0.
|
1905
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1102
1906
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1103
|
-
[1m[36m (
|
1907
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1104
1908
|
[1m[35m (0.0ms)[0m begin transaction
|
1105
1909
|
------------------------------------------------------------------------------
|
1106
1910
|
LargeTextField::OwnerTest: test_: a large text field should read from a file.
|
1107
1911
|
------------------------------------------------------------------------------
|
1108
1912
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1109
|
-
[1m[35mSQL (0.
|
1913
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1110
1914
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1111
1915
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1112
1916
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
@@ -1135,7 +1939,7 @@ LargeTextField::OwnerTest: test_: a large text field should reload changes when
|
|
1135
1939
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1136
1940
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
1137
1941
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
1138
|
-
[1m[35m (0.
|
1942
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1139
1943
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1140
1944
|
-------------------------------------------------------------------------------------------------
|
1141
1945
|
LargeTextField::OwnerTest: test_: a large text field should singularize the errors if requested.
|
@@ -1149,15 +1953,15 @@ LargeTextField::OwnerTest: test_: a large text field should singularize the erro
|
|
1149
1953
|
LargeTextField::OwnerTest: test_: a large text field should support strings or symbols for get/set methods.
|
1150
1954
|
------------------------------------------------------------------------------------------------------------
|
1151
1955
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1152
|
-
[1m[35mSQL (0.
|
1956
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1153
1957
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1154
|
-
[1m[35m (
|
1958
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1155
1959
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1156
1960
|
-----------------------------------------------------------------------------------------
|
1157
1961
|
LargeTextField::OwnerTest: test_: a large text field should validate the maximum length.
|
1158
1962
|
-----------------------------------------------------------------------------------------
|
1159
1963
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1160
|
-
[1m[36mSQL (
|
1964
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1161
1965
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1162
1966
|
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
1163
1967
|
[1m[35m (0.0ms)[0m begin transaction
|
@@ -1175,7 +1979,7 @@ LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should
|
|
1175
1979
|
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should be able to assign non empty string.
|
1176
1980
|
--------------------------------------------------------------------------------------------------------------------
|
1177
1981
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1178
|
-
[1m[36mSQL (0.
|
1982
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1179
1983
|
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "notes"], ["value", "this is some text"], ["owner_id", 1]]
|
1180
1984
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1181
1985
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
@@ -1189,6 +1993,11 @@ LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should
|
|
1189
1993
|
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1190
1994
|
[1m[35m (0.0ms)[0m rollback transaction
|
1191
1995
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1996
|
+
------------------------------
|
1997
|
+
LargeTextFieldTest: test_truth
|
1998
|
+
------------------------------
|
1999
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2000
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1192
2001
|
---------------------------------------------------------------------------------------------------
|
1193
2002
|
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to construct a library.
|
1194
2003
|
---------------------------------------------------------------------------------------------------
|
@@ -1208,11 +2017,6 @@ LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to du
|
|
1208
2017
|
--------------------------------------------------------------------------------------------------------------------------------
|
1209
2018
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1210
2019
|
[1m[35m (0.0ms)[0m begin transaction
|
1211
|
-
------------------------------
|
1212
|
-
LargeTextFieldTest: test_truth
|
1213
|
-
------------------------------
|
1214
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1215
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1216
2020
|
--------------------------------------------------------------------------------------------------
|
1217
2021
|
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should belong to owner.
|
1218
2022
|
--------------------------------------------------------------------------------------------------
|
@@ -1230,7 +2034,7 @@ LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should
|
|
1230
2034
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1231
2035
|
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."id" = ? LIMIT 1 [["id", 2]]
|
1232
2036
|
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
1233
|
-
[1m[35m (0.
|
2037
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1234
2038
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1235
2039
|
--------------------------------------------------------------------------------------------------------------------------
|
1236
2040
|
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should use large_text_fields as the table name.
|
@@ -1258,7 +2062,7 @@ LargeTextField::NamedTextValueTest: test_: unique index should allow different o
|
|
1258
2062
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?)[0m [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 2], ["owner_type", "Library"]]
|
1259
2063
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1260
2064
|
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1261
|
-
[1m[35m (0.
|
2065
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1262
2066
|
------------------------------------------------------------------------------------------------------------------------------------
|
1263
2067
|
LargeTextField::NamedTextValueTest: test_: unique index should raise a unique constraint failure on the same owner, and field name.
|
1264
2068
|
------------------------------------------------------------------------------------------------------------------------------------
|
@@ -1272,9 +2076,32 @@ LargeTextField::NamedTextValueTest: test_: unique index should raise a unique co
|
|
1272
2076
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1273
2077
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?)[0m [["field_name", "puppy"], ["value", "Wiki"], ["owner_id", 1], ["owner_type", "Library"]]
|
1274
2078
|
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1275
|
-
[1m[36m (0.
|
2079
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1276
2080
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1277
2081
|
[1m[35m (0.1ms)[0m begin transaction
|
2082
|
+
------------------------------
|
2083
|
+
LargeTextFieldTest: test_truth
|
2084
|
+
------------------------------
|
2085
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2086
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2087
|
+
---------------------------------------------------------------------------------------------------
|
2088
|
+
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to construct a library.
|
2089
|
+
---------------------------------------------------------------------------------------------------
|
2090
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2091
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Alexandria Public Library"]]
|
2092
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2093
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2094
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", " The Royal Library of Alexandria or Ancient Library of Alexandria in Alexandria, Egypt, was one of the\n largest and most significant libraries of the ancient world. It was dedicated to the Muses, the nine\n goddesses of the arts.[1] It flourished under the patronage of the Ptolemaic dynasty and functioned\n as a major center of scholarship from its construction in the 3rd century BCE until the Roman conquest\n of Egypt in 30 BCE, with collections of works, lecture halls, meeting rooms, and gardens. The library\n was part of a larger research institution called the Musaeum of Alexandria, where many of the most\n famous thinkers of the ancient world studied.\n\n The library was created by Ptolemy I Soter, who was a Macedonian general and the successor of Alexander\n the Great.[2] Most of the books were kept as papyrus scrolls. It is unknown how many such scrolls were\n housed at any given time.\n\n The library is famous for having been burned down, resulting in the loss of many scrolls and books; its\n destruction has become a symbol for the loss of cultural knowledge. A few sources differ on who is\n responsible for the destruction and when it occurred. There is mythology regarding this main burning\n but the library may in truth have suffered several fires or other acts of destruction over many years.\n Possible occasions for the partial or complete destruction of the Library of Alexandria include a fire\n set by Julius Caesar in 48 BCE and an attack by Aurelian in the CE 270s.\n\n After the main library was fully destroyed, ancient scholars used a \"daughter library\" in a temple known\n as the Serapeum, located in another part of the city. According to Socrates of Constantinople, Coptic Pope\n Theophilus destroyed the Serapeum in AD 391, although it's not certain that it still contained an offshoot\n of the library then.\n"]]
|
2095
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2096
|
+
[1m[36mLibrary Load (0.1ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
2097
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.1ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
2098
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
2099
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2100
|
+
--------------------------------------------------------------------------------------------------------------------------------
|
2101
|
+
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to dup a class that has no current large text field.
|
2102
|
+
--------------------------------------------------------------------------------------------------------------------------------
|
2103
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2104
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1278
2105
|
--------------------------------------------------------------------------------------------------
|
1279
2106
|
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should belong to owner.
|
1280
2107
|
--------------------------------------------------------------------------------------------------
|
@@ -1284,14 +2111,14 @@ LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should
|
|
1284
2111
|
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should have field name and value attributes.
|
1285
2112
|
-----------------------------------------------------------------------------------------------------------------------
|
1286
2113
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1287
|
-
[1m[35mSQL (0.
|
2114
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1288
2115
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1289
2116
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1290
2117
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?)[0m [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 1], ["owner_type", "Library"]]
|
1291
2118
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1292
2119
|
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
1293
2120
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1294
|
-
[1m[36m (
|
2121
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1295
2122
|
[1m[35m (0.0ms)[0m begin transaction
|
1296
2123
|
--------------------------------------------------------------------------------------------------------------------------
|
1297
2124
|
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should use large_text_fields as the table name.
|
@@ -1316,7 +2143,7 @@ LargeTextField::NamedTextValueTest: test_: unique index should allow different o
|
|
1316
2143
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1317
2144
|
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?) [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 2], ["owner_type", "Library"]]
|
1318
2145
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1319
|
-
[1m[35m (0.
|
2146
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1320
2147
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1321
2148
|
------------------------------------------------------------------------------------------------------------------------------------
|
1322
2149
|
LargeTextField::NamedTextValueTest: test_: unique index should raise a unique constraint failure on the same owner, and field name.
|
@@ -1330,7 +2157,7 @@ LargeTextField::NamedTextValueTest: test_: unique index should raise a unique co
|
|
1330
2157
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1331
2158
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?)[0m [["field_name", "puppy"], ["value", "Wiki"], ["owner_id", 1], ["owner_type", "Library"]]
|
1332
2159
|
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1333
|
-
[1m[36m (0.
|
2160
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1334
2161
|
[1m[35m (0.0ms)[0m begin transaction
|
1335
2162
|
----------------------------------------------------------------------------------------------------------
|
1336
2163
|
LargeTextField::OwnerTest: test_: a large text field should allow a custom maximum length to be provided.
|
@@ -1338,20 +2165,20 @@ LargeTextField::OwnerTest: test_: a large text field should allow a custom maxim
|
|
1338
2165
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1339
2166
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1340
2167
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1341
|
-
[1m[35m (
|
2168
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
1342
2169
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1343
2170
|
---------------------------------------------------------------------------------------------------
|
1344
2171
|
LargeTextField::OwnerTest: test_: a large text field should allow for concurrent sets and deletes.
|
1345
2172
|
---------------------------------------------------------------------------------------------------
|
1346
2173
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1347
|
-
[1m[36mSQL (0.
|
2174
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1348
2175
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1349
2176
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1350
2177
|
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
1351
2178
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"]]
|
1352
2179
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1353
2180
|
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
1354
|
-
[1m[35mLargeTextField::NamedTextValue Load (0.
|
2181
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1355
2182
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1356
2183
|
[1m[35mSQL (0.1ms)[0m DELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ? [["id", 2]]
|
1357
2184
|
[1m[36mSQL (0.1ms)[0m [1mUPDATE "large_text_fields" SET "value" = ? WHERE "large_text_fields"."id" = ?[0m [["value", "third"], ["id", 1]]
|
@@ -1366,7 +2193,7 @@ LargeTextField::OwnerTest: test_: a large text field should allow get and set wi
|
|
1366
2193
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1367
2194
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1368
2195
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger "]]
|
1369
|
-
[1m[35m (0.
|
2196
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1370
2197
|
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
1371
2198
|
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1372
2199
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
@@ -1379,7 +2206,7 @@ LargeTextField::OwnerTest: test_: a large text field should allow get and set wi
|
|
1379
2206
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1380
2207
|
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
1381
2208
|
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1382
|
-
[1m[36m (0.
|
2209
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1383
2210
|
[1m[35m (0.0ms)[0m begin transaction
|
1384
2211
|
----------------------------------------------------------------------------------------
|
1385
2212
|
LargeTextField::OwnerTest: test_: a large text field should be able to be eager loaded.
|
@@ -1391,15 +2218,15 @@ LargeTextField::OwnerTest: test_: a large text field should be able to be eager
|
|
1391
2218
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
1392
2219
|
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"]]
|
1393
2220
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1394
|
-
[1m[35mLibrary Load (0.
|
2221
|
+
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1395
2222
|
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_type" = 'Library' AND "large_text_fields"."owner_id" IN (1)[0m
|
1396
|
-
[1m[35m (0.
|
1397
|
-
[1m[36m (0.
|
2223
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
2224
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1398
2225
|
----------------------------------------------------------------------------------------------
|
1399
2226
|
LargeTextField::OwnerTest: test_: a large text field should be able to update deleted fields.
|
1400
2227
|
----------------------------------------------------------------------------------------------
|
1401
2228
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1402
|
-
[1m[36mSQL (0.
|
2229
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1403
2230
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1404
2231
|
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1405
2232
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
@@ -1409,11 +2236,11 @@ LargeTextField::OwnerTest: test_: a large text field should be able to update de
|
|
1409
2236
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1410
2237
|
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 1]]
|
1411
2238
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1412
|
-
[1m[36m (0.
|
2239
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1413
2240
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1414
2241
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
1415
2242
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1416
|
-
[1m[36m (
|
2243
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1417
2244
|
[1m[35m (0.0ms)[0m begin transaction
|
1418
2245
|
---------------------------------------------------------------------------------------------------
|
1419
2246
|
LargeTextField::OwnerTest: test_: a large text field should be cloned with the rest of the record.
|
@@ -1437,11 +2264,11 @@ LargeTextField::OwnerTest: test_: a large text field should be cloned with the r
|
|
1437
2264
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1438
2265
|
[1m[35mSQL (0.0ms)[0m DELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ? [["id", 3]]
|
1439
2266
|
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 4]]
|
1440
|
-
[1m[35mSQL (0.
|
2267
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "libraries" WHERE "libraries"."id" = ? [["id", 2]]
|
1441
2268
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1442
2269
|
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."id" = ? LIMIT 1 [["id", 3]]
|
1443
2270
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."id" = ? LIMIT 1[0m [["id", 4]]
|
1444
|
-
[1m[35m (0.
|
2271
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1445
2272
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1446
2273
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------
|
1447
2274
|
LargeTextField::OwnerTest: test_: a large text field should declare the association when it is first described and other meta data when it is first defined.
|
@@ -1449,14 +2276,14 @@ LargeTextField::OwnerTest: test_: a large text field should declare the associat
|
|
1449
2276
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1450
2277
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1451
2278
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1452
|
-
[1m[36m (0.
|
2279
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1453
2280
|
[1m[35m (0.0ms)[0m begin transaction
|
1454
2281
|
------------------------------------------------------------------------------------------------------
|
1455
2282
|
LargeTextField::OwnerTest: test_: a large text field should delete fields when they are set to blank.
|
1456
2283
|
------------------------------------------------------------------------------------------------------
|
1457
2284
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1458
2285
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1459
|
-
[1m[36m (0.
|
2286
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1460
2287
|
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1461
2288
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1462
2289
|
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
@@ -1470,7 +2297,7 @@ LargeTextField::OwnerTest: test_: a large text field should delete fields when t
|
|
1470
2297
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1471
2298
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1472
2299
|
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1473
|
-
[1m[36m (0.
|
2300
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1474
2301
|
[1m[35m (0.0ms)[0m begin transaction
|
1475
2302
|
------------------------------------------------------------------------------------------------------------------
|
1476
2303
|
LargeTextField::OwnerTest: test_: a large text field should delete large text fields when the owner is destroyed.
|
@@ -1478,18 +2305,18 @@ LargeTextField::OwnerTest: test_: a large text field should delete large text fi
|
|
1478
2305
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1479
2306
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1480
2307
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1481
|
-
[1m[35m (0.
|
2308
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "large_text_fields"
|
1482
2309
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1483
2310
|
[1m[35mSQL (0.0ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Cambridge University Library"]]
|
1484
2311
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "in england"], ["owner_id", 2]]
|
1485
2312
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1486
|
-
[1m[36m (0.
|
2313
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields"[0m
|
1487
2314
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1488
2315
|
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 1]]
|
1489
2316
|
[1m[35mSQL (0.0ms)[0m DELETE FROM "libraries" WHERE "libraries"."id" = ? [["id", 2]]
|
1490
2317
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1491
2318
|
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields"
|
1492
|
-
[1m[36m (0.
|
2319
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1493
2320
|
[1m[35m (0.0ms)[0m begin transaction
|
1494
2321
|
--------------------------------------------------------------------------------------------------------------------
|
1495
2322
|
LargeTextField::OwnerTest: test_: a large text field should detect changes when @text_field_hash hash is/not empty.
|
@@ -1500,10 +2327,10 @@ LargeTextField::OwnerTest: test_: a large text field should detect changes when
|
|
1500
2327
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1501
2328
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1502
2329
|
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "description"], ["value", "a new note"], ["owner_id", 2]]
|
1503
|
-
[1m[36m (0.
|
2330
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1504
2331
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
1505
2332
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
1506
|
-
[1m[35m (
|
2333
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1507
2334
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1508
2335
|
--------------------------------------------------------------------------------------------------------
|
1509
2336
|
LargeTextField::OwnerTest: test_: a large text field should forget about changes if they are not saved.
|
@@ -1534,8 +2361,8 @@ LargeTextField::OwnerTest: test_: a large text field should not save fields that
|
|
1534
2361
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1535
2362
|
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 2]]
|
1536
2363
|
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 2], ["owner_type", "Library"]]
|
1537
|
-
[1m[36m (0.
|
1538
|
-
[1m[35m (0.
|
2364
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
2365
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1539
2366
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1540
2367
|
-------------------------------------------------------------------------------------------------------
|
1541
2368
|
LargeTextField::OwnerTest: test_: a large text field should only validate_large_text_fields if loaded.
|
@@ -1543,13 +2370,13 @@ LargeTextField::OwnerTest: test_: a large text field should only validate_large_
|
|
1543
2370
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1544
2371
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1545
2372
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1546
|
-
[1m[36m (0.
|
2373
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1547
2374
|
[1m[35m (0.0ms)[0m begin transaction
|
1548
2375
|
-----------------------------------------------------------------------------------------------------------------------------------------------
|
1549
2376
|
LargeTextField::OwnerTest: test_: a large text field should prevent a custom maximum length to be provided that is not in the allowable range.
|
1550
2377
|
-----------------------------------------------------------------------------------------------------------------------------------------------
|
1551
2378
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1552
|
-
[1m[35mSQL (0.
|
2379
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1553
2380
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1554
2381
|
[1m[35m (0.7ms)[0m rollback transaction
|
1555
2382
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
@@ -1558,15 +2385,15 @@ LargeTextField::OwnerTest: test_: a large text field should prevent a non-Intege
|
|
1558
2385
|
-----------------------------------------------------------------------------------------------------------------------
|
1559
2386
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1560
2387
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1561
|
-
[1m[35m (0.
|
1562
|
-
[1m[36m (0.
|
2388
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2389
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1563
2390
|
[1m[35m (0.0ms)[0m begin transaction
|
1564
2391
|
------------------------------------------------------------------------------
|
1565
2392
|
LargeTextField::OwnerTest: test_: a large text field should read from a file.
|
1566
2393
|
------------------------------------------------------------------------------
|
1567
2394
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1568
2395
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1569
|
-
[1m[36m (0.
|
2396
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1570
2397
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1571
2398
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1572
2399
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
@@ -1574,8 +2401,8 @@ LargeTextField::OwnerTest: test_: a large text field should read from a file.
|
|
1574
2401
|
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 2], ["owner_type", "Library"], ["field_name", "description"], ["value", "this is a string from the file"]]
|
1575
2402
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1576
2403
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
1577
|
-
[1m[36mLargeTextField::NamedTextValue Load (0.
|
1578
|
-
[1m[35m (
|
2404
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
2405
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1579
2406
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1580
2407
|
------------------------------------------------------------------------------------------------------------------
|
1581
2408
|
LargeTextField::OwnerTest: test_: a large text field should reload changes when they come from a different model.
|
@@ -1594,7 +2421,7 @@ LargeTextField::OwnerTest: test_: a large text field should reload changes when
|
|
1594
2421
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1595
2422
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
1596
2423
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
1597
|
-
[1m[35m (0.
|
2424
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1598
2425
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1599
2426
|
-------------------------------------------------------------------------------------------------
|
1600
2427
|
LargeTextField::OwnerTest: test_: a large text field should singularize the errors if requested.
|
@@ -1602,7 +2429,7 @@ LargeTextField::OwnerTest: test_: a large text field should singularize the erro
|
|
1602
2429
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1603
2430
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1604
2431
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1605
|
-
[1m[36m (
|
2432
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1606
2433
|
[1m[35m (0.0ms)[0m begin transaction
|
1607
2434
|
------------------------------------------------------------------------------------------------------------
|
1608
2435
|
LargeTextField::OwnerTest: test_: a large text field should support strings or symbols for get/set methods.
|
@@ -1610,7 +2437,7 @@ LargeTextField::OwnerTest: test_: a large text field should support strings or s
|
|
1610
2437
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1611
2438
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1612
2439
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1613
|
-
[1m[35m (0.
|
2440
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1614
2441
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1615
2442
|
-----------------------------------------------------------------------------------------
|
1616
2443
|
LargeTextField::OwnerTest: test_: a large text field should validate the maximum length.
|
@@ -1618,7 +2445,7 @@ LargeTextField::OwnerTest: test_: a large text field should validate the maximum
|
|
1618
2445
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1619
2446
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1620
2447
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1621
|
-
[1m[36m (1.
|
2448
|
+
[1m[36m (1.6ms)[0m [1mrollback transaction[0m
|
1622
2449
|
[1m[35m (0.0ms)[0m begin transaction
|
1623
2450
|
----------------------------------------------------------------------------------------------------------------
|
1624
2451
|
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should be able to assign empty string.
|
@@ -1628,7 +2455,7 @@ LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should
|
|
1628
2455
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1629
2456
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1630
2457
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1631
|
-
[1m[35m (
|
2458
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1632
2459
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1633
2460
|
--------------------------------------------------------------------------------------------------------------------
|
1634
2461
|
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should be able to assign non empty string.
|
@@ -1639,62 +2466,40 @@ LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should
|
|
1639
2466
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1640
2467
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1641
2468
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1642
|
-
[1m[35m (
|
1643
|
-
[1m[36m (0.
|
2469
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2470
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1644
2471
|
-----------------------------------------------------------------------------------------------------------------
|
1645
2472
|
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should raise error on saving nil value.
|
1646
2473
|
-----------------------------------------------------------------------------------------------------------------
|
1647
2474
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1648
2475
|
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1649
2476
|
[1m[35m (0.0ms)[0m rollback transaction
|
1650
|
-
[1m[36m (
|
1651
|
-
|
1652
|
-
|
1653
|
-
|
1654
|
-
[1m[
|
1655
|
-
[1m[
|
1656
|
-
|
1657
|
-
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to construct a library.
|
1658
|
-
---------------------------------------------------------------------------------------------------
|
1659
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1660
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Alexandria Public Library"]]
|
1661
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "notes"], ["value", "none_set"], ["owner_id", 1]]
|
1662
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1663
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1664
|
-
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", " The Royal Library of Alexandria or Ancient Library of Alexandria in Alexandria, Egypt, was one of the\n largest and most significant libraries of the ancient world. It was dedicated to the Muses, the nine\n goddesses of the arts.[1] It flourished under the patronage of the Ptolemaic dynasty and functioned\n as a major center of scholarship from its construction in the 3rd century BCE until the Roman conquest\n of Egypt in 30 BCE, with collections of works, lecture halls, meeting rooms, and gardens. The library\n was part of a larger research institution called the Musaeum of Alexandria, where many of the most\n famous thinkers of the ancient world studied.\n\n The library was created by Ptolemy I Soter, who was a Macedonian general and the successor of Alexander\n the Great.[2] Most of the books were kept as papyrus scrolls. It is unknown how many such scrolls were\n housed at any given time.\n\n The library is famous for having been burned down, resulting in the loss of many scrolls and books; its\n destruction has become a symbol for the loss of cultural knowledge. A few sources differ on who is\n responsible for the destruction and when it occurred. There is mythology regarding this main burning\n but the library may in truth have suffered several fires or other acts of destruction over many years.\n Possible occasions for the partial or complete destruction of the Library of Alexandria include a fire\n set by Julius Caesar in 48 BCE and an attack by Aurelian in the CE 270s.\n\n After the main library was fully destroyed, ancient scholars used a \"daughter library\" in a temple known\n as the Serapeum, located in another part of the city. According to Socrates of Constantinople, Coptic Pope\n Theophilus destroyed the Serapeum in AD 391, although it's not certain that it still contained an offshoot\n of the library then.\n"]]
|
1665
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1666
|
-
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
1667
|
-
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1668
|
-
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1669
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1670
|
-
--------------------------------------------------------------------------------------------------------------------------------
|
1671
|
-
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to dup a class that has no current large text field.
|
1672
|
-
--------------------------------------------------------------------------------------------------------------------------------
|
1673
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2477
|
+
[1m[36m (11.5ms)[0m [1mDROP TABLE `large_text_fields` CASCADE[0m
|
2478
|
+
[1m[35m (22.7ms)[0m CREATE TABLE `large_text_fields` (`id` int(11) auto_increment PRIMARY KEY, `field_name` varchar(255) NOT NULL, `value` mediumtext, `owner_id` int(11) NOT NULL, `owner_type` varchar(255) NOT NULL) ENGINE=InnoDB
|
2479
|
+
[1m[36m (41.1ms)[0m [1mCREATE UNIQUE INDEX `large_text_field_by_owner_field` USING btree ON `large_text_fields` (`owner_type`, `owner_id`, `field_name`) [0m
|
2480
|
+
[1m[35m (2.9ms)[0m DROP TABLE `libraries` CASCADE
|
2481
|
+
[1m[36m (16.0ms)[0m [1mCREATE TABLE `libraries` (`id` int(11) auto_increment PRIMARY KEY, `name` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
2482
|
+
[1m[35m (8.5ms)[0m SELECT version FROM `schema_migrations`
|
2483
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
1674
2484
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1675
2485
|
[1m[35m (0.1ms)[0m begin transaction
|
1676
|
-
------------------------------
|
1677
|
-
LargeTextFieldTest: test_truth
|
1678
|
-
------------------------------
|
1679
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1680
|
-
[1m[35m (0.0ms)[0m begin transaction
|
1681
2486
|
--------------------------------------------------------------------------------------------------
|
1682
2487
|
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should belong to owner.
|
1683
2488
|
--------------------------------------------------------------------------------------------------
|
1684
|
-
[1m[36m (0.
|
2489
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1685
2490
|
[1m[35m (0.0ms)[0m begin transaction
|
1686
2491
|
-----------------------------------------------------------------------------------------------------------------------
|
1687
2492
|
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should have field name and value attributes.
|
1688
2493
|
-----------------------------------------------------------------------------------------------------------------------
|
1689
2494
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1690
|
-
[1m[35mSQL (
|
2495
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1691
2496
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1692
|
-
[1m[35m (0.
|
1693
|
-
[1m[36mSQL (0.
|
2497
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2498
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?)[0m [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 1], ["owner_type", "Library"]]
|
1694
2499
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1695
|
-
[1m[36mLargeTextField::NamedTextValue Load (0.
|
2500
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
1696
2501
|
[1m[35mLibrary Load (0.1ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1697
|
-
[1m[36m (0.
|
2502
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1698
2503
|
[1m[35m (0.0ms)[0m begin transaction
|
1699
2504
|
--------------------------------------------------------------------------------------------------------------------------
|
1700
2505
|
LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should use large_text_fields as the table name.
|
@@ -1704,11 +2509,11 @@ LargeTextField::NamedTextValueTest: test_: LargeTextField::NamedTextValue should
|
|
1704
2509
|
-------------------------------------------------------------------------------------------------------
|
1705
2510
|
LargeTextField::NamedTextValueTest: test_: unique index should allow different owners and field names.
|
1706
2511
|
-------------------------------------------------------------------------------------------------------
|
1707
|
-
[1m[36m (0.
|
1708
|
-
[1m[35mSQL (0.
|
1709
|
-
[1m[36m (0.
|
2512
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2513
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
2514
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1710
2515
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1711
|
-
[1m[36mSQL (0.
|
2516
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Alexandria"]]
|
1712
2517
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1713
2518
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1714
2519
|
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?) [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 1], ["owner_type", "Library"]]
|
@@ -1716,10 +2521,10 @@ LargeTextField::NamedTextValueTest: test_: unique index should allow different o
|
|
1716
2521
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1717
2522
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?)[0m [["field_name", "dog"], ["value", "Wiki"], ["owner_id", 1], ["owner_type", "Library"]]
|
1718
2523
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1719
|
-
[1m[36m (0.
|
2524
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1720
2525
|
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("field_name", "value", "owner_id", "owner_type") VALUES (?, ?, ?, ?) [["field_name", "puppy"], ["value", "Millie"], ["owner_id", 2], ["owner_type", "Library"]]
|
1721
2526
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1722
|
-
[1m[35m (
|
2527
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
1723
2528
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1724
2529
|
------------------------------------------------------------------------------------------------------------------------------------
|
1725
2530
|
LargeTextField::NamedTextValueTest: test_: unique index should raise a unique constraint failure on the same owner, and field name.
|
@@ -1735,14 +2540,45 @@ LargeTextField::NamedTextValueTest: test_: unique index should raise a unique co
|
|
1735
2540
|
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1736
2541
|
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
1737
2542
|
[1m[35m (0.0ms)[0m begin transaction
|
2543
|
+
---------------------------------------------------------------------------------------------------
|
2544
|
+
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to construct a library.
|
2545
|
+
---------------------------------------------------------------------------------------------------
|
2546
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2547
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Alexandria Public Library"]]
|
2548
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2549
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2550
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", " The Royal Library of Alexandria or Ancient Library of Alexandria in Alexandria, Egypt, was one of the\n largest and most significant libraries of the ancient world. It was dedicated to the Muses, the nine\n goddesses of the arts.[1] It flourished under the patronage of the Ptolemaic dynasty and functioned\n as a major center of scholarship from its construction in the 3rd century BCE until the Roman conquest\n of Egypt in 30 BCE, with collections of works, lecture halls, meeting rooms, and gardens. The library\n was part of a larger research institution called the Musaeum of Alexandria, where many of the most\n famous thinkers of the ancient world studied.\n\n The library was created by Ptolemy I Soter, who was a Macedonian general and the successor of Alexander\n the Great.[2] Most of the books were kept as papyrus scrolls. It is unknown how many such scrolls were\n housed at any given time.\n\n The library is famous for having been burned down, resulting in the loss of many scrolls and books; its\n destruction has become a symbol for the loss of cultural knowledge. A few sources differ on who is\n responsible for the destruction and when it occurred. There is mythology regarding this main burning\n but the library may in truth have suffered several fires or other acts of destruction over many years.\n Possible occasions for the partial or complete destruction of the Library of Alexandria include a fire\n set by Julius Caesar in 48 BCE and an attack by Aurelian in the CE 270s.\n\n After the main library was fully destroyed, ancient scholars used a \"daughter library\" in a temple known\n as the Serapeum, located in another part of the city. According to Socrates of Constantinople, Coptic Pope\n Theophilus destroyed the Serapeum in AD 391, although it's not certain that it still contained an offshoot\n of the library then.\n"]]
|
2551
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2552
|
+
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
2553
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.1ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
2554
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
2555
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2556
|
+
--------------------------------------------------------------------------------------------------------------------------------
|
2557
|
+
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to dup a class that has no current large text field.
|
2558
|
+
--------------------------------------------------------------------------------------------------------------------------------
|
2559
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2560
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1738
2561
|
----------------------------------------------------------------------------------------------------------
|
1739
2562
|
LargeTextField::OwnerTest: test_: a large text field should allow a custom maximum length to be provided.
|
1740
2563
|
----------------------------------------------------------------------------------------------------------
|
1741
|
-
[1m[36m (0.
|
2564
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1742
2565
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1743
2566
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1744
|
-
[1m[35m (0.
|
2567
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
1745
2568
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2569
|
+
--------------------------------------------------------------------------------------------------------------
|
2570
|
+
LargeTextField::OwnerTest: test_: a large text field should allow a single argument to be passed into reload.
|
2571
|
+
--------------------------------------------------------------------------------------------------------------
|
2572
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2573
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
2574
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2575
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2576
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Cambridge University Library"]]
|
2577
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "in england"], ["owner_id", 2]]
|
2578
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2579
|
+
[1m[36mLibrary Load (0.1ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [0m [["id", 2]]
|
2580
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
2581
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1746
2582
|
---------------------------------------------------------------------------------------------------
|
1747
2583
|
LargeTextField::OwnerTest: test_: a large text field should allow for concurrent sets and deletes.
|
1748
2584
|
---------------------------------------------------------------------------------------------------
|
@@ -1754,26 +2590,26 @@ LargeTextField::OwnerTest: test_: a large text field should allow for concurrent
|
|
1754
2590
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"]]
|
1755
2591
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1756
2592
|
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
1757
|
-
[1m[35mLargeTextField::NamedTextValue Load (0.
|
2593
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1758
2594
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1759
2595
|
[1m[35mSQL (0.1ms)[0m DELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ? [["id", 2]]
|
1760
|
-
[1m[36mSQL (0.
|
2596
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "large_text_fields" SET "value" = ? WHERE "large_text_fields"."id" = ?[0m [["value", "third"], ["id", 1]]
|
1761
2597
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1762
|
-
[1m[36m (
|
2598
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
1763
2599
|
[1m[35m (0.0ms)[0m begin transaction
|
1764
2600
|
------------------------------------------------------------------------------------------------------
|
1765
2601
|
LargeTextField::OwnerTest: test_: a large text field should allow get and set with saves and deletes.
|
1766
2602
|
------------------------------------------------------------------------------------------------------
|
1767
2603
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1768
|
-
[1m[35mSQL (0.
|
1769
|
-
[1m[36m (0.
|
1770
|
-
[1m[35m (0.
|
1771
|
-
[1m[36mSQL (0.
|
1772
|
-
[1m[35m (0.
|
1773
|
-
[1m[36mLibrary Load (0.
|
1774
|
-
[1m[35mLargeTextField::NamedTextValue Load (0.
|
1775
|
-
[1m[36m (0.
|
1776
|
-
[1m[35mSQL (0.
|
2604
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
2605
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2606
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2607
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger badger "]]
|
2608
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2609
|
+
[1m[36mLibrary Load (0.1ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
2610
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.1ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
2611
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2612
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "large_text_fields" SET "value" = ? WHERE "large_text_fields"."id" = ? [["value", "mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom mushroom "], ["id", 1]]
|
1777
2613
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1778
2614
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1779
2615
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
@@ -1782,7 +2618,7 @@ LargeTextField::OwnerTest: test_: a large text field should allow get and set wi
|
|
1782
2618
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1783
2619
|
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
1784
2620
|
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1785
|
-
[1m[36m (
|
2621
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
1786
2622
|
[1m[35m (0.0ms)[0m begin transaction
|
1787
2623
|
----------------------------------------------------------------------------------------
|
1788
2624
|
LargeTextField::OwnerTest: test_: a large text field should be able to be eager loaded.
|
@@ -1792,7 +2628,7 @@ LargeTextField::OwnerTest: test_: a large text field should be able to be eager
|
|
1792
2628
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1793
2629
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1794
2630
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
1795
|
-
[1m[35mSQL (0.
|
2631
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"]]
|
1796
2632
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1797
2633
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1798
2634
|
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_type" = 'Library' AND "large_text_fields"."owner_id" IN (1)[0m
|
@@ -1805,7 +2641,7 @@ LargeTextField::OwnerTest: test_: a large text field should be able to update de
|
|
1805
2641
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1806
2642
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1807
2643
|
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1808
|
-
[1m[35m (0.
|
2644
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1809
2645
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
1810
2646
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1811
2647
|
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
@@ -1815,14 +2651,14 @@ LargeTextField::OwnerTest: test_: a large text field should be able to update de
|
|
1815
2651
|
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1816
2652
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1817
2653
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
1818
|
-
[1m[35m (0.
|
1819
|
-
[1m[36m (0.
|
2654
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2655
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1820
2656
|
[1m[35m (0.0ms)[0m begin transaction
|
1821
2657
|
---------------------------------------------------------------------------------------------------
|
1822
2658
|
LargeTextField::OwnerTest: test_: a large text field should be cloned with the rest of the record.
|
1823
2659
|
---------------------------------------------------------------------------------------------------
|
1824
2660
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1825
|
-
[1m[35mSQL (0.
|
2661
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1826
2662
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1827
2663
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1828
2664
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
@@ -1830,21 +2666,21 @@ LargeTextField::OwnerTest: test_: a large text field should be cloned with the r
|
|
1830
2666
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1831
2667
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1832
2668
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1833
|
-
[1m[35mSQL (0.
|
2669
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "description"], ["value", "first"], ["owner_id", 2]]
|
1834
2670
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "catalog"], ["value", "second"], ["owner_id", 2]]
|
1835
2671
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1836
2672
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1837
2673
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1838
2674
|
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
1839
|
-
[1m[35mLargeTextField::NamedTextValue Load (0.
|
2675
|
+
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1840
2676
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1841
2677
|
[1m[35mSQL (0.0ms)[0m DELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ? [["id", 3]]
|
1842
2678
|
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 4]]
|
1843
|
-
[1m[35mSQL (0.
|
2679
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "libraries" WHERE "libraries"."id" = ? [["id", 2]]
|
1844
2680
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1845
2681
|
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."id" = ? LIMIT 1 [["id", 3]]
|
1846
2682
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."id" = ? LIMIT 1[0m [["id", 4]]
|
1847
|
-
[1m[35m (0.
|
2683
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
1848
2684
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1849
2685
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------
|
1850
2686
|
LargeTextField::OwnerTest: test_: a large text field should declare the association when it is first described and other meta data when it is first defined.
|
@@ -1852,8 +2688,8 @@ LargeTextField::OwnerTest: test_: a large text field should declare the associat
|
|
1852
2688
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1853
2689
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1854
2690
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1855
|
-
[1m[36m (
|
1856
|
-
[1m[35m (0.
|
2691
|
+
[1m[36m (1.3ms)[0m [1mrollback transaction[0m
|
2692
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1857
2693
|
------------------------------------------------------------------------------------------------------
|
1858
2694
|
LargeTextField::OwnerTest: test_: a large text field should delete fields when they are set to blank.
|
1859
2695
|
------------------------------------------------------------------------------------------------------
|
@@ -1862,10 +2698,10 @@ LargeTextField::OwnerTest: test_: a large text field should delete fields when t
|
|
1862
2698
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1863
2699
|
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1864
2700
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1865
|
-
[1m[35mSQL (0.
|
2701
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?) [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", "first"]]
|
1866
2702
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1867
2703
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
1868
|
-
[1m[36mLargeTextField::NamedTextValue Load (0.
|
2704
|
+
[1m[36mLargeTextField::NamedTextValue Load (0.1ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
1869
2705
|
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
1870
2706
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1871
2707
|
[1m[35mSQL (0.0ms)[0m DELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ? [["id", 1]]
|
@@ -1883,16 +2719,16 @@ LargeTextField::OwnerTest: test_: a large text field should delete large text fi
|
|
1883
2719
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1884
2720
|
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "large_text_fields"
|
1885
2721
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1886
|
-
[1m[35mSQL (0.
|
2722
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Cambridge University Library"]]
|
1887
2723
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "in england"], ["owner_id", 2]]
|
1888
2724
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1889
|
-
[1m[36m (0.
|
2725
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields"[0m
|
1890
2726
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1891
2727
|
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "large_text_fields" WHERE "large_text_fields"."id" = ?[0m [["id", 1]]
|
1892
|
-
[1m[35mSQL (0.
|
2728
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "libraries" WHERE "libraries"."id" = ? [["id", 2]]
|
1893
2729
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1894
2730
|
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "large_text_fields"
|
1895
|
-
[1m[36m (0.
|
2731
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
1896
2732
|
[1m[35m (0.0ms)[0m begin transaction
|
1897
2733
|
--------------------------------------------------------------------------------------------------------------------
|
1898
2734
|
LargeTextField::OwnerTest: test_: a large text field should detect changes when @text_field_hash hash is/not empty.
|
@@ -1906,7 +2742,7 @@ LargeTextField::OwnerTest: test_: a large text field should detect changes when
|
|
1906
2742
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1907
2743
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
1908
2744
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
1909
|
-
[1m[35m (
|
2745
|
+
[1m[35m (1.4ms)[0m rollback transaction
|
1910
2746
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1911
2747
|
--------------------------------------------------------------------------------------------------------
|
1912
2748
|
LargeTextField::OwnerTest: test_: a large text field should forget about changes if they are not saved.
|
@@ -1929,13 +2765,13 @@ LargeTextField::OwnerTest: test_: a large text field should forget about changes
|
|
1929
2765
|
LargeTextField::OwnerTest: test_: a large text field should not save fields that are set to blank.
|
1930
2766
|
---------------------------------------------------------------------------------------------------
|
1931
2767
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1932
|
-
[1m[36mSQL (0.
|
2768
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1933
2769
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1934
2770
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1935
2771
|
[1m[35mSQL (0.0ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Millie"]]
|
1936
|
-
[1m[36mSQL (0.
|
1937
|
-
[1m[35m (0.
|
1938
|
-
[1m[36mLibrary Load (0.
|
2772
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "first"], ["owner_id", 2]]
|
2773
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2774
|
+
[1m[36mLibrary Load (0.1ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 2]]
|
1939
2775
|
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 2], ["owner_type", "Library"]]
|
1940
2776
|
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
1941
2777
|
[1m[35m (0.9ms)[0m rollback transaction
|
@@ -1944,9 +2780,9 @@ LargeTextField::OwnerTest: test_: a large text field should not save fields that
|
|
1944
2780
|
LargeTextField::OwnerTest: test_: a large text field should only validate_large_text_fields if loaded.
|
1945
2781
|
-------------------------------------------------------------------------------------------------------
|
1946
2782
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1947
|
-
[1m[36mSQL (0.
|
1948
|
-
[1m[35m (
|
1949
|
-
[1m[36m (
|
2783
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
2784
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2785
|
+
[1m[36m (1.3ms)[0m [1mrollback transaction[0m
|
1950
2786
|
[1m[35m (0.0ms)[0m begin transaction
|
1951
2787
|
-----------------------------------------------------------------------------------------------------------------------------------------------
|
1952
2788
|
LargeTextField::OwnerTest: test_: a large text field should prevent a custom maximum length to be provided that is not in the allowable range.
|
@@ -1954,7 +2790,7 @@ LargeTextField::OwnerTest: test_: a large text field should prevent a custom max
|
|
1954
2790
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1955
2791
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1956
2792
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1957
|
-
[1m[35m (1.
|
2793
|
+
[1m[35m (1.3ms)[0m rollback transaction
|
1958
2794
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1959
2795
|
-----------------------------------------------------------------------------------------------------------------------
|
1960
2796
|
LargeTextField::OwnerTest: test_: a large text field should prevent a non-Integer to be provided for a custom maximum.
|
@@ -1962,13 +2798,13 @@ LargeTextField::OwnerTest: test_: a large text field should prevent a non-Intege
|
|
1962
2798
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1963
2799
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1964
2800
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1965
|
-
[1m[36m (1.
|
1966
|
-
[1m[35m (0.
|
2801
|
+
[1m[36m (1.5ms)[0m [1mrollback transaction[0m
|
2802
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1967
2803
|
------------------------------------------------------------------------------
|
1968
2804
|
LargeTextField::OwnerTest: test_: a large text field should read from a file.
|
1969
2805
|
------------------------------------------------------------------------------
|
1970
2806
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1971
|
-
[1m[35mSQL (0.
|
2807
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
1972
2808
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1973
2809
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1974
2810
|
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
@@ -1978,14 +2814,14 @@ LargeTextField::OwnerTest: test_: a large text field should read from a file.
|
|
1978
2814
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1979
2815
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
1980
2816
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
1981
|
-
[1m[35m (0.
|
2817
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1982
2818
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1983
2819
|
------------------------------------------------------------------------------------------------------------------
|
1984
2820
|
LargeTextField::OwnerTest: test_: a large text field should reload changes when they come from a different model.
|
1985
2821
|
------------------------------------------------------------------------------------------------------------------
|
1986
2822
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1987
2823
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
1988
|
-
[1m[35m (0.
|
2824
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1989
2825
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1990
2826
|
[1m[35mSQL (0.0ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Cambridge University Library"]]
|
1991
2827
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?)[0m [["owner_type", "Library"], ["field_name", "description"], ["value", "in england"], ["owner_id", 2]]
|
@@ -1997,23 +2833,23 @@ LargeTextField::OwnerTest: test_: a large text field should reload changes when
|
|
1997
2833
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1998
2834
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 2]]
|
1999
2835
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 2], ["owner_type", "Library"]]
|
2000
|
-
[1m[35m (
|
2001
|
-
[1m[36m (0.
|
2836
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
2837
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2002
2838
|
-------------------------------------------------------------------------------------------------
|
2003
2839
|
LargeTextField::OwnerTest: test_: a large text field should singularize the errors if requested.
|
2004
2840
|
-------------------------------------------------------------------------------------------------
|
2005
2841
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2006
2842
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
2007
2843
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2008
|
-
[1m[36m (1.
|
2844
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
2009
2845
|
[1m[35m (0.0ms)[0m begin transaction
|
2010
2846
|
------------------------------------------------------------------------------------------------------------
|
2011
2847
|
LargeTextField::OwnerTest: test_: a large text field should support strings or symbols for get/set methods.
|
2012
2848
|
------------------------------------------------------------------------------------------------------------
|
2013
2849
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2014
|
-
[1m[35mSQL (0.
|
2850
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
2015
2851
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2016
|
-
[1m[35m (
|
2852
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
2017
2853
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2018
2854
|
-----------------------------------------------------------------------------------------
|
2019
2855
|
LargeTextField::OwnerTest: test_: a large text field should validate the maximum length.
|
@@ -2021,51 +2857,37 @@ LargeTextField::OwnerTest: test_: a large text field should validate the maximum
|
|
2021
2857
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2022
2858
|
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
2023
2859
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2024
|
-
[1m[36m (
|
2860
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
2025
2861
|
[1m[35m (0.0ms)[0m begin transaction
|
2026
2862
|
----------------------------------------------------------------------------------------------------------------
|
2027
2863
|
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should be able to assign empty string.
|
2028
2864
|
----------------------------------------------------------------------------------------------------------------
|
2029
2865
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2030
|
-
[1m[35mSQL (0.
|
2866
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "libraries" ("name") VALUES (?) [["name", "Smithsonian"]]
|
2031
2867
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2032
2868
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
2033
2869
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
2034
|
-
[1m[35m (1.
|
2035
|
-
[1m[36m (0.
|
2870
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
2871
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2036
2872
|
--------------------------------------------------------------------------------------------------------------------
|
2037
2873
|
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should be able to assign non empty string.
|
2038
2874
|
--------------------------------------------------------------------------------------------------------------------
|
2039
2875
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2040
|
-
[1m[36mSQL (0.
|
2876
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Smithsonian"]]
|
2041
2877
|
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "notes"], ["value", "this is some text"], ["owner_id", 1]]
|
2042
2878
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2043
2879
|
[1m[35mLibrary Load (0.0ms)[0m SELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1 [["id", 1]]
|
2044
2880
|
[1m[36mLargeTextField::NamedTextValue Load (0.0ms)[0m [1mSELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ?[0m [["owner_id", 1], ["owner_type", "Library"]]
|
2045
2881
|
[1m[35m (0.8ms)[0m rollback transaction
|
2046
|
-
[1m[36m (0.
|
2882
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2047
2883
|
-----------------------------------------------------------------------------------------------------------------
|
2048
2884
|
LargeTextField::OwnerTest: test_: updating in large_text_field_save hook should raise error on saving nil value.
|
2049
2885
|
-----------------------------------------------------------------------------------------------------------------
|
2050
2886
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2051
2887
|
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2052
2888
|
[1m[35m (0.0ms)[0m rollback transaction
|
2053
|
-
[1m[36m (0.
|
2054
|
-
|
2055
|
-
|
2056
|
-
|
2057
|
-
[1m[35m (0.0ms)[0m
|
2058
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "libraries" ("name") VALUES (?)[0m [["name", "Alexandria Public Library"]]
|
2059
|
-
[1m[35mSQL (0.1ms)[0m INSERT INTO "large_text_fields" ("owner_type", "field_name", "value", "owner_id") VALUES (?, ?, ?, ?) [["owner_type", "Library"], ["field_name", "notes"], ["value", "none_set"], ["owner_id", 1]]
|
2060
|
-
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2061
|
-
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2062
|
-
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "large_text_fields" ("owner_id", "owner_type", "field_name", "value") VALUES (?, ?, ?, ?)[0m [["owner_id", 1], ["owner_type", "Library"], ["field_name", "description"], ["value", " The Royal Library of Alexandria or Ancient Library of Alexandria in Alexandria, Egypt, was one of the\n largest and most significant libraries of the ancient world. It was dedicated to the Muses, the nine\n goddesses of the arts.[1] It flourished under the patronage of the Ptolemaic dynasty and functioned\n as a major center of scholarship from its construction in the 3rd century BCE until the Roman conquest\n of Egypt in 30 BCE, with collections of works, lecture halls, meeting rooms, and gardens. The library\n was part of a larger research institution called the Musaeum of Alexandria, where many of the most\n famous thinkers of the ancient world studied.\n\n The library was created by Ptolemy I Soter, who was a Macedonian general and the successor of Alexander\n the Great.[2] Most of the books were kept as papyrus scrolls. It is unknown how many such scrolls were\n housed at any given time.\n\n The library is famous for having been burned down, resulting in the loss of many scrolls and books; its\n destruction has become a symbol for the loss of cultural knowledge. A few sources differ on who is\n responsible for the destruction and when it occurred. There is mythology regarding this main burning\n but the library may in truth have suffered several fires or other acts of destruction over many years.\n Possible occasions for the partial or complete destruction of the Library of Alexandria include a fire\n set by Julius Caesar in 48 BCE and an attack by Aurelian in the CE 270s.\n\n After the main library was fully destroyed, ancient scholars used a \"daughter library\" in a temple known\n as the Serapeum, located in another part of the city. According to Socrates of Constantinople, Coptic Pope\n Theophilus destroyed the Serapeum in AD 391, although it's not certain that it still contained an offshoot\n of the library then.\n"]]
|
2063
|
-
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2064
|
-
[1m[36mLibrary Load (0.0ms)[0m [1mSELECT "libraries".* FROM "libraries" WHERE "libraries"."id" = ? LIMIT 1[0m [["id", 1]]
|
2065
|
-
[1m[35mLargeTextField::NamedTextValue Load (0.0ms)[0m SELECT "large_text_fields".* FROM "large_text_fields" WHERE "large_text_fields"."owner_id" = ? AND "large_text_fields"."owner_type" = ? [["owner_id", 1], ["owner_type", "Library"]]
|
2066
|
-
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
2067
|
-
[1m[35m (0.0ms)[0m begin transaction
|
2068
|
-
--------------------------------------------------------------------------------------------------------------------------------
|
2069
|
-
LargeTextField::LibraryTest: test_: LargeTextField::Library should be able to dup a class that has no current large text field.
|
2070
|
-
--------------------------------------------------------------------------------------------------------------------------------
|
2071
|
-
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2889
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2890
|
+
------------------------------
|
2891
|
+
LargeTextFieldTest: test_truth
|
2892
|
+
------------------------------
|
2893
|
+
[1m[35m (0.0ms)[0m rollback transaction
|