aac_translation 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aac_translation/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +521 -33
- metadata +22 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c428d3487e619a028cbc1131b5275d2d10b8d510
|
4
|
+
data.tar.gz: a7813610508f13f14cc9b5c19271ea5d9fb03c0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d897c08d2d3e4d49f49e54f072ca50177fc3dfe18d03e1501ebb3ac7fbb2545d8aa12c4068af23aa05fade85fecac3bdd545f4174d3e787d16d55d94cc49a0a3
|
7
|
+
data.tar.gz: 170a6f44c547b19f034fa4ea82ea5ae906baf84b410d6be126e0e6f48b4108032f453291069d56e3a5ddeca1ec532929109c09ea0994bd26666af70168f2984d
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -1,23 +1,134 @@
|
|
1
|
-
[1m[36m (1.
|
2
|
-
[1m[35m (0.
|
3
|
-
[1m[36m (
|
4
|
-
[1m[35m (1.
|
5
|
-
[1m[36m (
|
6
|
-
[1m[35m (
|
7
|
-
[1m[36m (
|
8
|
-
[1m[35m (0.
|
9
|
-
[1m[36m (
|
1
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "translation_keys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
2
|
+
[1m[35m (0.4ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (1.3ms)[0m [1mCREATE INDEX "index_translation_keys_on_key" ON "translation_keys" ("key")[0m
|
4
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "translation_texts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "locale" varchar, "translation_key_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime)
|
5
|
+
[1m[36m (1.3ms)[0m [1mCREATE INDEX "index_translation_texts_on_translation_key_id" ON "translation_texts" ("translation_key_id")[0m
|
6
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
7
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
8
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
9
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151013115212')[0m
|
10
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12
|
+
-------------------------------------------------------------------------------------
|
13
|
+
AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
|
14
|
+
-------------------------------------------------------------------------------------
|
15
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
17
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
18
|
+
[1m[35mTranslationKey Load (0.3ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
|
19
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
20
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
21
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
22
|
+
--------------------------------------------------
|
23
|
+
AacTranslationTest: test_Return_value_from_fixture
|
24
|
+
--------------------------------------------------
|
25
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
26
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
27
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
28
|
+
[1m[36mTranslationKey Load (0.1ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1[0m [["key", "main.title"]]
|
29
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
30
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
31
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33
|
+
[1m[36mFixture Delete (1.1ms)[0m [1mDELETE FROM "translation_keys"[0m
|
34
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO "translation_keys" ("id", "locale", "translation_text", "created_at", "updated_at") VALUES (1, 'en', 'main_title', '2015-10-15 08:16:22', '2015-10-15 08:16:22')
|
35
|
+
SQLite3::SQLException: table translation_keys has no column named locale: INSERT INTO "translation_keys" ("id", "locale", "translation_text", "created_at", "updated_at") VALUES (1, 'en', 'main_title', '2015-10-15 08:16:22', '2015-10-15 08:16:22')
|
36
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
37
|
+
[1m[35m (0.2ms)[0m begin transaction
|
38
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "translation_keys"[0m
|
39
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "translation_keys" ("id", "locale", "translation_text", "created_at", "updated_at") VALUES (1, 'en', 'main_title', '2015-10-15 08:16:22', '2015-10-15 08:16:22')
|
40
|
+
SQLite3::SQLException: table translation_keys has no column named locale: INSERT INTO "translation_keys" ("id", "locale", "translation_text", "created_at", "updated_at") VALUES (1, 'en', 'main_title', '2015-10-15 08:16:22', '2015-10-15 08:16:22')
|
41
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
42
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
43
|
+
[1m[35m (0.1ms)[0m begin transaction
|
44
|
+
[1m[36mFixture Delete (1.1ms)[0m [1mDELETE FROM "translation_keys"[0m
|
45
|
+
[1m[35mFixture Insert (0.6ms)[0m INSERT INTO "translation_keys" ("id", "key", "created_at", "updated_at") VALUES (1, 'main.title', '2015-10-15 08:17:26', '2015-10-15 08:17:26')
|
46
|
+
[1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "translation_texts"[0m
|
47
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "translation_texts" ("id", "locale", "translation_text", "created_at", "updated_at") VALUES (1, 'en', 'main_title', '2015-10-15 08:17:26', '2015-10-15 08:17:26')
|
48
|
+
SQLite3::SQLException: table translation_texts has no column named translation_text: INSERT INTO "translation_texts" ("id", "locale", "translation_text", "created_at", "updated_at") VALUES (1, 'en', 'main_title', '2015-10-15 08:17:26', '2015-10-15 08:17:26')
|
49
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
50
|
+
[1m[35m (0.1ms)[0m begin transaction
|
51
|
+
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "translation_keys"[0m
|
52
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_keys" ("id", "key", "created_at", "updated_at") VALUES (1, 'main.title', '2015-10-15 08:17:26', '2015-10-15 08:17:26')
|
53
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "translation_texts"[0m
|
54
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_texts" ("id", "locale", "translation_text", "created_at", "updated_at") VALUES (1, 'en', 'main_title', '2015-10-15 08:17:26', '2015-10-15 08:17:26')
|
55
|
+
SQLite3::SQLException: table translation_texts has no column named translation_text: INSERT INTO "translation_texts" ("id", "locale", "translation_text", "created_at", "updated_at") VALUES (1, 'en', 'main_title', '2015-10-15 08:17:26', '2015-10-15 08:17:26')
|
56
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
10
57
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11
58
|
[1m[35m (0.1ms)[0m begin transaction
|
59
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "translation_keys"[0m
|
60
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_keys" ("id", "key", "created_at", "updated_at") VALUES (1, 'main.title', '2015-10-15 08:19:33', '2015-10-15 08:19:33')
|
61
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "translation_texts"[0m
|
62
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_texts" ("id", "locale", "text", "created_at", "updated_at", "translation_key_id") VALUES (1, 'en', 'My title', '2015-10-15 08:19:33', '2015-10-15 08:19:33', 141216559)
|
63
|
+
[1m[36m (9.2ms)[0m [1mcommit transaction[0m
|
64
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12
65
|
--------------------------------------------------
|
13
66
|
AacTranslationTest: test_Return_value_from_fixture
|
14
67
|
--------------------------------------------------
|
68
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
69
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
15
70
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16
|
-
[1m[
|
17
|
-
[1m[
|
18
|
-
[1m[
|
71
|
+
[1m[35mTranslationText Load (0.3ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 1]]
|
72
|
+
[1m[36mTranslationKey Load (0.2ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1[0m [["key", "main.title"]]
|
73
|
+
[1m[35mTranslationText Load (0.2ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 1], ["locale", "en"]]
|
74
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
75
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
76
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
77
|
+
-------------------------------------------------------------------------------------
|
78
|
+
AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
|
79
|
+
-------------------------------------------------------------------------------------
|
80
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
81
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
82
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
83
|
+
[1m[36mTranslationKey Load (0.1ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1[0m [["key", "main.lorem.ipsum"]]
|
84
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
85
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
86
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
87
|
+
[1m[35m (0.1ms)[0m begin transaction
|
88
|
+
[1m[36mFixture Delete (1.2ms)[0m [1mDELETE FROM "translation_keys"[0m
|
89
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:20:54', '2015-10-15 08:20:54', 141216559)
|
90
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "translation_texts"[0m
|
91
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:20:54', '2015-10-15 08:20:54', 141216559, 141216559)
|
92
|
+
[1m[36m (9.0ms)[0m [1mcommit transaction[0m
|
93
|
+
[1m[35m (0.1ms)[0m begin transaction
|
94
|
+
-------------------------------------------------------------------------------------
|
95
|
+
AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
|
96
|
+
-------------------------------------------------------------------------------------
|
97
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
98
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
99
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
100
|
+
[1m[35mTranslationKey Load (0.3ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
|
101
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
102
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
103
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
104
|
+
--------------------------------------------------
|
105
|
+
AacTranslationTest: test_Return_value_from_fixture
|
106
|
+
--------------------------------------------------
|
107
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
108
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
109
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
110
|
+
[1m[36mTranslationText Load (0.3ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1[0m [["id", 141216559]]
|
111
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
112
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
113
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
114
|
+
[1m[35m (0.1ms)[0m begin transaction
|
115
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "translation_keys"[0m
|
116
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:21:01', '2015-10-15 08:21:01', 141216559)
|
117
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "translation_texts"[0m
|
118
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:21:01', '2015-10-15 08:21:01', 141216559, 141216559)
|
119
|
+
[1m[36m (9.3ms)[0m [1mcommit transaction[0m
|
120
|
+
[1m[35m (0.1ms)[0m begin transaction
|
121
|
+
--------------------------------------------------
|
122
|
+
AacTranslationTest: test_Return_value_from_fixture
|
123
|
+
--------------------------------------------------
|
124
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
125
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
126
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
127
|
+
[1m[35mTranslationText Load (0.3ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
|
128
|
+
[1m[36mTranslationKey Load (0.2ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1[0m [["key", "main.title"]]
|
129
|
+
[1m[35mTranslationText Load (0.2ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
|
19
130
|
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
20
|
-
[1m[35m (0.
|
131
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
21
132
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
22
133
|
-------------------------------------------------------------------------------------
|
23
134
|
AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
|
@@ -28,48 +139,425 @@ AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_t
|
|
28
139
|
[1m[36mTranslationKey Load (0.1ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1[0m [["key", "main.lorem.ipsum"]]
|
29
140
|
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
30
141
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
31
|
-
[1m[36mActiveRecord::SchemaMigration Load (0.
|
32
|
-
[1m[35m (0.1ms)[0m begin transaction
|
33
|
-
[1m[36mFixture Delete (
|
34
|
-
[1m[35mFixture Insert (0.
|
35
|
-
[1m[36mFixture
|
36
|
-
[1m[35mFixture
|
37
|
-
[1m[
|
38
|
-
[1m[
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
AacTranslationTest: test_Sanitizes_HTML
|
43
|
-
---------------------------------------
|
142
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
143
|
+
[1m[35m (0.1ms)[0m begin transaction
|
144
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "translation_keys"[0m
|
145
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:21:27', '2015-10-15 08:21:27', 141216559)
|
146
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "translation_texts"[0m
|
147
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:21:27', '2015-10-15 08:21:27', 141216559, 141216559)
|
148
|
+
[1m[36m (8.1ms)[0m [1mcommit transaction[0m
|
149
|
+
[1m[35m (0.1ms)[0m begin transaction
|
150
|
+
--------------------------------------------------
|
151
|
+
AacTranslationTest: test_Return_value_from_fixture
|
152
|
+
--------------------------------------------------
|
44
153
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
45
154
|
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
155
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
156
|
+
[1m[35mTranslationText Load (0.3ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
|
157
|
+
[1m[36mTranslationKey Load (0.1ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1[0m [["key", "main.title"]]
|
158
|
+
[1m[35mTranslationText Load (0.1ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
|
159
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
160
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
161
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
162
|
+
-------------------------------------------------------------------------------------
|
163
|
+
AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
|
164
|
+
-------------------------------------------------------------------------------------
|
165
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
166
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
167
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
168
|
+
[1m[36mTranslationKey Load (0.1ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1[0m [["key", "main.lorem.ipsum"]]
|
169
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
170
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
171
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
172
|
+
[1m[35m (0.1ms)[0m begin transaction
|
173
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "translation_keys"[0m
|
174
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:22:21', '2015-10-15 08:22:21', 141216559)
|
175
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "translation_texts"[0m
|
176
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:22:21', '2015-10-15 08:22:21', 141216559, 141216559)
|
177
|
+
[1m[36m (9.4ms)[0m [1mcommit transaction[0m
|
178
|
+
[1m[35m (0.1ms)[0m begin transaction
|
179
|
+
--------------------------------------------------
|
180
|
+
AacTranslationTest: test_Return_value_from_fixture
|
181
|
+
--------------------------------------------------
|
182
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
183
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
184
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
185
|
+
[1m[35mTranslationText Load (0.3ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
|
186
|
+
[1m[36mTranslationKey Load (0.1ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1[0m [["key", "main.title"]]
|
187
|
+
[1m[35mTranslationText Load (0.2ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
|
188
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
189
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
190
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
191
|
+
-------------------------------------------------------------------------------------
|
192
|
+
AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
|
193
|
+
-------------------------------------------------------------------------------------
|
194
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
195
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
196
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
197
|
+
[1m[36mTranslationKey Load (0.1ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1[0m [["key", "main.lorem.ipsum"]]
|
198
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
199
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
200
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
201
|
+
[1m[35m (0.1ms)[0m begin transaction
|
202
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "translation_keys"[0m
|
203
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:22:37', '2015-10-15 08:22:37', 141216559)
|
204
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "translation_texts"[0m
|
205
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:22:37', '2015-10-15 08:22:37', 141216559, 141216559)
|
206
|
+
[1m[36m (9.4ms)[0m [1mcommit transaction[0m
|
207
|
+
[1m[35m (0.1ms)[0m begin transaction
|
208
|
+
--------------------------------------------------
|
209
|
+
AacTranslationTest: test_Return_value_from_fixture
|
210
|
+
--------------------------------------------------
|
211
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
212
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
213
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
214
|
+
[1m[35mTranslationText Load (0.4ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
|
215
|
+
[1m[36mTranslationKey Load (0.2ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1[0m [["key", "main.title"]]
|
216
|
+
[1m[35mTranslationText Load (0.2ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
|
217
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
218
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
219
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
220
|
+
-------------------------------------------------------------------------------------
|
221
|
+
AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
|
222
|
+
-------------------------------------------------------------------------------------
|
223
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
224
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
225
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
226
|
+
[1m[36mTranslationKey Load (0.1ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1[0m [["key", "main.lorem.ipsum"]]
|
227
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
228
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
229
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
230
|
+
[1m[35m (0.2ms)[0m begin transaction
|
231
|
+
[1m[36mFixture Delete (1.2ms)[0m [1mDELETE FROM "translation_keys"[0m
|
232
|
+
[1m[35mFixture Insert (0.6ms)[0m INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:39:29', '2015-10-15 08:39:29', 141216559)
|
233
|
+
[1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "translation_texts"[0m
|
234
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:39:29', '2015-10-15 08:39:29', 141216559, 141216559)
|
235
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
236
|
+
[1m[35m (0.1ms)[0m begin transaction
|
237
|
+
-------------------------------------------------------------------------------------
|
238
|
+
AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
|
239
|
+
-------------------------------------------------------------------------------------
|
240
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
241
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
46
242
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
47
|
-
[1m[
|
48
|
-
[1m[
|
49
|
-
[1m[
|
243
|
+
[1m[35mTranslationKey Load (0.3ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
|
244
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
245
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
246
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
247
|
+
--------------------------------------------------
|
248
|
+
AacTranslationTest: test_Return_value_from_fixture
|
249
|
+
--------------------------------------------------
|
250
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
251
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
252
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
253
|
+
[1m[36mTranslationText Load (0.2ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1[0m [["id", 141216559]]
|
254
|
+
[1m[35mTranslationKey Load (0.1ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
|
255
|
+
[1m[36mTranslationText Load (0.3ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1[0m [["translation_key_id", 141216559], ["locale", "en"]]
|
256
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
257
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
258
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
259
|
+
[1m[35m (0.1ms)[0m begin transaction
|
260
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "translation_keys"[0m
|
261
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:43:03', '2015-10-15 08:43:03', 141216559)
|
262
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('html.title', '2015-10-15 08:43:03', '2015-10-15 08:43:03', 89783586)[0m
|
263
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "translation_texts"
|
264
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:43:03', '2015-10-15 08:43:03', 141216559, 141216559)[0m
|
265
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', '<strong>My title</strong>', '2015-10-15 08:43:03', '2015-10-15 08:43:03', 89783586, 89783586)
|
266
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
267
|
+
[1m[35m (0.1ms)[0m begin transaction
|
268
|
+
-------------------------------------------------------------------------------------
|
269
|
+
AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
|
270
|
+
-------------------------------------------------------------------------------------
|
271
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
272
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
273
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
274
|
+
[1m[35mTranslationKey Load (0.3ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
|
275
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
276
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
277
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
278
|
+
----------------------------------------------------
|
279
|
+
AacTranslationTest: test_Sanitizes_html_from_fixture
|
280
|
+
----------------------------------------------------
|
281
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
282
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
283
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
284
|
+
[1m[36mTranslationText Load (0.2ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1[0m [["id", 89783586]]
|
285
|
+
[1m[35mTranslationKey Load (0.1ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "html.title"]]
|
50
286
|
[1m[36mTranslationText Load (0.2ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1[0m [["translation_key_id", 89783586], ["locale", "en"]]
|
51
287
|
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
288
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
289
|
+
[1m[35m (0.0ms)[0m begin transaction
|
290
|
+
--------------------------------------------------
|
291
|
+
AacTranslationTest: test_Return_value_from_fixture
|
292
|
+
--------------------------------------------------
|
293
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
294
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
295
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
296
|
+
[1m[35mTranslationText Load (0.1ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
|
297
|
+
[1m[36mTranslationKey Load (0.0ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1[0m [["key", "main.title"]]
|
298
|
+
[1m[35mTranslationText Load (0.1ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
|
299
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
300
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
301
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
302
|
+
[1m[35m (0.1ms)[0m begin transaction
|
303
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "translation_keys"[0m
|
304
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:43:13', '2015-10-15 08:43:13', 141216559)
|
305
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('html.title', '2015-10-15 08:43:13', '2015-10-15 08:43:13', 89783586)[0m
|
306
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "translation_texts"
|
307
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:43:13', '2015-10-15 08:43:13', 141216559, 141216559)[0m
|
308
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', '<strong>My title</strong>', '2015-10-15 08:43:13', '2015-10-15 08:43:13', 89783586, 89783586)
|
309
|
+
[1m[36m (8.7ms)[0m [1mcommit transaction[0m
|
310
|
+
[1m[35m (0.2ms)[0m begin transaction
|
311
|
+
--------------------------------------------------
|
312
|
+
AacTranslationTest: test_Return_value_from_fixture
|
313
|
+
--------------------------------------------------
|
314
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
315
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
316
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
317
|
+
[1m[35mTranslationText Load (0.3ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
|
318
|
+
[1m[36mTranslationKey Load (0.1ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1[0m [["key", "main.title"]]
|
319
|
+
[1m[35mTranslationText Load (0.2ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
|
320
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
321
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
322
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
323
|
+
----------------------------------------------------
|
324
|
+
AacTranslationTest: test_Sanitizes_html_from_fixture
|
325
|
+
----------------------------------------------------
|
326
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
327
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
328
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
329
|
+
[1m[36mTranslationText Load (0.1ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1[0m [["id", 89783586]]
|
330
|
+
[1m[35mTranslationKey Load (0.0ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "html.title"]]
|
331
|
+
[1m[36mTranslationText Load (0.0ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1[0m [["translation_key_id", 89783586], ["locale", "en"]]
|
332
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
52
333
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
334
|
+
[1m[35m (0.0ms)[0m begin transaction
|
335
|
+
-------------------------------------------------------------------------------------
|
336
|
+
AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
|
337
|
+
-------------------------------------------------------------------------------------
|
338
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
339
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
340
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
341
|
+
[1m[35mTranslationKey Load (0.1ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
|
342
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
343
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
344
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
345
|
+
[1m[35m (0.1ms)[0m begin transaction
|
346
|
+
[1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "translation_keys"[0m
|
347
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:44:45', '2015-10-15 08:44:45', 141216559)
|
348
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('html.title', '2015-10-15 08:44:45', '2015-10-15 08:44:45', 89783586)[0m
|
349
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "translation_texts"
|
350
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:44:45', '2015-10-15 08:44:45', 141216559, 141216559)[0m
|
351
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', '<strong>My title</strong>', '2015-10-15 08:44:45', '2015-10-15 08:44:45', 89783586, 89783586)
|
352
|
+
[1m[36m (8.3ms)[0m [1mcommit transaction[0m
|
353
|
+
[1m[35m (0.1ms)[0m begin transaction
|
354
|
+
--------------------------------------------------
|
355
|
+
AacTranslationTest: test_Return_value_from_fixture
|
356
|
+
--------------------------------------------------
|
357
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
358
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
359
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
360
|
+
[1m[35mTranslationText Load (0.3ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
|
361
|
+
[1m[36mTranslationKey Load (0.1ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1[0m [["key", "main.title"]]
|
362
|
+
[1m[35mTranslationText Load (0.3ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
|
363
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
364
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
365
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
366
|
+
----------------------------------------------------
|
367
|
+
AacTranslationTest: test_Sanitizes_html_from_fixture
|
368
|
+
----------------------------------------------------
|
369
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
370
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
371
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
372
|
+
[1m[36mTranslationText Load (0.3ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1[0m [["id", 89783586]]
|
373
|
+
[1m[35mTranslationKey Load (0.1ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "html.title"]]
|
374
|
+
[1m[36mTranslationText Load (0.1ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1[0m [["translation_key_id", 89783586], ["locale", "en"]]
|
375
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
376
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
377
|
+
[1m[35m (0.1ms)[0m begin transaction
|
378
|
+
-------------------------------------------------------------------------------------
|
379
|
+
AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
|
380
|
+
-------------------------------------------------------------------------------------
|
381
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
382
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
383
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
384
|
+
[1m[35mTranslationKey Load (0.2ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
|
385
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
386
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
387
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
388
|
+
[1m[35m (0.1ms)[0m begin transaction
|
389
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "translation_keys"[0m
|
390
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:45:34', '2015-10-15 08:45:34', 141216559)
|
391
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('html.title', '2015-10-15 08:45:34', '2015-10-15 08:45:34', 89783586)[0m
|
392
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "translation_texts"
|
393
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:45:34', '2015-10-15 08:45:34', 141216559, 141216559)[0m
|
394
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', '<strong>My title</strong>2', '2015-10-15 08:45:34', '2015-10-15 08:45:34', 89783586, 89783586)
|
395
|
+
[1m[36m (8.3ms)[0m [1mcommit transaction[0m
|
53
396
|
[1m[35m (0.1ms)[0m begin transaction
|
54
397
|
--------------------------------------------------
|
55
398
|
AacTranslationTest: test_Return_value_from_fixture
|
56
399
|
--------------------------------------------------
|
400
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
401
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
402
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
403
|
+
[1m[35mTranslationText Load (0.5ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
|
404
|
+
[1m[36mTranslationKey Load (0.2ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1[0m [["key", "main.title"]]
|
405
|
+
[1m[35mTranslationText Load (0.1ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 141216559], ["locale", "en"]]
|
406
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
407
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
408
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
409
|
+
----------------------------------------------------
|
410
|
+
AacTranslationTest: test_Sanitizes_html_from_fixture
|
411
|
+
----------------------------------------------------
|
412
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
413
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
414
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
415
|
+
[1m[36mTranslationText Load (0.1ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1[0m [["id", 89783586]]
|
416
|
+
[1m[35mTranslationKey Load (0.0ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "html.title"]]
|
417
|
+
[1m[36mTranslationText Load (0.0ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1[0m [["translation_key_id", 89783586], ["locale", "en"]]
|
418
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
419
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
420
|
+
[1m[35m (0.0ms)[0m begin transaction
|
421
|
+
-------------------------------------------------------------------------------------
|
422
|
+
AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
|
423
|
+
-------------------------------------------------------------------------------------
|
57
424
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
58
425
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
59
426
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
60
|
-
[1m[
|
61
|
-
[1m[
|
62
|
-
[1m[
|
63
|
-
[1m[
|
427
|
+
[1m[35mTranslationKey Load (0.1ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
|
428
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
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
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "translation_keys"[0m
|
433
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:47:04', '2015-10-15 08:47:04', 141216559)
|
434
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('html.title', '2015-10-15 08:47:04', '2015-10-15 08:47:04', 89783586)[0m
|
435
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "translation_texts"
|
436
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:47:04', '2015-10-15 08:47:04', 141216559, 141216559)[0m
|
437
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', '<strong>My title</strong>2', '2015-10-15 08:47:04', '2015-10-15 08:47:04', 89783586, 89783586)
|
438
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
439
|
+
[1m[35m (0.1ms)[0m begin transaction
|
440
|
+
-------------------------------------------------------------------------------------
|
441
|
+
AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
|
442
|
+
-------------------------------------------------------------------------------------
|
443
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
444
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
445
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
446
|
+
[1m[35mTranslationKey Load (0.3ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
|
447
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
448
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
449
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
450
|
+
--------------------------------------------------
|
451
|
+
AacTranslationTest: test_Return_value_from_fixture
|
452
|
+
--------------------------------------------------
|
453
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
454
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
455
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
456
|
+
[1m[36mTranslationText Load (0.2ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1[0m [["id", 141216559]]
|
457
|
+
[1m[35mTranslationKey Load (0.1ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
|
458
|
+
[1m[36mTranslationText Load (0.2ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1[0m [["translation_key_id", 141216559], ["locale", "en"]]
|
64
459
|
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
65
460
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
66
461
|
[1m[35m (0.1ms)[0m begin transaction
|
462
|
+
---------------------------------------
|
463
|
+
AacTranslationTest: test_Sanitizes_HTML
|
464
|
+
---------------------------------------
|
465
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
466
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
467
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
468
|
+
[1m[35mTranslationText Load (0.1ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 89783586]]
|
469
|
+
[1m[36mTranslationKey Load (0.1ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."id" = ? LIMIT 1[0m [["id", 89783586]]
|
470
|
+
[1m[35mTranslationKey Load (0.1ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "html.title"]]
|
471
|
+
[1m[36mTranslationText Load (0.0ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1[0m [["translation_key_id", 89783586], ["locale", "en"]]
|
472
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
473
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
474
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
475
|
+
[1m[35m (0.1ms)[0m begin transaction
|
476
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "translation_keys"[0m
|
477
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 08:47:32', '2015-10-15 08:47:32', 141216559)
|
478
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('html.title', '2015-10-15 08:47:32', '2015-10-15 08:47:32', 89783586)[0m
|
479
|
+
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "translation_texts"
|
480
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 08:47:32', '2015-10-15 08:47:32', 141216559, 141216559)[0m
|
481
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', '<strong>My title</strong>2', '2015-10-15 08:47:32', '2015-10-15 08:47:32', 89783586, 89783586)
|
482
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
483
|
+
[1m[35m (0.1ms)[0m begin transaction
|
484
|
+
--------------------------------------------------
|
485
|
+
AacTranslationTest: test_Return_value_from_fixture
|
486
|
+
--------------------------------------------------
|
487
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
488
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
489
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
490
|
+
[1m[35mTranslationText Load (0.3ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
|
491
|
+
[1m[36mTranslationKey Load (0.2ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."id" = ? LIMIT 1[0m [["id", 141216559]]
|
492
|
+
[1m[35mTranslationKey Load (0.2ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
|
493
|
+
[1m[36mTranslationText Load (0.3ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1[0m [["translation_key_id", 141216559], ["locale", "en"]]
|
494
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
495
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
496
|
+
[1m[35m (0.0ms)[0m begin transaction
|
497
|
+
---------------------------------------
|
498
|
+
AacTranslationTest: test_Sanitizes_HTML
|
499
|
+
---------------------------------------
|
500
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
501
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
502
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
503
|
+
[1m[35mTranslationText Load (0.1ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 89783586]]
|
504
|
+
[1m[36mTranslationKey Load (0.0ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."id" = ? LIMIT 1[0m [["id", 89783586]]
|
505
|
+
[1m[35mTranslationKey Load (0.1ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "html.title"]]
|
506
|
+
[1m[36mTranslationText Load (0.1ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1[0m [["translation_key_id", 89783586], ["locale", "en"]]
|
507
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
508
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
509
|
+
[1m[35m (0.0ms)[0m begin transaction
|
67
510
|
-------------------------------------------------------------------------------------
|
68
511
|
AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
|
69
512
|
-------------------------------------------------------------------------------------
|
513
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
514
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
70
515
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
516
|
+
[1m[35mTranslationKey Load (0.1ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
|
517
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
518
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
519
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
520
|
+
[1m[35m (0.2ms)[0m begin transaction
|
521
|
+
[1m[36mFixture Delete (1.2ms)[0m [1mDELETE FROM "translation_keys"[0m
|
522
|
+
[1m[35mFixture Insert (0.6ms)[0m INSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('main.title', '2015-10-15 10:22:29', '2015-10-15 10:22:29', 141216559)
|
523
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "translation_keys" ("key", "created_at", "updated_at", "id") VALUES ('html.title', '2015-10-15 10:22:29', '2015-10-15 10:22:29', 89783586)[0m
|
524
|
+
[1m[35mFixture Delete (1.1ms)[0m DELETE FROM "translation_texts"
|
525
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', 'My title', '2015-10-15 10:22:29', '2015-10-15 10:22:29', 141216559, 141216559)[0m
|
526
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "translation_texts" ("locale", "text", "created_at", "updated_at", "id", "translation_key_id") VALUES ('en', '<strong>My title</strong>2', '2015-10-15 10:22:29', '2015-10-15 10:22:29', 89783586, 89783586)
|
527
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
528
|
+
[1m[35m (0.1ms)[0m begin transaction
|
529
|
+
--------------------------------------------------
|
530
|
+
AacTranslationTest: test_Return_value_from_fixture
|
531
|
+
--------------------------------------------------
|
532
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
71
533
|
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
72
534
|
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
535
|
+
[1m[35mTranslationText Load (0.3ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1 [["id", 141216559]]
|
536
|
+
[1m[36mTranslationKey Load (0.2ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."id" = ? LIMIT 1[0m [["id", 141216559]]
|
537
|
+
[1m[35mTranslationKey Load (0.3ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.title"]]
|
538
|
+
[1m[36mTranslationText Load (0.2ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1[0m [["translation_key_id", 141216559], ["locale", "en"]]
|
539
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
540
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
541
|
+
[1m[35m (0.1ms)[0m begin transaction
|
542
|
+
-------------------------------------------------------------------------------------
|
543
|
+
AacTranslationTest: test_Should_return_the_key's_value_if_key_doesn't_exist_in_the_db
|
544
|
+
-------------------------------------------------------------------------------------
|
545
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
546
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
547
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
73
548
|
[1m[35mTranslationKey Load (0.1ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1 [["key", "main.lorem.ipsum"]]
|
74
549
|
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
75
550
|
[1m[35m (0.0ms)[0m rollback transaction
|
551
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
552
|
+
---------------------------------------
|
553
|
+
AacTranslationTest: test_Sanitizes_HTML
|
554
|
+
---------------------------------------
|
555
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
556
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
557
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
558
|
+
[1m[36mTranslationText Load (0.1ms)[0m [1mSELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."id" = ? LIMIT 1[0m [["id", 89783586]]
|
559
|
+
[1m[35mTranslationKey Load (0.0ms)[0m SELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."id" = ? LIMIT 1 [["id", 89783586]]
|
560
|
+
[1m[36mTranslationKey Load (0.0ms)[0m [1mSELECT "translation_keys".* FROM "translation_keys" WHERE "translation_keys"."key" = ? LIMIT 1[0m [["key", "html.title"]]
|
561
|
+
[1m[35mTranslationText Load (0.0ms)[0m SELECT "translation_texts".* FROM "translation_texts" WHERE "translation_texts"."translation_key_id" = ? AND "translation_texts"."locale" = ? LIMIT 1 [["translation_key_id", 89783586], ["locale", "en"]]
|
562
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
563
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aac_translation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Haris
|
@@ -15,87 +15,73 @@ dependencies:
|
|
15
15
|
name: rails
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ~>
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '4.0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - ~>
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '4.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: fast_gettext
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - ~>
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '1.0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - ~>
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '1.0'
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: protected_attributes
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - '>='
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '0'
|
49
|
-
type: :runtime
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - '>='
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '0'
|
56
42
|
- !ruby/object:Gem::Dependency
|
57
43
|
name: sqlite3
|
58
44
|
requirement: !ruby/object:Gem::Requirement
|
59
45
|
requirements:
|
60
|
-
- -
|
46
|
+
- - ">="
|
61
47
|
- !ruby/object:Gem::Version
|
62
48
|
version: '0'
|
63
49
|
type: :development
|
64
50
|
prerelease: false
|
65
51
|
version_requirements: !ruby/object:Gem::Requirement
|
66
52
|
requirements:
|
67
|
-
- -
|
53
|
+
- - ">="
|
68
54
|
- !ruby/object:Gem::Version
|
69
55
|
version: '0'
|
70
56
|
- !ruby/object:Gem::Dependency
|
71
57
|
name: factory_girl
|
72
58
|
requirement: !ruby/object:Gem::Requirement
|
73
59
|
requirements:
|
74
|
-
- -
|
60
|
+
- - ">="
|
75
61
|
- !ruby/object:Gem::Version
|
76
62
|
version: '0'
|
77
63
|
type: :development
|
78
64
|
prerelease: false
|
79
65
|
version_requirements: !ruby/object:Gem::Requirement
|
80
66
|
requirements:
|
81
|
-
- -
|
67
|
+
- - ">="
|
82
68
|
- !ruby/object:Gem::Version
|
83
69
|
version: '0'
|
84
70
|
- !ruby/object:Gem::Dependency
|
85
71
|
name: database_cleaner
|
86
72
|
requirement: !ruby/object:Gem::Requirement
|
87
73
|
requirements:
|
88
|
-
- -
|
74
|
+
- - ">="
|
89
75
|
- !ruby/object:Gem::Version
|
90
76
|
version: '0'
|
91
77
|
type: :development
|
92
78
|
prerelease: false
|
93
79
|
version_requirements: !ruby/object:Gem::Requirement
|
94
80
|
requirements:
|
95
|
-
- -
|
81
|
+
- - ">="
|
96
82
|
- !ruby/object:Gem::Version
|
97
83
|
version: '0'
|
98
|
-
description:
|
84
|
+
description: Simple Rails engine to manage your translations in a db.
|
99
85
|
email:
|
100
86
|
- iamadamharis@gmail.com
|
101
87
|
- tothpeter08@gmail.com
|
@@ -103,6 +89,8 @@ executables: []
|
|
103
89
|
extensions: []
|
104
90
|
extra_rdoc_files: []
|
105
91
|
files:
|
92
|
+
- MIT-LICENSE
|
93
|
+
- Rakefile
|
106
94
|
- app/assets/javascripts/aac_translation/application.js
|
107
95
|
- app/assets/stylesheets/aac_translation/application.css
|
108
96
|
- app/helpers/aac_translation/application_helper.rb
|
@@ -110,13 +98,13 @@ files:
|
|
110
98
|
- config/initializers/fast_get_text.rb
|
111
99
|
- config/routes.rb
|
112
100
|
- db/migrate/20151013115212_create_translation_tables.rb
|
101
|
+
- lib/aac_translation.rb
|
113
102
|
- lib/aac_translation/engine.rb
|
114
103
|
- lib/aac_translation/version.rb
|
115
|
-
- lib/aac_translation.rb
|
116
104
|
- lib/tasks/aac_translation_tasks.rake
|
117
|
-
- MIT-LICENSE
|
118
|
-
- Rakefile
|
119
105
|
- test/aac_translation_test.rb
|
106
|
+
- test/dummy/README.rdoc
|
107
|
+
- test/dummy/Rakefile
|
120
108
|
- test/dummy/app/assets/javascripts/application.js
|
121
109
|
- test/dummy/app/assets/stylesheets/application.css
|
122
110
|
- test/dummy/app/controllers/application_controller.rb
|
@@ -126,6 +114,7 @@ files:
|
|
126
114
|
- test/dummy/bin/rails
|
127
115
|
- test/dummy/bin/rake
|
128
116
|
- test/dummy/bin/setup
|
117
|
+
- test/dummy/config.ru
|
129
118
|
- test/dummy/config/application.rb
|
130
119
|
- test/dummy/config/boot.rb
|
131
120
|
- test/dummy/config/database.yml
|
@@ -144,7 +133,6 @@ files:
|
|
144
133
|
- test/dummy/config/locales/en.yml
|
145
134
|
- test/dummy/config/routes.rb
|
146
135
|
- test/dummy/config/secrets.yml
|
147
|
-
- test/dummy/config.ru
|
148
136
|
- test/dummy/db/schema.rb
|
149
137
|
- test/dummy/db/test.sqlite3
|
150
138
|
- test/dummy/log/test.log
|
@@ -152,8 +140,6 @@ files:
|
|
152
140
|
- test/dummy/public/422.html
|
153
141
|
- test/dummy/public/500.html
|
154
142
|
- test/dummy/public/favicon.ico
|
155
|
-
- test/dummy/Rakefile
|
156
|
-
- test/dummy/README.rdoc
|
157
143
|
- test/fixtures/translation_keys.yml
|
158
144
|
- test/fixtures/translation_texts.yml
|
159
145
|
- test/test_helper.rb
|
@@ -167,20 +153,20 @@ require_paths:
|
|
167
153
|
- lib
|
168
154
|
required_ruby_version: !ruby/object:Gem::Requirement
|
169
155
|
requirements:
|
170
|
-
- -
|
156
|
+
- - ">="
|
171
157
|
- !ruby/object:Gem::Version
|
172
158
|
version: '0'
|
173
159
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
160
|
requirements:
|
175
|
-
- -
|
161
|
+
- - ">="
|
176
162
|
- !ruby/object:Gem::Version
|
177
163
|
version: '0'
|
178
164
|
requirements: []
|
179
165
|
rubyforge_project:
|
180
|
-
rubygems_version: 2.
|
166
|
+
rubygems_version: 2.4.6
|
181
167
|
signing_key:
|
182
168
|
specification_version: 4
|
183
|
-
summary:
|
169
|
+
summary: Simple Rails engine to manage your translations in a db.
|
184
170
|
test_files:
|
185
171
|
- test/aac_translation_test.rb
|
186
172
|
- test/dummy/app/assets/javascripts/application.js
|