human_urls 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +37 -0
- data/config/routes.rb +2 -0
- data/lib/generators/slug_migration/USAGE +8 -0
- data/lib/generators/slug_migration/slug_migration_generator.rb +27 -0
- data/lib/generators/slug_migration/templates/slug_migration.rb +6 -0
- data/lib/human_urls/engine.rb +5 -0
- data/lib/human_urls/sluggable.rb +29 -0
- data/lib/human_urls/version.rb +3 -0
- data/lib/human_urls.rb +5 -0
- data/lib/tasks/human_urls_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/models/taggable.rb +4 -0
- data/test/dummy/app/models/taggable_w_generated_slug.rb +4 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +12 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +2 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/migrate/20151022230845_create_posts.rb +12 -0
- data/test/dummy/db/migrate/20151029003656_create_taggable_w_generated_slugs.rb +11 -0
- data/test/dummy/db/migrate/20151029012517_rename_post_to_taggable.rb +5 -0
- data/test/dummy/db/schema.rb +37 -0
- data/test/dummy/log/development.log +114 -0
- data/test/dummy/log/test.log +3357 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/tmp/generators/db/migrate/20151112020841_add_slug_to_posts.rb +6 -0
- data/test/human_urls/sluggable_test.rb +52 -0
- data/test/human_urls_test.rb +7 -0
- data/test/lib/generators/human_urls/slug_migration_generator_test.rb +30 -0
- data/test/test_helper.rb +16 -0
- metadata +196 -0
@@ -0,0 +1,3357 @@
|
|
1
|
+
[1m[36m (162.0ms)[0m [1mDROP DATABASE IF EXISTS "human_urls_test"[0m
|
2
|
+
[1m[35m (431.0ms)[0m CREATE DATABASE "human_urls_test" ENCODING = 'unicode'
|
3
|
+
[1m[36mSQL (2.6ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
4
|
+
[1m[35m (8.9ms)[0m CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
5
|
+
[1m[36m (2.1ms)[0m [1mCREATE UNIQUE INDEX "index_posts_on_slug" ON "posts" USING btree ("slug")[0m
|
6
|
+
[1m[35m (3.6ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
7
|
+
[1m[36m (1.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
8
|
+
[1m[35m (0.5ms)[0m SELECT version FROM "schema_migrations"
|
9
|
+
[1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151022230845')[0m
|
10
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11
|
+
[1m[35m (0.3ms)[0m BEGIN
|
12
|
+
----------------------------------------------
|
13
|
+
SluggableTest: test_validates_presence_of_slug
|
14
|
+
----------------------------------------------
|
15
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
16
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17
|
+
-------------------------
|
18
|
+
HumanUrlsTest: test_truth
|
19
|
+
-------------------------
|
20
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
21
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22
|
+
[1m[35m (0.6ms)[0m BEGIN
|
23
|
+
-------------------------
|
24
|
+
HumanUrlsTest: test_truth
|
25
|
+
-------------------------
|
26
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
27
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28
|
+
----------------------------------------------
|
29
|
+
SluggableTest: test_validates_presence_of_slug
|
30
|
+
----------------------------------------------
|
31
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
32
|
+
[1m[35mSQL (3.8ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-10-22 23:47:20.535313"], ["updated_at", "2015-10-22 23:47:20.535313"]]
|
33
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
34
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
35
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
36
|
+
[1m[35m (0.3ms)[0m BEGIN
|
37
|
+
-------------------------
|
38
|
+
HumanUrlsTest: test_truth
|
39
|
+
-------------------------
|
40
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
41
|
+
[1m[35m (0.2ms)[0m BEGIN
|
42
|
+
----------------------------------------------
|
43
|
+
SluggableTest: test_validates_presence_of_slug
|
44
|
+
----------------------------------------------
|
45
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
46
|
+
[1m[35m (1.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
47
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
48
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
49
|
+
[1m[35m (0.4ms)[0m BEGIN
|
50
|
+
----------------------------------------------
|
51
|
+
SluggableTest: test_validates_presence_of_slug
|
52
|
+
----------------------------------------------
|
53
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
54
|
+
[1m[35m (0.2ms)[0m BEGIN
|
55
|
+
-------------------------
|
56
|
+
HumanUrlsTest: test_truth
|
57
|
+
-------------------------
|
58
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
59
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
60
|
+
[1m[35m (0.4ms)[0m BEGIN
|
61
|
+
-------------------------
|
62
|
+
HumanUrlsTest: test_truth
|
63
|
+
-------------------------
|
64
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
65
|
+
[1m[35m (0.2ms)[0m BEGIN
|
66
|
+
----------------------------------------------
|
67
|
+
SluggableTest: test_validates_presence_of_slug
|
68
|
+
----------------------------------------------
|
69
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
70
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
71
|
+
[1m[35m (0.4ms)[0m BEGIN
|
72
|
+
-------------------------
|
73
|
+
HumanUrlsTest: test_truth
|
74
|
+
-------------------------
|
75
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
76
|
+
[1m[35m (0.2ms)[0m BEGIN
|
77
|
+
----------------------------------------------
|
78
|
+
SluggableTest: test_validates_presence_of_slug
|
79
|
+
----------------------------------------------
|
80
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
81
|
+
[1m[35mPost Exists (2.3ms)[0m SELECT 1 AS one FROM "posts" WHERE "posts"."slug" IS NULL LIMIT 1
|
82
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
83
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
84
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
85
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
86
|
+
[1m[35m (0.4ms)[0m BEGIN
|
87
|
+
----------------------------------------------
|
88
|
+
SluggableTest: test_validates_presence_of_slug
|
89
|
+
----------------------------------------------
|
90
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
91
|
+
[1m[35mPost Exists (0.8ms)[0m SELECT 1 AS one FROM "posts" WHERE "posts"."slug" IS NULL LIMIT 1
|
92
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
93
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
94
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
95
|
+
------------------------------------------------
|
96
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
97
|
+
------------------------------------------------
|
98
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
99
|
+
[1m[36mPost Exists (3.4ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('my-slug') LIMIT 1[0m
|
100
|
+
[1m[35mSQL (1.7ms)[0m INSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "my-slug"], ["created_at", "2015-10-22 23:58:25.539588"], ["updated_at", "2015-10-22 23:58:25.539588"]]
|
101
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
102
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
103
|
+
[1m[36mPost Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('my-slug') LIMIT 1[0m
|
104
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
105
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
106
|
+
[1m[35m (0.2ms)[0m BEGIN
|
107
|
+
-------------------------
|
108
|
+
HumanUrlsTest: test_truth
|
109
|
+
-------------------------
|
110
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
111
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
112
|
+
[1m[35m (0.4ms)[0m BEGIN
|
113
|
+
------------------------------------------------
|
114
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
115
|
+
------------------------------------------------
|
116
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
117
|
+
[1m[35mPost Exists (1.7ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
118
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-23 00:00:37.755239"], ["updated_at", "2015-10-23 00:00:37.755239"]]
|
119
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
120
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
121
|
+
[1m[35mPost Exists (0.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
122
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
123
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
124
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
125
|
+
----------------------------------------------
|
126
|
+
SluggableTest: test_validates_presence_of_slug
|
127
|
+
----------------------------------------------
|
128
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
129
|
+
[1m[36mPost Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE "posts"."slug" IS NULL LIMIT 1[0m
|
130
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
131
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
132
|
+
[1m[35m (0.2ms)[0m BEGIN
|
133
|
+
-------------------------------------------------------------------------
|
134
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
135
|
+
-------------------------------------------------------------------------
|
136
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
137
|
+
[1m[35mPost Exists (0.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('Slug') LIMIT 1
|
138
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "Slug"], ["created_at", "2015-10-23 00:00:37.778436"], ["updated_at", "2015-10-23 00:00:37.778436"]]
|
139
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
140
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
141
|
+
[1m[35mPost Exists (1.4ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
142
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
143
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
144
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
145
|
+
-------------------------
|
146
|
+
HumanUrlsTest: test_truth
|
147
|
+
-------------------------
|
148
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
149
|
+
[1m[36mActiveRecord::SchemaMigration Load (5.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
150
|
+
[1m[35m (0.7ms)[0m BEGIN
|
151
|
+
----------------------------------------------
|
152
|
+
SluggableTest: test_validates_presence_of_slug
|
153
|
+
----------------------------------------------
|
154
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
155
|
+
[1m[35mPost Exists (2.3ms)[0m SELECT 1 AS one FROM "posts" WHERE "posts"."slug" IS NULL LIMIT 1
|
156
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
157
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
158
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
159
|
+
-------------------------------------------------------------------------
|
160
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
161
|
+
-------------------------------------------------------------------------
|
162
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
163
|
+
[1m[36mPost Exists (3.8ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('Slug') LIMIT 1[0m
|
164
|
+
[1m[35mSQL (6.9ms)[0m INSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "Slug"], ["created_at", "2015-10-28 23:09:41.009061"], ["updated_at", "2015-10-28 23:09:41.009061"]]
|
165
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
166
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
167
|
+
[1m[36mPost Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
168
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
169
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
170
|
+
[1m[35m (0.2ms)[0m BEGIN
|
171
|
+
------------------------------------------------
|
172
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
173
|
+
------------------------------------------------
|
174
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
175
|
+
[1m[35mPost Exists (0.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
176
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-28 23:09:41.027959"], ["updated_at", "2015-10-28 23:09:41.027959"]]
|
177
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
178
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
179
|
+
[1m[35mPost Exists (0.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
180
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
181
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
182
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
183
|
+
-------------------------
|
184
|
+
HumanUrlsTest: test_truth
|
185
|
+
-------------------------
|
186
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
187
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
188
|
+
[1m[35m (0.4ms)[0m BEGIN
|
189
|
+
-------------------------
|
190
|
+
HumanUrlsTest: test_truth
|
191
|
+
-------------------------
|
192
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
193
|
+
[1m[35m (0.3ms)[0m BEGIN
|
194
|
+
------------------------------------------------
|
195
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
196
|
+
------------------------------------------------
|
197
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
198
|
+
[1m[35mPost Exists (1.6ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
199
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-28 23:13:03.711605"], ["updated_at", "2015-10-28 23:13:03.711605"]]
|
200
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
201
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
202
|
+
[1m[35mPost Exists (0.6ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
203
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
204
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
205
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
206
|
+
-------------------------------------------------------------------------
|
207
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
208
|
+
-------------------------------------------------------------------------
|
209
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
210
|
+
[1m[36mPost Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('Slug') LIMIT 1[0m
|
211
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "Slug"], ["created_at", "2015-10-28 23:13:03.729773"], ["updated_at", "2015-10-28 23:13:03.729773"]]
|
212
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
213
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
214
|
+
[1m[36mPost Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
215
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
216
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
217
|
+
[1m[35m (0.2ms)[0m BEGIN
|
218
|
+
----------------------------------------------
|
219
|
+
SluggableTest: test_validates_presence_of_slug
|
220
|
+
----------------------------------------------
|
221
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
222
|
+
[1m[35mPost Exists (0.8ms)[0m SELECT 1 AS one FROM "posts" WHERE "posts"."slug" IS NULL LIMIT 1
|
223
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
224
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
225
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
226
|
+
[1m[35m (0.3ms)[0m BEGIN
|
227
|
+
-------------------------
|
228
|
+
HumanUrlsTest: test_truth
|
229
|
+
-------------------------
|
230
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
231
|
+
[1m[35m (0.2ms)[0m BEGIN
|
232
|
+
----------------------------------------------
|
233
|
+
SluggableTest: test_validates_presence_of_slug
|
234
|
+
----------------------------------------------
|
235
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
236
|
+
[1m[35mPost Exists (1.0ms)[0m SELECT 1 AS one FROM "posts" WHERE "posts"."slug" IS NULL LIMIT 1
|
237
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
238
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
239
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
240
|
+
-------------------------------------------------------------------------
|
241
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
242
|
+
-------------------------------------------------------------------------
|
243
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
244
|
+
[1m[36mPost Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('Slug') LIMIT 1[0m
|
245
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "Slug"], ["created_at", "2015-10-28 23:22:05.701031"], ["updated_at", "2015-10-28 23:22:05.701031"]]
|
246
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
247
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
248
|
+
[1m[36mPost Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
249
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
250
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
251
|
+
[1m[35m (0.2ms)[0m BEGIN
|
252
|
+
------------------------------------------------
|
253
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
254
|
+
------------------------------------------------
|
255
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
256
|
+
[1m[35mPost Exists (0.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
257
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-28 23:22:05.715503"], ["updated_at", "2015-10-28 23:22:05.715503"]]
|
258
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
259
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
260
|
+
[1m[35mPost Exists (0.6ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
261
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
262
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
263
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
264
|
+
[1m[35m (0.3ms)[0m BEGIN
|
265
|
+
-------------------------
|
266
|
+
HumanUrlsTest: test_truth
|
267
|
+
-------------------------
|
268
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
269
|
+
[1m[35m (0.2ms)[0m BEGIN
|
270
|
+
----------------------------------------------
|
271
|
+
SluggableTest: test_validates_presence_of_slug
|
272
|
+
----------------------------------------------
|
273
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
274
|
+
[1m[35m (0.2ms)[0m BEGIN
|
275
|
+
------------------------------------------------
|
276
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
277
|
+
------------------------------------------------
|
278
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
279
|
+
[1m[35mPost Exists (1.3ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
280
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-28 23:22:49.247021"], ["updated_at", "2015-10-28 23:22:49.247021"]]
|
281
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
282
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
283
|
+
[1m[35mPost Exists (1.0ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
284
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
285
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
286
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
287
|
+
-------------------------------------------------------------------------
|
288
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
289
|
+
-------------------------------------------------------------------------
|
290
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
291
|
+
[1m[36mPost Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('Slug') LIMIT 1[0m
|
292
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "Slug"], ["created_at", "2015-10-28 23:22:49.271721"], ["updated_at", "2015-10-28 23:22:49.271721"]]
|
293
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
294
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
295
|
+
[1m[36mPost Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
296
|
+
[1m[35m (0.7ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
297
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
298
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
299
|
+
[1m[35m (0.3ms)[0m BEGIN
|
300
|
+
-------------------------
|
301
|
+
HumanUrlsTest: test_truth
|
302
|
+
-------------------------
|
303
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
304
|
+
[1m[35m (0.2ms)[0m BEGIN
|
305
|
+
------------------------------------------------
|
306
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
307
|
+
------------------------------------------------
|
308
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
309
|
+
[1m[35mPost Exists (1.4ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
310
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-28 23:26:15.608443"], ["updated_at", "2015-10-28 23:26:15.608443"]]
|
311
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
312
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
313
|
+
[1m[35mPost Exists (1.1ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
314
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
315
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
316
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
317
|
+
----------------------------------------------
|
318
|
+
SluggableTest: test_validates_presence_of_slug
|
319
|
+
----------------------------------------------
|
320
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
321
|
+
[1m[36mPost Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE "posts"."slug" IS NULL LIMIT 1[0m
|
322
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
323
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
324
|
+
[1m[35m (0.2ms)[0m BEGIN
|
325
|
+
-------------------------------------------------------------------------
|
326
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
327
|
+
-------------------------------------------------------------------------
|
328
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
329
|
+
[1m[35mPost Exists (0.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('Slug') LIMIT 1
|
330
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "Slug"], ["created_at", "2015-10-28 23:26:15.636424"], ["updated_at", "2015-10-28 23:26:15.636424"]]
|
331
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
332
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
333
|
+
[1m[35mPost Exists (0.7ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
334
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
335
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
336
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
337
|
+
[1m[35m (0.4ms)[0m BEGIN
|
338
|
+
-------------------------
|
339
|
+
HumanUrlsTest: test_truth
|
340
|
+
-------------------------
|
341
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
342
|
+
[1m[35m (0.3ms)[0m BEGIN
|
343
|
+
-------------------------------------------------------------------------
|
344
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
345
|
+
-------------------------------------------------------------------------
|
346
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
347
|
+
[1m[35mPost Exists (1.1ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('Slug') LIMIT 1
|
348
|
+
[1m[36mPost Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('Slug') LIMIT 1[0m
|
349
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "Slug"], ["created_at", "2015-10-28 23:26:34.827773"], ["updated_at", "2015-10-28 23:26:34.827773"]]
|
350
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
351
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
352
|
+
[1m[36mPost Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
353
|
+
[1m[35mPost Exists (0.7ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
354
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
355
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
356
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
357
|
+
------------------------------------------------
|
358
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
359
|
+
------------------------------------------------
|
360
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
361
|
+
[1m[36mPost Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
362
|
+
[1m[35mPost Exists (0.8ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
363
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-28 23:26:34.853279"], ["updated_at", "2015-10-28 23:26:34.853279"]]
|
364
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
365
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
366
|
+
[1m[35mPost Exists (0.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
367
|
+
[1m[36mPost Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
368
|
+
[1m[35m (0.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
369
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
370
|
+
[1m[35m (0.3ms)[0m BEGIN
|
371
|
+
----------------------------------------------
|
372
|
+
SluggableTest: test_validates_presence_of_slug
|
373
|
+
----------------------------------------------
|
374
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
375
|
+
[1m[35mPost Exists (0.4ms)[0m SELECT 1 AS one FROM "posts" WHERE "posts"."slug" IS NULL LIMIT 1
|
376
|
+
[1m[36mPost Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE "posts"."slug" IS NULL LIMIT 1[0m
|
377
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
378
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
379
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
380
|
+
[1m[35m (0.5ms)[0m BEGIN
|
381
|
+
----------------------------------------------
|
382
|
+
SluggableTest: test_validates_presence_of_slug
|
383
|
+
----------------------------------------------
|
384
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
385
|
+
[1m[35mPost Exists (0.8ms)[0m SELECT 1 AS one FROM "posts" WHERE "posts"."slug" IS NULL LIMIT 1
|
386
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
387
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
388
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
389
|
+
------------------------------------------------
|
390
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
391
|
+
------------------------------------------------
|
392
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
393
|
+
[1m[36mPost Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
394
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-10-28 23:26:54.239342"], ["updated_at", "2015-10-28 23:26:54.239342"]]
|
395
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
396
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
397
|
+
[1m[36mPost Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
398
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
399
|
+
[1m[36m (1.0ms)[0m [1mROLLBACK[0m
|
400
|
+
[1m[35m (0.2ms)[0m BEGIN
|
401
|
+
-------------------------------------------------------------------------
|
402
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
403
|
+
-------------------------------------------------------------------------
|
404
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
405
|
+
[1m[35mPost Exists (0.9ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('Slug') LIMIT 1
|
406
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "Slug"], ["created_at", "2015-10-28 23:26:54.252231"], ["updated_at", "2015-10-28 23:26:54.252231"]]
|
407
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
408
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
409
|
+
[1m[35mPost Exists (0.6ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
410
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
411
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
412
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
413
|
+
-------------------------
|
414
|
+
HumanUrlsTest: test_truth
|
415
|
+
-------------------------
|
416
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
417
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
418
|
+
[1m[35m (0.3ms)[0m BEGIN
|
419
|
+
------------------------------------------------
|
420
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
421
|
+
------------------------------------------------
|
422
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
423
|
+
[1m[35m (0.2ms)[0m BEGIN
|
424
|
+
----------------------------------------------
|
425
|
+
SluggableTest: test_validates_presence_of_slug
|
426
|
+
----------------------------------------------
|
427
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
428
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2015-10-28 23:30:16.060783"], ["updated_at", "2015-10-28 23:30:16.060783"]]
|
429
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
430
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
431
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
432
|
+
-------------------------------------------------------------------------
|
433
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
434
|
+
-------------------------------------------------------------------------
|
435
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
436
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "Slug"], ["created_at", "2015-10-28 23:30:16.068509"], ["updated_at", "2015-10-28 23:30:16.068509"]]
|
437
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
438
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
439
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-10-28 23:30:16.071706"], ["updated_at", "2015-10-28 23:30:16.071706"]]
|
440
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
441
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
442
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
443
|
+
-------------------------
|
444
|
+
HumanUrlsTest: test_truth
|
445
|
+
-------------------------
|
446
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
447
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
448
|
+
[1m[35m (0.4ms)[0m BEGIN
|
449
|
+
----------------------------------------------
|
450
|
+
SluggableTest: test_#to_param_returns_the_slug
|
451
|
+
----------------------------------------------
|
452
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
453
|
+
[1m[35mPost Exists (1.4ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
454
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-28 23:46:27.840949"], ["updated_at", "2015-10-28 23:46:27.840949"]]
|
455
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
456
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
457
|
+
[1m[35m (0.2ms)[0m BEGIN
|
458
|
+
------------------------------------------------
|
459
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
460
|
+
------------------------------------------------
|
461
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
462
|
+
[1m[35mPost Exists (0.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
463
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-28 23:46:27.847312"], ["updated_at", "2015-10-28 23:46:27.847312"]]
|
464
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
465
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
466
|
+
[1m[35mPost Exists (0.6ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
467
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
468
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
469
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
470
|
+
----------------------------------------------
|
471
|
+
SluggableTest: test_validates_presence_of_slug
|
472
|
+
----------------------------------------------
|
473
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
474
|
+
[1m[36mPost Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE "posts"."slug" IS NULL LIMIT 1[0m
|
475
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
476
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
477
|
+
[1m[35m (0.3ms)[0m BEGIN
|
478
|
+
-------------------------------------------------------------------------
|
479
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
480
|
+
-------------------------------------------------------------------------
|
481
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
482
|
+
[1m[35mPost Exists (0.7ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('Slug') LIMIT 1
|
483
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "Slug"], ["created_at", "2015-10-28 23:46:27.867362"], ["updated_at", "2015-10-28 23:46:27.867362"]]
|
484
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
485
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
486
|
+
[1m[35mPost Exists (1.0ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
487
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
488
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
489
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
490
|
+
-------------------------
|
491
|
+
HumanUrlsTest: test_truth
|
492
|
+
-------------------------
|
493
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
494
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
495
|
+
[1m[35m (0.3ms)[0m BEGIN
|
496
|
+
-------------------------
|
497
|
+
HumanUrlsTest: test_truth
|
498
|
+
-------------------------
|
499
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
500
|
+
[1m[35m (0.3ms)[0m BEGIN
|
501
|
+
-------------------------------------------------------------------------
|
502
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
503
|
+
-------------------------------------------------------------------------
|
504
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
505
|
+
[1m[35mPost Exists (1.6ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('Slug') LIMIT 1
|
506
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "Slug"], ["created_at", "2015-10-28 23:54:30.895569"], ["updated_at", "2015-10-28 23:54:30.895569"]]
|
507
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
508
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
509
|
+
[1m[35mPost Exists (0.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
510
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
511
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
512
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
513
|
+
------------------------------------------------
|
514
|
+
SluggableTest: test_slug_properly_formats_string
|
515
|
+
------------------------------------------------
|
516
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
517
|
+
[1m[36mPost Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('This i$ my SLUG') LIMIT 1[0m
|
518
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "This i$ my SLUG"], ["created_at", "2015-10-28 23:54:30.912500"], ["updated_at", "2015-10-28 23:54:30.912500"]]
|
519
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
520
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
521
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
522
|
+
------------------------------------------------
|
523
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
524
|
+
------------------------------------------------
|
525
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
526
|
+
[1m[36mPost Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
527
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-10-28 23:54:30.917529"], ["updated_at", "2015-10-28 23:54:30.917529"]]
|
528
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
529
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
530
|
+
[1m[36mPost Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
531
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
532
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
533
|
+
[1m[35m (0.2ms)[0m BEGIN
|
534
|
+
----------------------------------------------
|
535
|
+
SluggableTest: test_#to_param_returns_the_slug
|
536
|
+
----------------------------------------------
|
537
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
538
|
+
[1m[35mPost Exists (0.8ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
539
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-28 23:54:30.926990"], ["updated_at", "2015-10-28 23:54:30.926990"]]
|
540
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
541
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
542
|
+
[1m[35m (0.2ms)[0m BEGIN
|
543
|
+
----------------------------------------------
|
544
|
+
SluggableTest: test_validates_presence_of_slug
|
545
|
+
----------------------------------------------
|
546
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
547
|
+
[1m[35mPost Exists (0.4ms)[0m SELECT 1 AS one FROM "posts" WHERE "posts"."slug" IS NULL LIMIT 1
|
548
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
549
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
550
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
551
|
+
[1m[35m (0.4ms)[0m BEGIN
|
552
|
+
-------------------------
|
553
|
+
HumanUrlsTest: test_truth
|
554
|
+
-------------------------
|
555
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
556
|
+
[1m[35m (0.2ms)[0m BEGIN
|
557
|
+
------------------------------------------------
|
558
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
559
|
+
------------------------------------------------
|
560
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
561
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
562
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
563
|
+
[1m[35m (0.2ms)[0m BEGIN
|
564
|
+
----------------------------------------------
|
565
|
+
SluggableTest: test_validates_presence_of_slug
|
566
|
+
----------------------------------------------
|
567
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
568
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
569
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
570
|
+
[1m[35m (0.3ms)[0m BEGIN
|
571
|
+
------------------------------------------------
|
572
|
+
SluggableTest: test_slug_properly_formats_string
|
573
|
+
------------------------------------------------
|
574
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
575
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
576
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
577
|
+
[1m[35m (0.3ms)[0m BEGIN
|
578
|
+
----------------------------------------------
|
579
|
+
SluggableTest: test_#to_param_returns_the_slug
|
580
|
+
----------------------------------------------
|
581
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
582
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
583
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
584
|
+
[1m[35m (1.0ms)[0m BEGIN
|
585
|
+
-------------------------------------------------------------------------
|
586
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
587
|
+
-------------------------------------------------------------------------
|
588
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
589
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
590
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
591
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
592
|
+
[1m[35m (0.4ms)[0m BEGIN
|
593
|
+
----------------------------------------------
|
594
|
+
SluggableTest: test_#to_param_returns_the_slug
|
595
|
+
----------------------------------------------
|
596
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
597
|
+
[1m[35m (0.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
598
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
599
|
+
[1m[35m (0.3ms)[0m BEGIN
|
600
|
+
------------------------------------------------
|
601
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
602
|
+
------------------------------------------------
|
603
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
604
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
605
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
606
|
+
[1m[35m (0.2ms)[0m BEGIN
|
607
|
+
----------------------------------------------
|
608
|
+
SluggableTest: test_validates_presence_of_slug
|
609
|
+
----------------------------------------------
|
610
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
611
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
612
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
613
|
+
[1m[35m (0.2ms)[0m BEGIN
|
614
|
+
------------------------------------------------
|
615
|
+
SluggableTest: test_slug_properly_formats_string
|
616
|
+
------------------------------------------------
|
617
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
618
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
619
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
620
|
+
[1m[35m (0.3ms)[0m BEGIN
|
621
|
+
-------------------------------------------------------------------------
|
622
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
623
|
+
-------------------------------------------------------------------------
|
624
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
625
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
626
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
627
|
+
[1m[35m (0.3ms)[0m BEGIN
|
628
|
+
-------------------------
|
629
|
+
HumanUrlsTest: test_truth
|
630
|
+
-------------------------
|
631
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
632
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
633
|
+
[1m[35m (0.4ms)[0m BEGIN
|
634
|
+
-------------------------
|
635
|
+
HumanUrlsTest: test_truth
|
636
|
+
-------------------------
|
637
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
638
|
+
[1m[35m (0.2ms)[0m BEGIN
|
639
|
+
------------------------------------------------
|
640
|
+
SluggableTest: test_slug_properly_formats_string
|
641
|
+
------------------------------------------------
|
642
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
643
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
644
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
645
|
+
[1m[35m (0.3ms)[0m BEGIN
|
646
|
+
-------------------------------------------------------------------------
|
647
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
648
|
+
-------------------------------------------------------------------------
|
649
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
650
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
651
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
652
|
+
[1m[35m (0.3ms)[0m BEGIN
|
653
|
+
----------------------------------------------
|
654
|
+
SluggableTest: test_#to_param_returns_the_slug
|
655
|
+
----------------------------------------------
|
656
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
657
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
658
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
659
|
+
[1m[35m (0.3ms)[0m BEGIN
|
660
|
+
------------------------------------------------
|
661
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
662
|
+
------------------------------------------------
|
663
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
664
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
665
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
666
|
+
[1m[35m (0.3ms)[0m BEGIN
|
667
|
+
----------------------------------------------
|
668
|
+
SluggableTest: test_validates_presence_of_slug
|
669
|
+
----------------------------------------------
|
670
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
671
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
672
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
673
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
674
|
+
[1m[35m (0.3ms)[0m BEGIN
|
675
|
+
-------------------------
|
676
|
+
HumanUrlsTest: test_truth
|
677
|
+
-------------------------
|
678
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
679
|
+
[1m[35m (0.2ms)[0m BEGIN
|
680
|
+
----------------------------------------------
|
681
|
+
SluggableTest: test_#to_param_returns_the_slug
|
682
|
+
----------------------------------------------
|
683
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
684
|
+
[1m[35mPost Exists (1.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
685
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-29 00:06:21.463173"], ["updated_at", "2015-10-29 00:06:21.463173"]]
|
686
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
687
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
688
|
+
[1m[35m (0.3ms)[0m BEGIN
|
689
|
+
-------------------------------------------------------------------------
|
690
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
691
|
+
-------------------------------------------------------------------------
|
692
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
693
|
+
[1m[35mPost Exists (0.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
694
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-29 00:06:21.472545"], ["updated_at", "2015-10-29 00:06:21.472545"]]
|
695
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
696
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
697
|
+
[1m[35mPost Exists (0.7ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
698
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
699
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
700
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
701
|
+
------------------------------------------------
|
702
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
703
|
+
------------------------------------------------
|
704
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
705
|
+
[1m[36mPost Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
706
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-10-29 00:06:21.482728"], ["updated_at", "2015-10-29 00:06:21.482728"]]
|
707
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
708
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
709
|
+
[1m[36mPost Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
710
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
711
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
712
|
+
[1m[35m (0.2ms)[0m BEGIN
|
713
|
+
------------------------------------------------
|
714
|
+
SluggableTest: test_slug_properly_formats_string
|
715
|
+
------------------------------------------------
|
716
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
717
|
+
[1m[35mPost Exists (0.6ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
718
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-10-29 00:06:21.490318"], ["updated_at", "2015-10-29 00:06:21.490318"]]
|
719
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
720
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
721
|
+
[1m[35m (0.2ms)[0m BEGIN
|
722
|
+
----------------------------------------------
|
723
|
+
SluggableTest: test_validates_presence_of_slug
|
724
|
+
----------------------------------------------
|
725
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
726
|
+
[1m[35mPost Exists (0.6ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('') LIMIT 1
|
727
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
728
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
729
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
730
|
+
[1m[36m (176.0ms)[0m [1mDROP DATABASE IF EXISTS "human_urls_test"[0m
|
731
|
+
[1m[35m (426.3ms)[0m CREATE DATABASE "human_urls_test" ENCODING = 'unicode'
|
732
|
+
[1m[36mSQL (2.3ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
733
|
+
[1m[35m (7.5ms)[0m CREATE TABLE "posts" ("id" serial primary key, "title" character varying, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
734
|
+
[1m[36m (1.7ms)[0m [1mCREATE UNIQUE INDEX "index_posts_on_slug" ON "posts" USING btree ("slug")[0m
|
735
|
+
[1m[35m (5.0ms)[0m CREATE TABLE "taggable_w_generated_slugs" ("id" serial primary key, "title" character varying, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
736
|
+
[1m[36m (1.6ms)[0m [1mCREATE UNIQUE INDEX "index_taggable_w_generated_slugs_on_slug" ON "taggable_w_generated_slugs" USING btree ("slug")[0m
|
737
|
+
[1m[35m (3.1ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
738
|
+
[1m[36m (1.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
739
|
+
[1m[35m (0.7ms)[0m SELECT version FROM "schema_migrations"
|
740
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151029003656')[0m
|
741
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151022230845')
|
742
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.6ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
743
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
744
|
+
----------------------------------------------
|
745
|
+
SluggableTest: test_#to_param_returns_the_slug
|
746
|
+
----------------------------------------------
|
747
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
748
|
+
[1m[36mPost Exists (1.3ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
749
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-10-29 01:00:36.202622"], ["updated_at", "2015-10-29 01:00:36.202622"]]
|
750
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
751
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
752
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
753
|
+
------------------------------------------------
|
754
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
755
|
+
------------------------------------------------
|
756
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
757
|
+
[1m[36mPost Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
758
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-10-29 01:00:36.209789"], ["updated_at", "2015-10-29 01:00:36.209789"]]
|
759
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
760
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
761
|
+
[1m[36mPost Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
762
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
763
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
764
|
+
[1m[35m (0.2ms)[0m BEGIN
|
765
|
+
--------------------------------------------------------------------
|
766
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
767
|
+
--------------------------------------------------------------------
|
768
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
769
|
+
[1m[35m (0.2ms)[0m BEGIN
|
770
|
+
------------------------------------------------------------------------
|
771
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
772
|
+
------------------------------------------------------------------------
|
773
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
774
|
+
[1m[35mPost Exists (0.6ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
775
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-10-29 01:00:36.224867"], ["updated_at", "2015-10-29 01:00:36.224867"]]
|
776
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
777
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
778
|
+
[1m[35m (0.3ms)[0m BEGIN
|
779
|
+
-------------------------------------------------------------------------
|
780
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
781
|
+
-------------------------------------------------------------------------
|
782
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
783
|
+
[1m[35mPost Exists (0.6ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
784
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-29 01:00:36.230440"], ["updated_at", "2015-10-29 01:00:36.230440"]]
|
785
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
786
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
787
|
+
[1m[35mPost Exists (0.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
788
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
789
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
790
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
791
|
+
----------------------------------------------
|
792
|
+
SluggableTest: test_validates_presence_of_slug
|
793
|
+
----------------------------------------------
|
794
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
795
|
+
[1m[36mPost Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('') LIMIT 1[0m
|
796
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
797
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
798
|
+
[1m[35m (0.3ms)[0m BEGIN
|
799
|
+
-------------------------
|
800
|
+
HumanUrlsTest: test_truth
|
801
|
+
-------------------------
|
802
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
803
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
804
|
+
[1m[35m (0.4ms)[0m BEGIN
|
805
|
+
-------------------------
|
806
|
+
HumanUrlsTest: test_truth
|
807
|
+
-------------------------
|
808
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
809
|
+
[1m[35m (0.2ms)[0m BEGIN
|
810
|
+
----------------------------------------------
|
811
|
+
SluggableTest: test_#to_param_returns_the_slug
|
812
|
+
----------------------------------------------
|
813
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
814
|
+
[1m[35mPost Exists (2.1ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
815
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-29 01:15:52.588338"], ["updated_at", "2015-10-29 01:15:52.588338"]]
|
816
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
817
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
818
|
+
[1m[35m (0.2ms)[0m BEGIN
|
819
|
+
--------------------------------------------------------------------
|
820
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
821
|
+
--------------------------------------------------------------------
|
822
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
823
|
+
[1m[35mTaggableWGeneratedSlug Exists (1.8ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
824
|
+
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-10-29 01:15:52.604753"], ["updated_at", "2015-10-29 01:15:52.604753"]]
|
825
|
+
[1m[35m (0.7ms)[0m RELEASE SAVEPOINT active_record_1
|
826
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
827
|
+
[1m[35m (0.2ms)[0m BEGIN
|
828
|
+
------------------------------------------------
|
829
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
830
|
+
------------------------------------------------
|
831
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
832
|
+
[1m[35mPost Exists (0.6ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
833
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-29 01:15:52.614039"], ["updated_at", "2015-10-29 01:15:52.614039"]]
|
834
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
835
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
836
|
+
[1m[35mPost Exists (0.9ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
837
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
838
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
839
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
840
|
+
------------------------------------------------------------------------
|
841
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
842
|
+
------------------------------------------------------------------------
|
843
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
844
|
+
[1m[36mPost Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
845
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-10-29 01:15:52.627591"], ["updated_at", "2015-10-29 01:15:52.627591"]]
|
846
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
847
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
848
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
849
|
+
-------------------------------------------------------------------------
|
850
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
851
|
+
-------------------------------------------------------------------------
|
852
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
853
|
+
[1m[36mPost Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
854
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-10-29 01:15:52.633299"], ["updated_at", "2015-10-29 01:15:52.633299"]]
|
855
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
856
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
857
|
+
[1m[36mPost Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
858
|
+
[1m[35m (0.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
859
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
860
|
+
[1m[35m (0.2ms)[0m BEGIN
|
861
|
+
----------------------------------------------
|
862
|
+
SluggableTest: test_validates_presence_of_slug
|
863
|
+
----------------------------------------------
|
864
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
865
|
+
[1m[35mPost Exists (0.4ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('') LIMIT 1
|
866
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
867
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
868
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
869
|
+
[1m[35m (0.3ms)[0m BEGIN
|
870
|
+
-------------------------
|
871
|
+
HumanUrlsTest: test_truth
|
872
|
+
-------------------------
|
873
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
874
|
+
[1m[35m (0.2ms)[0m BEGIN
|
875
|
+
----------------------------------------------
|
876
|
+
SluggableTest: test_#to_param_returns_the_slug
|
877
|
+
----------------------------------------------
|
878
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
879
|
+
[1m[35mPost Exists (1.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
880
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-29 01:21:48.351845"], ["updated_at", "2015-10-29 01:21:48.351845"]]
|
881
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
882
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
883
|
+
[1m[35m (0.3ms)[0m BEGIN
|
884
|
+
--------------------------------------------------------------------
|
885
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
886
|
+
--------------------------------------------------------------------
|
887
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
888
|
+
[1m[35mTaggableWGeneratedSlug Exists (1.1ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
889
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-10-29 01:21:48.370208"], ["updated_at", "2015-10-29 01:21:48.370208"]]
|
890
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
891
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
892
|
+
[1m[35m (0.3ms)[0m BEGIN
|
893
|
+
------------------------------------------------------------------------
|
894
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
895
|
+
------------------------------------------------------------------------
|
896
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
897
|
+
[1m[35mPost Exists (0.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
898
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-10-29 01:21:48.377502"], ["updated_at", "2015-10-29 01:21:48.377502"]]
|
899
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
900
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
901
|
+
[1m[35m (0.2ms)[0m BEGIN
|
902
|
+
----------------------------------------------
|
903
|
+
SluggableTest: test_validates_presence_of_slug
|
904
|
+
----------------------------------------------
|
905
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
906
|
+
[1m[35mPost Exists (0.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('') LIMIT 1
|
907
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
908
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
909
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
910
|
+
-------------------------------------------------------------------------
|
911
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
912
|
+
-------------------------------------------------------------------------
|
913
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
914
|
+
[1m[36mPost Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
915
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-10-29 01:21:48.388203"], ["updated_at", "2015-10-29 01:21:48.388203"]]
|
916
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
917
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
918
|
+
[1m[36mPost Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1[0m
|
919
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
920
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
921
|
+
[1m[35m (0.2ms)[0m BEGIN
|
922
|
+
------------------------------------------------
|
923
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
924
|
+
------------------------------------------------
|
925
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
926
|
+
[1m[35mPost Exists (0.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
927
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-29 01:21:48.397800"], ["updated_at", "2015-10-29 01:21:48.397800"]]
|
928
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
929
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
930
|
+
[1m[35mPost Exists (1.2ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
931
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
932
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
933
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
934
|
+
[1m[35m (0.4ms)[0m BEGIN
|
935
|
+
-------------------------
|
936
|
+
HumanUrlsTest: test_truth
|
937
|
+
-------------------------
|
938
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
939
|
+
[1m[35m (0.2ms)[0m BEGIN
|
940
|
+
------------------------------------------------
|
941
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
942
|
+
------------------------------------------------
|
943
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
944
|
+
[1m[35mPost Exists (1.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
945
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-29 01:22:28.743854"], ["updated_at", "2015-10-29 01:22:28.743854"]]
|
946
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
947
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
948
|
+
[1m[35mPost Exists (0.9ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
949
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
950
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
951
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
952
|
+
--------------------------------------------------------------------
|
953
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
954
|
+
--------------------------------------------------------------------
|
955
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
956
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
957
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-10-29 01:22:28.766751"], ["updated_at", "2015-10-29 01:22:28.766751"]]
|
958
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
959
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
960
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
961
|
+
----------------------------------------------
|
962
|
+
SluggableTest: test_validates_presence_of_slug
|
963
|
+
----------------------------------------------
|
964
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
965
|
+
[1m[36mPost Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('') LIMIT 1[0m
|
966
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
967
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
968
|
+
[1m[35m (0.2ms)[0m BEGIN
|
969
|
+
----------------------------------------------
|
970
|
+
SluggableTest: test_#to_param_returns_the_slug
|
971
|
+
----------------------------------------------
|
972
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
973
|
+
[1m[35mPost Exists (0.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
974
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-29 01:22:28.777357"], ["updated_at", "2015-10-29 01:22:28.777357"]]
|
975
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
976
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
977
|
+
[1m[35m (0.2ms)[0m BEGIN
|
978
|
+
------------------------------------------------------------------------
|
979
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
980
|
+
------------------------------------------------------------------------
|
981
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
982
|
+
[1m[35mPost Exists (0.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
983
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-10-29 01:22:28.782544"], ["updated_at", "2015-10-29 01:22:28.782544"]]
|
984
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
985
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
986
|
+
[1m[35m (0.2ms)[0m BEGIN
|
987
|
+
-------------------------------------------------------------------------
|
988
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
989
|
+
-------------------------------------------------------------------------
|
990
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
991
|
+
[1m[35mPost Exists (0.4ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
992
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-29 01:22:28.787491"], ["updated_at", "2015-10-29 01:22:28.787491"]]
|
993
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
994
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
995
|
+
[1m[35mPost Exists (0.5ms)[0m SELECT 1 AS one FROM "posts" WHERE LOWER("posts"."slug") = LOWER('slug') LIMIT 1
|
996
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
997
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
998
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
999
|
+
[1m[36m (126.0ms)[0m [1mDROP DATABASE IF EXISTS "human_urls_test"[0m
|
1000
|
+
[1m[35m (426.6ms)[0m CREATE DATABASE "human_urls_test" ENCODING = 'unicode'
|
1001
|
+
[1m[36mSQL (0.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1002
|
+
[1m[35m (7.2ms)[0m CREATE TABLE "taggable_w_generated_slugs" ("id" serial primary key, "title" character varying, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
1003
|
+
[1m[36m (1.9ms)[0m [1mCREATE UNIQUE INDEX "index_taggable_w_generated_slugs_on_slug" ON "taggable_w_generated_slugs" USING btree ("slug")[0m
|
1004
|
+
[1m[35m (5.2ms)[0m CREATE TABLE "taggables" ("id" serial primary key, "title" character varying, "slug" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
1005
|
+
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "index_taggables_on_slug" ON "taggables" USING btree ("slug")[0m
|
1006
|
+
[1m[35m (2.5ms)[0m CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
|
1007
|
+
[1m[36m (1.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
1008
|
+
[1m[35m (0.6ms)[0m SELECT version FROM "schema_migrations"
|
1009
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151029012517')[0m
|
1010
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20151022230845')
|
1011
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20151029003656')[0m
|
1012
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.7ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
1013
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
1014
|
+
----------------------------------------------
|
1015
|
+
SluggableTest: test_validates_presence_of_slug
|
1016
|
+
----------------------------------------------
|
1017
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
1018
|
+
[1m[36mTaggable Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1[0m
|
1019
|
+
[1m[35m (0.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1020
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1021
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1022
|
+
-------------------------------------------------------------------------
|
1023
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
1024
|
+
-------------------------------------------------------------------------
|
1025
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1026
|
+
[1m[35mTaggable Exists (0.7ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1027
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-29 01:31:07.830220"], ["updated_at", "2015-10-29 01:31:07.830220"]]
|
1028
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
1029
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1030
|
+
[1m[35mTaggable Exists (0.8ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1031
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1032
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
1033
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1034
|
+
------------------------------------------------------------------------
|
1035
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
1036
|
+
------------------------------------------------------------------------
|
1037
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1038
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
1039
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-10-29 01:31:07.842773"], ["updated_at", "2015-10-29 01:31:07.842773"]]
|
1040
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1041
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1042
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1043
|
+
--------------------------------------------------------------------
|
1044
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
1045
|
+
--------------------------------------------------------------------
|
1046
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
1047
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
1048
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-10-29 01:31:07.858981"], ["updated_at", "2015-10-29 01:31:07.858981"]]
|
1049
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1050
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1051
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1052
|
+
------------------------------------------------
|
1053
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
1054
|
+
------------------------------------------------
|
1055
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1056
|
+
[1m[36mTaggable Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1057
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-10-29 01:31:07.864296"], ["updated_at", "2015-10-29 01:31:07.864296"]]
|
1058
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1059
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1060
|
+
[1m[36mTaggable Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1061
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1062
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1063
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1064
|
+
----------------------------------------------
|
1065
|
+
SluggableTest: test_#to_param_returns_the_slug
|
1066
|
+
----------------------------------------------
|
1067
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1068
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1069
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-29 01:31:07.871725"], ["updated_at", "2015-10-29 01:31:07.871725"]]
|
1070
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1071
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1072
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1073
|
+
-------------------------
|
1074
|
+
HumanUrlsTest: test_truth
|
1075
|
+
-------------------------
|
1076
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1077
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1078
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1079
|
+
-------------------------
|
1080
|
+
HumanUrlsTest: test_truth
|
1081
|
+
-------------------------
|
1082
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1083
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1084
|
+
----------------------------------------------
|
1085
|
+
SluggableTest: test_validates_presence_of_slug
|
1086
|
+
----------------------------------------------
|
1087
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
1088
|
+
[1m[35mTaggable Exists (1.3ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
1089
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1090
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1091
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1092
|
+
--------------------------------------------------------------------
|
1093
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
1094
|
+
--------------------------------------------------------------------
|
1095
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1096
|
+
[1m[36mTaggableWGeneratedSlug Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
1097
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-10-29 01:31:28.586421"], ["updated_at", "2015-10-29 01:31:28.586421"]]
|
1098
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1099
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
1100
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1101
|
+
------------------------------------------------------------------------
|
1102
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
1103
|
+
------------------------------------------------------------------------
|
1104
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1105
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
1106
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-10-29 01:31:28.593489"], ["updated_at", "2015-10-29 01:31:28.593489"]]
|
1107
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1108
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
1109
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1110
|
+
----------------------------------------------
|
1111
|
+
SluggableTest: test_#to_param_returns_the_slug
|
1112
|
+
----------------------------------------------
|
1113
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1114
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1115
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-10-29 01:31:28.598554"], ["updated_at", "2015-10-29 01:31:28.598554"]]
|
1116
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1117
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1118
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1119
|
+
------------------------------------------------
|
1120
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
1121
|
+
------------------------------------------------
|
1122
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1123
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1124
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-10-29 01:31:28.603683"], ["updated_at", "2015-10-29 01:31:28.603683"]]
|
1125
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1126
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1127
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1128
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1129
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1130
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1131
|
+
-------------------------------------------------------------------------
|
1132
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
1133
|
+
-------------------------------------------------------------------------
|
1134
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1135
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1136
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-10-29 01:31:28.612174"], ["updated_at", "2015-10-29 01:31:28.612174"]]
|
1137
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
1138
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1139
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1140
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1141
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1142
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1143
|
+
[1m[35m (0.8ms)[0m BEGIN
|
1144
|
+
----------------------------------------------
|
1145
|
+
SluggableTest: test_#to_param_returns_the_slug
|
1146
|
+
----------------------------------------------
|
1147
|
+
[1m[36m (0.9ms)[0m [1mSAVEPOINT active_record_1[0m
|
1148
|
+
[1m[35mTaggable Exists (6.2ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1149
|
+
[1m[36mSQL (7.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-01 01:35:11.674448"], ["updated_at", "2015-11-01 01:35:11.674448"]]
|
1150
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
1151
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
1152
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1153
|
+
----------------------------------------------
|
1154
|
+
SluggableTest: test_validates_presence_of_slug
|
1155
|
+
----------------------------------------------
|
1156
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1157
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
1158
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1159
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
1160
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1161
|
+
-------------------------------------------------------------------------
|
1162
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
1163
|
+
-------------------------------------------------------------------------
|
1164
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
1165
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1166
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-01 01:35:11.697284"], ["updated_at", "2015-11-01 01:35:11.697284"]]
|
1167
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1168
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1169
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1170
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1171
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1172
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1173
|
+
--------------------------------------------------------------------
|
1174
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
1175
|
+
--------------------------------------------------------------------
|
1176
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1177
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.8ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
1178
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-01 01:35:11.713588"], ["updated_at", "2015-11-01 01:35:11.713588"]]
|
1179
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
1180
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
1181
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1182
|
+
------------------------------------------------
|
1183
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
1184
|
+
------------------------------------------------
|
1185
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1186
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1187
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-01 01:35:11.720639"], ["updated_at", "2015-11-01 01:35:11.720639"]]
|
1188
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1189
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1190
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1191
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1192
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1193
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1194
|
+
------------------------------------------------------------------------
|
1195
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
1196
|
+
------------------------------------------------------------------------
|
1197
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1198
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
1199
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-01 01:35:11.729000"], ["updated_at", "2015-11-01 01:35:11.729000"]]
|
1200
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1201
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1202
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1203
|
+
-------------------------
|
1204
|
+
HumanUrlsTest: test_truth
|
1205
|
+
-------------------------
|
1206
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1207
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1208
|
+
[1m[35m (0.8ms)[0m BEGIN
|
1209
|
+
-------------------------------------------------------------------------
|
1210
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_runs_without_errors
|
1211
|
+
-------------------------------------------------------------------------
|
1212
|
+
[1m[36m (1.1ms)[0m [1mROLLBACK[0m
|
1213
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1214
|
+
-------------------------
|
1215
|
+
HumanUrlsTest: test_truth
|
1216
|
+
-------------------------
|
1217
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1218
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1219
|
+
----------------------------------------------
|
1220
|
+
SluggableTest: test_validates_presence_of_slug
|
1221
|
+
----------------------------------------------
|
1222
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
1223
|
+
[1m[35mTaggable Exists (8.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
1224
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1225
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1226
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1227
|
+
------------------------------------------------
|
1228
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
1229
|
+
------------------------------------------------
|
1230
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
1231
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1232
|
+
[1m[35mSQL (7.7ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-03 03:25:41.727163"], ["updated_at", "2015-11-03 03:25:41.727163"]]
|
1233
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1234
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1235
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1236
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1237
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1238
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1239
|
+
----------------------------------------------
|
1240
|
+
SluggableTest: test_#to_param_returns_the_slug
|
1241
|
+
----------------------------------------------
|
1242
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1243
|
+
[1m[35mTaggable Exists (0.7ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1244
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-03 03:25:41.754500"], ["updated_at", "2015-11-03 03:25:41.754500"]]
|
1245
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1246
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1247
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1248
|
+
-------------------------------------------------------------------------
|
1249
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
1250
|
+
-------------------------------------------------------------------------
|
1251
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1252
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1253
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-03 03:25:41.759207"], ["updated_at", "2015-11-03 03:25:41.759207"]]
|
1254
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1255
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1256
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1257
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1258
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1259
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1260
|
+
--------------------------------------------------------------------
|
1261
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
1262
|
+
--------------------------------------------------------------------
|
1263
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
1264
|
+
[1m[36mTaggableWGeneratedSlug Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
1265
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-03 03:25:41.776623"], ["updated_at", "2015-11-03 03:25:41.776623"]]
|
1266
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1267
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1268
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1269
|
+
------------------------------------------------------------------------
|
1270
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
1271
|
+
------------------------------------------------------------------------
|
1272
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1273
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
1274
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-03 03:25:41.782904"], ["updated_at", "2015-11-03 03:25:41.782904"]]
|
1275
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1276
|
+
[1m[35m (2.0ms)[0m ROLLBACK
|
1277
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1278
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1279
|
+
----------------------------------------------
|
1280
|
+
SluggableTest: test_#to_param_returns_the_slug
|
1281
|
+
----------------------------------------------
|
1282
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1283
|
+
[1m[35mTaggable Exists (1.1ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1284
|
+
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-03 03:36:08.649857"], ["updated_at", "2015-11-03 03:36:08.649857"]]
|
1285
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
1286
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
1287
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1288
|
+
-------------------------------------------------------------------------
|
1289
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
1290
|
+
-------------------------------------------------------------------------
|
1291
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1292
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1293
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-03 03:36:08.658980"], ["updated_at", "2015-11-03 03:36:08.658980"]]
|
1294
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1295
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1296
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1297
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1298
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1299
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1300
|
+
------------------------------------------------------------------------
|
1301
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
1302
|
+
------------------------------------------------------------------------
|
1303
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1304
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
1305
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-03 03:36:08.668286"], ["updated_at", "2015-11-03 03:36:08.668286"]]
|
1306
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1307
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1308
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1309
|
+
----------------------------------------------
|
1310
|
+
SluggableTest: test_validates_presence_of_slug
|
1311
|
+
----------------------------------------------
|
1312
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
1313
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1[0m
|
1314
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1315
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1316
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1317
|
+
--------------------------------------------------------------------
|
1318
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
1319
|
+
--------------------------------------------------------------------
|
1320
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
1321
|
+
[1m[35mTaggableWGeneratedSlug Exists (1.1ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
1322
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-03 03:36:08.689378"], ["updated_at", "2015-11-03 03:36:08.689378"]]
|
1323
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1324
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1325
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1326
|
+
------------------------------------------------
|
1327
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
1328
|
+
------------------------------------------------
|
1329
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1330
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1331
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-03 03:36:08.696503"], ["updated_at", "2015-11-03 03:36:08.696503"]]
|
1332
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1333
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1334
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1335
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1336
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
1337
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1338
|
+
-------------------------
|
1339
|
+
HumanUrlsTest: test_truth
|
1340
|
+
-------------------------
|
1341
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1342
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1343
|
+
-------------------------------------------------------------------------
|
1344
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_runs_without_errors
|
1345
|
+
-------------------------------------------------------------------------
|
1346
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1347
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1348
|
+
[1m[35m (0.6ms)[0m BEGIN
|
1349
|
+
----------------------------------------------
|
1350
|
+
SluggableTest: test_validates_presence_of_slug
|
1351
|
+
----------------------------------------------
|
1352
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
1353
|
+
[1m[35mTaggable Exists (2.8ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
1354
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1355
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
1356
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1357
|
+
--------------------------------------------------------------------
|
1358
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
1359
|
+
--------------------------------------------------------------------
|
1360
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
1361
|
+
[1m[36mTaggableWGeneratedSlug Exists (1.2ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
1362
|
+
[1m[35mSQL (13.4ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-10 18:17:41.461198"], ["updated_at", "2015-11-10 18:17:41.461198"]]
|
1363
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1364
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
1365
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1366
|
+
------------------------------------------------------------------------
|
1367
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
1368
|
+
------------------------------------------------------------------------
|
1369
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
1370
|
+
[1m[36mTaggable Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
1371
|
+
[1m[35mSQL (2.2ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-10 18:17:41.482719"], ["updated_at", "2015-11-10 18:17:41.482719"]]
|
1372
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1373
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1374
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1375
|
+
-------------------------------------------------------------------------
|
1376
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
1377
|
+
-------------------------------------------------------------------------
|
1378
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
1379
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1380
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-10 18:17:41.491689"], ["updated_at", "2015-11-10 18:17:41.491689"]]
|
1381
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1382
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
1383
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1384
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1385
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1386
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1387
|
+
------------------------------------------------
|
1388
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
1389
|
+
------------------------------------------------
|
1390
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1391
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1392
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-10 18:17:41.500447"], ["updated_at", "2015-11-10 18:17:41.500447"]]
|
1393
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1394
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1395
|
+
[1m[35mTaggable Exists (0.7ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1396
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1397
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1398
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1399
|
+
----------------------------------------------
|
1400
|
+
SluggableTest: test_#to_param_returns_the_slug
|
1401
|
+
----------------------------------------------
|
1402
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1403
|
+
[1m[36mTaggable Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1404
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-10 18:17:41.508322"], ["updated_at", "2015-11-10 18:17:41.508322"]]
|
1405
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1406
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1407
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1408
|
+
-------------------------------------------------------------------------
|
1409
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_runs_without_errors
|
1410
|
+
-------------------------------------------------------------------------
|
1411
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1412
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1413
|
+
-------------------------
|
1414
|
+
HumanUrlsTest: test_truth
|
1415
|
+
-------------------------
|
1416
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1417
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1418
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1419
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1420
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1421
|
+
-------------------------
|
1422
|
+
HumanUrlsTest: test_truth
|
1423
|
+
-------------------------
|
1424
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1425
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1426
|
+
------------------------------------------------------------------------
|
1427
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
1428
|
+
------------------------------------------------------------------------
|
1429
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1430
|
+
[1m[35mTaggable Exists (1.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
1431
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-10 19:31:21.125771"], ["updated_at", "2015-11-10 19:31:21.125771"]]
|
1432
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1433
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
1434
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1435
|
+
--------------------------------------------------------------------
|
1436
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
1437
|
+
--------------------------------------------------------------------
|
1438
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1439
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.8ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
1440
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-10 19:31:21.142953"], ["updated_at", "2015-11-10 19:31:21.142953"]]
|
1441
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1442
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1443
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1444
|
+
----------------------------------------------
|
1445
|
+
SluggableTest: test_#to_param_returns_the_slug
|
1446
|
+
----------------------------------------------
|
1447
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1448
|
+
[1m[35mTaggable Exists (0.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1449
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-10 19:31:21.148576"], ["updated_at", "2015-11-10 19:31:21.148576"]]
|
1450
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1451
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1452
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1453
|
+
----------------------------------------------
|
1454
|
+
SluggableTest: test_validates_presence_of_slug
|
1455
|
+
----------------------------------------------
|
1456
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1457
|
+
[1m[35mTaggable Exists (0.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
1458
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1459
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1460
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1461
|
+
------------------------------------------------
|
1462
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
1463
|
+
------------------------------------------------
|
1464
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1465
|
+
[1m[36mTaggable Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1466
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-10 19:31:21.157307"], ["updated_at", "2015-11-10 19:31:21.157307"]]
|
1467
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1468
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1469
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1470
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1471
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1472
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1473
|
+
-------------------------------------------------------------------------
|
1474
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
1475
|
+
-------------------------------------------------------------------------
|
1476
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1477
|
+
[1m[35mTaggable Exists (0.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1478
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-10 19:31:21.165957"], ["updated_at", "2015-11-10 19:31:21.165957"]]
|
1479
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1480
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1481
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1482
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1483
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1484
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1485
|
+
------------------------------------------------------------------------------
|
1486
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
1487
|
+
------------------------------------------------------------------------------
|
1488
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1489
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1490
|
+
-------------------------------------------------------------------------
|
1491
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_runs_without_errors
|
1492
|
+
-------------------------------------------------------------------------
|
1493
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1494
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1495
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1496
|
+
-------------------------
|
1497
|
+
HumanUrlsTest: test_truth
|
1498
|
+
-------------------------
|
1499
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1500
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1501
|
+
-------------------------------------------------------------------------
|
1502
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_runs_without_errors
|
1503
|
+
-------------------------------------------------------------------------
|
1504
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
1505
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1506
|
+
------------------------------------------------------------------------------
|
1507
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
1508
|
+
------------------------------------------------------------------------------
|
1509
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1510
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1511
|
+
----------------------------------------------
|
1512
|
+
SluggableTest: test_#to_param_returns_the_slug
|
1513
|
+
----------------------------------------------
|
1514
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1515
|
+
[1m[35mTaggable Exists (1.0ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1516
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-10 19:31:42.661357"], ["updated_at", "2015-11-10 19:31:42.661357"]]
|
1517
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1518
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1519
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1520
|
+
------------------------------------------------
|
1521
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
1522
|
+
------------------------------------------------
|
1523
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1524
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1525
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-10 19:31:42.667644"], ["updated_at", "2015-11-10 19:31:42.667644"]]
|
1526
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1527
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1528
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1529
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1530
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
1531
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1532
|
+
------------------------------------------------------------------------
|
1533
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
1534
|
+
------------------------------------------------------------------------
|
1535
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1536
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
1537
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-10 19:31:42.677470"], ["updated_at", "2015-11-10 19:31:42.677470"]]
|
1538
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1539
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1540
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1541
|
+
--------------------------------------------------------------------
|
1542
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
1543
|
+
--------------------------------------------------------------------
|
1544
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
1545
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
1546
|
+
[1m[35mSQL (2.4ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-10 19:31:42.692823"], ["updated_at", "2015-11-10 19:31:42.692823"]]
|
1547
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1548
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1549
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1550
|
+
-------------------------------------------------------------------------
|
1551
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
1552
|
+
-------------------------------------------------------------------------
|
1553
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1554
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1555
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-10 19:31:42.702336"], ["updated_at", "2015-11-10 19:31:42.702336"]]
|
1556
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1557
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
1558
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1559
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1560
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1561
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1562
|
+
----------------------------------------------
|
1563
|
+
SluggableTest: test_validates_presence_of_slug
|
1564
|
+
----------------------------------------------
|
1565
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1566
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
1567
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1568
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1569
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1570
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1571
|
+
-------------------------------------------------------------------------
|
1572
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
1573
|
+
-------------------------------------------------------------------------
|
1574
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1575
|
+
[1m[35mTaggable Exists (1.2ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1576
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-10 19:32:01.522976"], ["updated_at", "2015-11-10 19:32:01.522976"]]
|
1577
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1578
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1579
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1580
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1581
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1582
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1583
|
+
------------------------------------------------
|
1584
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
1585
|
+
------------------------------------------------
|
1586
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1587
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1588
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-10 19:32:01.533730"], ["updated_at", "2015-11-10 19:32:01.533730"]]
|
1589
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1590
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
1591
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1592
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1593
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1594
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1595
|
+
--------------------------------------------------------------------
|
1596
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
1597
|
+
--------------------------------------------------------------------
|
1598
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1599
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.7ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
1600
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-10 19:32:01.549975"], ["updated_at", "2015-11-10 19:32:01.549975"]]
|
1601
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1602
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1603
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1604
|
+
----------------------------------------------
|
1605
|
+
SluggableTest: test_#to_param_returns_the_slug
|
1606
|
+
----------------------------------------------
|
1607
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1608
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1609
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-10 19:32:01.555574"], ["updated_at", "2015-11-10 19:32:01.555574"]]
|
1610
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
1611
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1612
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1613
|
+
------------------------------------------------------------------------
|
1614
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
1615
|
+
------------------------------------------------------------------------
|
1616
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1617
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
1618
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-10 19:32:01.561222"], ["updated_at", "2015-11-10 19:32:01.561222"]]
|
1619
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
1620
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1621
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1622
|
+
----------------------------------------------
|
1623
|
+
SluggableTest: test_validates_presence_of_slug
|
1624
|
+
----------------------------------------------
|
1625
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1626
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
1627
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1628
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1629
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1630
|
+
-------------------------
|
1631
|
+
HumanUrlsTest: test_truth
|
1632
|
+
-------------------------
|
1633
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1634
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1635
|
+
------------------------------------------------------------------------------
|
1636
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
1637
|
+
------------------------------------------------------------------------------
|
1638
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1639
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1640
|
+
[1m[35m (0.4ms)[0m BEGIN
|
1641
|
+
--------------------------------------------------------------------
|
1642
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
1643
|
+
--------------------------------------------------------------------
|
1644
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
1645
|
+
[1m[35mTaggableWGeneratedSlug Exists (1.2ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
1646
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-10 19:32:18.329371"], ["updated_at", "2015-11-10 19:32:18.329371"]]
|
1647
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1648
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
1649
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1650
|
+
-------------------------------------------------------------------------
|
1651
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
1652
|
+
-------------------------------------------------------------------------
|
1653
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1654
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1655
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-10 19:32:18.342794"], ["updated_at", "2015-11-10 19:32:18.342794"]]
|
1656
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1657
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1658
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1659
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1660
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1661
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1662
|
+
------------------------------------------------
|
1663
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
1664
|
+
------------------------------------------------
|
1665
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1666
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1667
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-10 19:32:18.351267"], ["updated_at", "2015-11-10 19:32:18.351267"]]
|
1668
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1669
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1670
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1671
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1672
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1673
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1674
|
+
----------------------------------------------
|
1675
|
+
SluggableTest: test_validates_presence_of_slug
|
1676
|
+
----------------------------------------------
|
1677
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1678
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
1679
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1680
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1681
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1682
|
+
------------------------------------------------------------------------
|
1683
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
1684
|
+
------------------------------------------------------------------------
|
1685
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1686
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
1687
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-10 19:32:18.363471"], ["updated_at", "2015-11-10 19:32:18.363471"]]
|
1688
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1689
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1690
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1691
|
+
----------------------------------------------
|
1692
|
+
SluggableTest: test_#to_param_returns_the_slug
|
1693
|
+
----------------------------------------------
|
1694
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1695
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1696
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-10 19:32:18.368553"], ["updated_at", "2015-11-10 19:32:18.368553"]]
|
1697
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1698
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1699
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1700
|
+
-------------------------
|
1701
|
+
HumanUrlsTest: test_truth
|
1702
|
+
-------------------------
|
1703
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1704
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1705
|
+
------------------------------------------------------------------------------
|
1706
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
1707
|
+
------------------------------------------------------------------------------
|
1708
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
1709
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1710
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1711
|
+
-------------------------
|
1712
|
+
HumanUrlsTest: test_truth
|
1713
|
+
-------------------------
|
1714
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1715
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1716
|
+
------------------------------------------------------------------------
|
1717
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
1718
|
+
------------------------------------------------------------------------
|
1719
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1720
|
+
[1m[35mTaggable Exists (1.1ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
1721
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-10 19:34:53.152538"], ["updated_at", "2015-11-10 19:34:53.152538"]]
|
1722
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1723
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
1724
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1725
|
+
--------------------------------------------------------------------
|
1726
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
1727
|
+
--------------------------------------------------------------------
|
1728
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1729
|
+
[1m[35mTaggableWGeneratedSlug Exists (1.1ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
1730
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-10 19:34:53.166316"], ["updated_at", "2015-11-10 19:34:53.166316"]]
|
1731
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1732
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1733
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1734
|
+
----------------------------------------------
|
1735
|
+
SluggableTest: test_#to_param_returns_the_slug
|
1736
|
+
----------------------------------------------
|
1737
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1738
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1739
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-10 19:34:53.173091"], ["updated_at", "2015-11-10 19:34:53.173091"]]
|
1740
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1741
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1742
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1743
|
+
----------------------------------------------
|
1744
|
+
SluggableTest: test_validates_presence_of_slug
|
1745
|
+
----------------------------------------------
|
1746
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1747
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
1748
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1749
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1750
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1751
|
+
------------------------------------------------
|
1752
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
1753
|
+
------------------------------------------------
|
1754
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1755
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1756
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-10 19:34:53.182490"], ["updated_at", "2015-11-10 19:34:53.182490"]]
|
1757
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1758
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1759
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1760
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1761
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1762
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1763
|
+
-------------------------------------------------------------------------
|
1764
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
1765
|
+
-------------------------------------------------------------------------
|
1766
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1767
|
+
[1m[35mTaggable Exists (0.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1768
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-10 19:34:53.190468"], ["updated_at", "2015-11-10 19:34:53.190468"]]
|
1769
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1770
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1771
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1772
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1773
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1774
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1775
|
+
------------------------------------------------------------------------------
|
1776
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
1777
|
+
------------------------------------------------------------------------------
|
1778
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1779
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1780
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1781
|
+
------------------------------------------------------------------------------
|
1782
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
1783
|
+
------------------------------------------------------------------------------
|
1784
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1785
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1786
|
+
------------------------------------------------------------------------
|
1787
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
1788
|
+
------------------------------------------------------------------------
|
1789
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1790
|
+
[1m[35mTaggable Exists (1.1ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
1791
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-10 19:36:19.143325"], ["updated_at", "2015-11-10 19:36:19.143325"]]
|
1792
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1793
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
1794
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1795
|
+
----------------------------------------------
|
1796
|
+
SluggableTest: test_#to_param_returns_the_slug
|
1797
|
+
----------------------------------------------
|
1798
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1799
|
+
[1m[35mTaggable Exists (0.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1800
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-10 19:36:19.149640"], ["updated_at", "2015-11-10 19:36:19.149640"]]
|
1801
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1802
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1803
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1804
|
+
----------------------------------------------
|
1805
|
+
SluggableTest: test_validates_presence_of_slug
|
1806
|
+
----------------------------------------------
|
1807
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1808
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
1809
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1810
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1811
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1812
|
+
--------------------------------------------------------------------
|
1813
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
1814
|
+
--------------------------------------------------------------------
|
1815
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
1816
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
1817
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-10 19:36:19.166264"], ["updated_at", "2015-11-10 19:36:19.166264"]]
|
1818
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1819
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1820
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1821
|
+
-------------------------------------------------------------------------
|
1822
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
1823
|
+
-------------------------------------------------------------------------
|
1824
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1825
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1826
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-10 19:36:19.172349"], ["updated_at", "2015-11-10 19:36:19.172349"]]
|
1827
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1828
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1829
|
+
[1m[36mTaggable Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1830
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1831
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1832
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1833
|
+
------------------------------------------------
|
1834
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
1835
|
+
------------------------------------------------
|
1836
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1837
|
+
[1m[35mTaggable Exists (0.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1838
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-10 19:36:19.179409"], ["updated_at", "2015-11-10 19:36:19.179409"]]
|
1839
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1840
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1841
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1842
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1843
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1844
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1845
|
+
-------------------------
|
1846
|
+
HumanUrlsTest: test_truth
|
1847
|
+
-------------------------
|
1848
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1849
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1850
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1851
|
+
----------------------------------------------
|
1852
|
+
SluggableTest: test_#to_param_returns_the_slug
|
1853
|
+
----------------------------------------------
|
1854
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1855
|
+
[1m[35mTaggable Exists (1.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1856
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-10 21:31:18.910863"], ["updated_at", "2015-11-10 21:31:18.910863"]]
|
1857
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1858
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
1859
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1860
|
+
--------------------------------------------------------------------
|
1861
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
1862
|
+
--------------------------------------------------------------------
|
1863
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1864
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.9ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
1865
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-10 21:31:18.925627"], ["updated_at", "2015-11-10 21:31:18.925627"]]
|
1866
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1867
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1868
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1869
|
+
------------------------------------------------------------------------
|
1870
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
1871
|
+
------------------------------------------------------------------------
|
1872
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1873
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
1874
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-10 21:31:18.931306"], ["updated_at", "2015-11-10 21:31:18.931306"]]
|
1875
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1876
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1877
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1878
|
+
------------------------------------------------
|
1879
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
1880
|
+
------------------------------------------------
|
1881
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1882
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1883
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-10 21:31:18.936570"], ["updated_at", "2015-11-10 21:31:18.936570"]]
|
1884
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1885
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1886
|
+
[1m[35mTaggable Exists (0.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1887
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1888
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1889
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1890
|
+
-------------------------------------------------------------------------
|
1891
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
1892
|
+
-------------------------------------------------------------------------
|
1893
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1894
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1895
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-10 21:31:18.944843"], ["updated_at", "2015-11-10 21:31:18.944843"]]
|
1896
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1897
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1898
|
+
[1m[36mTaggable Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
1899
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1900
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1901
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1902
|
+
----------------------------------------------
|
1903
|
+
SluggableTest: test_validates_presence_of_slug
|
1904
|
+
----------------------------------------------
|
1905
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1906
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
1907
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1908
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1909
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1910
|
+
-------------------------
|
1911
|
+
HumanUrlsTest: test_truth
|
1912
|
+
-------------------------
|
1913
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1914
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1915
|
+
------------------------------------------------------------------------------
|
1916
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
1917
|
+
------------------------------------------------------------------------------
|
1918
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1919
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1920
|
+
[1m[35m (0.4ms)[0m BEGIN
|
1921
|
+
-------------------------
|
1922
|
+
HumanUrlsTest: test_truth
|
1923
|
+
-------------------------
|
1924
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
1925
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1926
|
+
--------------------------------------------------------------------
|
1927
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
1928
|
+
--------------------------------------------------------------------
|
1929
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
1930
|
+
[1m[35mTaggableWGeneratedSlug Exists (1.5ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
1931
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-10 21:32:32.516245"], ["updated_at", "2015-11-10 21:32:32.516245"]]
|
1932
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1933
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
1934
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1935
|
+
------------------------------------------------
|
1936
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
1937
|
+
------------------------------------------------
|
1938
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1939
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1940
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-10 21:32:32.531491"], ["updated_at", "2015-11-10 21:32:32.531491"]]
|
1941
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1942
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1943
|
+
[1m[35mTaggable Exists (0.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1944
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1945
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1946
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1947
|
+
------------------------------------------------------------------------
|
1948
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
1949
|
+
------------------------------------------------------------------------
|
1950
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1951
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
1952
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-10 21:32:32.540708"], ["updated_at", "2015-11-10 21:32:32.540708"]]
|
1953
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1954
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1955
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1956
|
+
----------------------------------------------
|
1957
|
+
SluggableTest: test_validates_presence_of_slug
|
1958
|
+
----------------------------------------------
|
1959
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1960
|
+
[1m[36mTaggable Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1[0m
|
1961
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
1962
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1963
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1964
|
+
----------------------------------------------
|
1965
|
+
SluggableTest: test_#to_param_returns_the_slug
|
1966
|
+
----------------------------------------------
|
1967
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1968
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1969
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-10 21:32:32.549403"], ["updated_at", "2015-11-10 21:32:32.549403"]]
|
1970
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
1971
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
1972
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1973
|
+
-------------------------------------------------------------------------
|
1974
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
1975
|
+
-------------------------------------------------------------------------
|
1976
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1977
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1978
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-10 21:32:32.555107"], ["updated_at", "2015-11-10 21:32:32.555107"]]
|
1979
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
1980
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1981
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
1982
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1983
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1984
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
1985
|
+
------------------------------------------------------------------------------
|
1986
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
1987
|
+
------------------------------------------------------------------------------
|
1988
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
1989
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1990
|
+
------------------------------------------------------------------------------------------------------------
|
1991
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
1992
|
+
------------------------------------------------------------------------------------------------------------
|
1993
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
1994
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1995
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1996
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1997
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1998
|
+
[1m[35m (1.2ms)[0m BEGIN
|
1999
|
+
-------------------------
|
2000
|
+
HumanUrlsTest: test_truth
|
2001
|
+
-------------------------
|
2002
|
+
[1m[36m (1.0ms)[0m [1mROLLBACK[0m
|
2003
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2004
|
+
------------------------------------------------------------------------------
|
2005
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
2006
|
+
------------------------------------------------------------------------------
|
2007
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
2008
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2009
|
+
------------------------------------------------------------------------------------------------------------
|
2010
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
2011
|
+
------------------------------------------------------------------------------------------------------------
|
2012
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2013
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2014
|
+
------------------------------------------------
|
2015
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
2016
|
+
------------------------------------------------
|
2017
|
+
[1m[36m (0.9ms)[0m [1mSAVEPOINT active_record_1[0m
|
2018
|
+
[1m[35mTaggable Exists (9.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2019
|
+
[1m[36mSQL (11.0ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 21:27:02.756387"], ["updated_at", "2015-11-11 21:27:02.756387"]]
|
2020
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
2021
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2022
|
+
[1m[35mTaggable Exists (0.8ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2023
|
+
[1m[36m (1.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2024
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
2025
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2026
|
+
------------------------------------------------------------------------
|
2027
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
2028
|
+
------------------------------------------------------------------------
|
2029
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2030
|
+
[1m[36mTaggable Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
2031
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-11 21:27:02.785073"], ["updated_at", "2015-11-11 21:27:02.785073"]]
|
2032
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2033
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
2034
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2035
|
+
--------------------------------------------------------------------
|
2036
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
2037
|
+
--------------------------------------------------------------------
|
2038
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2039
|
+
[1m[36mTaggableWGeneratedSlug Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
2040
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-11 21:27:02.800424"], ["updated_at", "2015-11-11 21:27:02.800424"]]
|
2041
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2042
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2043
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2044
|
+
----------------------------------------------
|
2045
|
+
SluggableTest: test_#to_param_returns_the_slug
|
2046
|
+
----------------------------------------------
|
2047
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2048
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2049
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-11 21:27:02.806496"], ["updated_at", "2015-11-11 21:27:02.806496"]]
|
2050
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2051
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2052
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2053
|
+
-------------------------------------------------------------------------
|
2054
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
2055
|
+
-------------------------------------------------------------------------
|
2056
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2057
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2058
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-11 21:27:02.811885"], ["updated_at", "2015-11-11 21:27:02.811885"]]
|
2059
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2060
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2061
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2062
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2063
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2064
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2065
|
+
----------------------------------------------
|
2066
|
+
SluggableTest: test_validates_presence_of_slug
|
2067
|
+
----------------------------------------------
|
2068
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2069
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
2070
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2071
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2072
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2073
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2074
|
+
----------------------------------------------
|
2075
|
+
SluggableTest: test_#to_param_returns_the_slug
|
2076
|
+
----------------------------------------------
|
2077
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2078
|
+
[1m[35mTaggable Exists (1.2ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2079
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 21:27:34.978912"], ["updated_at", "2015-11-11 21:27:34.978912"]]
|
2080
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2081
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
2082
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2083
|
+
----------------------------------------------
|
2084
|
+
SluggableTest: test_validates_presence_of_slug
|
2085
|
+
----------------------------------------------
|
2086
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2087
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
2088
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2089
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2090
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2091
|
+
------------------------------------------------
|
2092
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
2093
|
+
------------------------------------------------
|
2094
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2095
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2096
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-11 21:27:34.992380"], ["updated_at", "2015-11-11 21:27:34.992380"]]
|
2097
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2098
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2099
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2100
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2101
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2102
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2103
|
+
--------------------------------------------------------------------
|
2104
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
2105
|
+
--------------------------------------------------------------------
|
2106
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2107
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.7ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
2108
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-11 21:27:35.010007"], ["updated_at", "2015-11-11 21:27:35.010007"]]
|
2109
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2110
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2111
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2112
|
+
------------------------------------------------------------------------
|
2113
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
2114
|
+
------------------------------------------------------------------------
|
2115
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2116
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
2117
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-11 21:27:35.016875"], ["updated_at", "2015-11-11 21:27:35.016875"]]
|
2118
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2119
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2120
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2121
|
+
-------------------------------------------------------------------------
|
2122
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
2123
|
+
-------------------------------------------------------------------------
|
2124
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2125
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2126
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 21:27:35.022537"], ["updated_at", "2015-11-11 21:27:35.022537"]]
|
2127
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2128
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2129
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2130
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2131
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2132
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2133
|
+
-------------------------
|
2134
|
+
HumanUrlsTest: test_truth
|
2135
|
+
-------------------------
|
2136
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2137
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2138
|
+
------------------------------------------------------------------------------
|
2139
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
2140
|
+
------------------------------------------------------------------------------
|
2141
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2142
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2143
|
+
------------------------------------------------------------------------------------------------------------
|
2144
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
2145
|
+
------------------------------------------------------------------------------------------------------------
|
2146
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2147
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2148
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2149
|
+
-------------------------
|
2150
|
+
HumanUrlsTest: test_truth
|
2151
|
+
-------------------------
|
2152
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2153
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2154
|
+
----------------------------------------------
|
2155
|
+
SluggableTest: test_#to_param_returns_the_slug
|
2156
|
+
----------------------------------------------
|
2157
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2158
|
+
[1m[35mTaggable Exists (1.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2159
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 21:27:59.935536"], ["updated_at", "2015-11-11 21:27:59.935536"]]
|
2160
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2161
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
2162
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2163
|
+
-------------------------------------------------------------------------
|
2164
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
2165
|
+
-------------------------------------------------------------------------
|
2166
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2167
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2168
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 21:27:59.943473"], ["updated_at", "2015-11-11 21:27:59.943473"]]
|
2169
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2170
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2171
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2172
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2173
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
2174
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2175
|
+
------------------------------------------------------------------------
|
2176
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
2177
|
+
------------------------------------------------------------------------
|
2178
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2179
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
2180
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-11 21:27:59.953560"], ["updated_at", "2015-11-11 21:27:59.953560"]]
|
2181
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2182
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2183
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2184
|
+
----------------------------------------------
|
2185
|
+
SluggableTest: test_validates_presence_of_slug
|
2186
|
+
----------------------------------------------
|
2187
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2188
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1[0m
|
2189
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2190
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2191
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2192
|
+
------------------------------------------------
|
2193
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
2194
|
+
------------------------------------------------
|
2195
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2196
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2197
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 21:27:59.962700"], ["updated_at", "2015-11-11 21:27:59.962700"]]
|
2198
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2199
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2200
|
+
[1m[35mTaggable Exists (0.7ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2201
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2202
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2203
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2204
|
+
--------------------------------------------------------------------
|
2205
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
2206
|
+
--------------------------------------------------------------------
|
2207
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2208
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
2209
|
+
[1m[35mSQL (2.1ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-11 21:27:59.981615"], ["updated_at", "2015-11-11 21:27:59.981615"]]
|
2210
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2211
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2212
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2213
|
+
------------------------------------------------------------------------------
|
2214
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
2215
|
+
------------------------------------------------------------------------------
|
2216
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2217
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2218
|
+
------------------------------------------------------------------------------------------------------------
|
2219
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
2220
|
+
------------------------------------------------------------------------------------------------------------
|
2221
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2222
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2223
|
+
[1m[35m (2.4ms)[0m BEGIN
|
2224
|
+
-------------------------
|
2225
|
+
HumanUrlsTest: test_truth
|
2226
|
+
-------------------------
|
2227
|
+
[1m[36m (1.0ms)[0m [1mROLLBACK[0m
|
2228
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2229
|
+
----------------------------------------------
|
2230
|
+
SluggableTest: test_validates_presence_of_slug
|
2231
|
+
----------------------------------------------
|
2232
|
+
[1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
|
2233
|
+
[1m[35mTaggable Exists (3.3ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
2234
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2235
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2236
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2237
|
+
-------------------------------------------------------------------------
|
2238
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
2239
|
+
-------------------------------------------------------------------------
|
2240
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2241
|
+
[1m[36mTaggable Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2242
|
+
[1m[35mSQL (5.9ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-11 22:33:23.680761"], ["updated_at", "2015-11-11 22:33:23.680761"]]
|
2243
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2244
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2245
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2246
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2247
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2248
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2249
|
+
------------------------------------------------------------------------
|
2250
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
2251
|
+
------------------------------------------------------------------------
|
2252
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2253
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
2254
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-11 22:33:23.705800"], ["updated_at", "2015-11-11 22:33:23.705800"]]
|
2255
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2256
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2257
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2258
|
+
--------------------------------------------------------------------
|
2259
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
2260
|
+
--------------------------------------------------------------------
|
2261
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2262
|
+
[1m[35mTaggableWGeneratedSlug Exists (1.0ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
2263
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-11 22:33:23.721181"], ["updated_at", "2015-11-11 22:33:23.721181"]]
|
2264
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2265
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2266
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2267
|
+
----------------------------------------------
|
2268
|
+
SluggableTest: test_#to_param_returns_the_slug
|
2269
|
+
----------------------------------------------
|
2270
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2271
|
+
[1m[35mTaggable Exists (0.7ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2272
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:33:23.727782"], ["updated_at", "2015-11-11 22:33:23.727782"]]
|
2273
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2274
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2275
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2276
|
+
------------------------------------------------
|
2277
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
2278
|
+
------------------------------------------------
|
2279
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2280
|
+
[1m[35mTaggable Exists (0.7ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2281
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:33:23.733552"], ["updated_at", "2015-11-11 22:33:23.733552"]]
|
2282
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2283
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2284
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2285
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2286
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2287
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2288
|
+
------------------------------------------------------------------------------
|
2289
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
2290
|
+
------------------------------------------------------------------------------
|
2291
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2292
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2293
|
+
------------------------------------------------------------------------------------------------------------
|
2294
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
2295
|
+
------------------------------------------------------------------------------------------------------------
|
2296
|
+
[1m[35m (2.2ms)[0m ROLLBACK
|
2297
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2298
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2299
|
+
-------------------------
|
2300
|
+
HumanUrlsTest: test_truth
|
2301
|
+
-------------------------
|
2302
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2303
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2304
|
+
------------------------------------------------
|
2305
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
2306
|
+
------------------------------------------------
|
2307
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2308
|
+
[1m[35mTaggable Exists (1.3ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2309
|
+
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:34:07.739764"], ["updated_at", "2015-11-11 22:34:07.739764"]]
|
2310
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
2311
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2312
|
+
[1m[35mTaggable Exists (0.8ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2313
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2314
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2315
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2316
|
+
----------------------------------------------
|
2317
|
+
SluggableTest: test_#to_param_returns_the_slug
|
2318
|
+
----------------------------------------------
|
2319
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2320
|
+
[1m[36mTaggable Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2321
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-11 22:34:07.755342"], ["updated_at", "2015-11-11 22:34:07.755342"]]
|
2322
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2323
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2324
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2325
|
+
----------------------------------------------
|
2326
|
+
SluggableTest: test_validates_presence_of_slug
|
2327
|
+
----------------------------------------------
|
2328
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2329
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1[0m
|
2330
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2331
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2332
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2333
|
+
-------------------------------------------------------------------------
|
2334
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
2335
|
+
-------------------------------------------------------------------------
|
2336
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2337
|
+
[1m[35mTaggable Exists (0.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2338
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:34:07.765050"], ["updated_at", "2015-11-11 22:34:07.765050"]]
|
2339
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2340
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2341
|
+
[1m[35mTaggable Exists (0.7ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2342
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2343
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2344
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2345
|
+
--------------------------------------------------------------------
|
2346
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
2347
|
+
--------------------------------------------------------------------
|
2348
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2349
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
2350
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-11 22:34:07.784360"], ["updated_at", "2015-11-11 22:34:07.784360"]]
|
2351
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2352
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2353
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2354
|
+
------------------------------------------------------------------------
|
2355
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
2356
|
+
------------------------------------------------------------------------
|
2357
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2358
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
2359
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-11 22:34:07.791712"], ["updated_at", "2015-11-11 22:34:07.791712"]]
|
2360
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2361
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2362
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2363
|
+
------------------------------------------------------------------------------------------------------------
|
2364
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
2365
|
+
------------------------------------------------------------------------------------------------------------
|
2366
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
2367
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2368
|
+
------------------------------------------------------------------------------
|
2369
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
2370
|
+
------------------------------------------------------------------------------
|
2371
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2372
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2373
|
+
[1m[35m (0.4ms)[0m BEGIN
|
2374
|
+
-------------------------
|
2375
|
+
HumanUrlsTest: test_truth
|
2376
|
+
-------------------------
|
2377
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2378
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2379
|
+
-------------------------------------------------------------------------
|
2380
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
2381
|
+
-------------------------------------------------------------------------
|
2382
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2383
|
+
[1m[35mTaggable Exists (1.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2384
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:35:31.843037"], ["updated_at", "2015-11-11 22:35:31.843037"]]
|
2385
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2386
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2387
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2388
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2389
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
2390
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2391
|
+
--------------------------------------------------------------------
|
2392
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
2393
|
+
--------------------------------------------------------------------
|
2394
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2395
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
2396
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-11 22:35:31.862389"], ["updated_at", "2015-11-11 22:35:31.862389"]]
|
2397
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2398
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2399
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2400
|
+
------------------------------------------------------------------------
|
2401
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
2402
|
+
------------------------------------------------------------------------
|
2403
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2404
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
2405
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-11 22:35:31.868294"], ["updated_at", "2015-11-11 22:35:31.868294"]]
|
2406
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2407
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2408
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2409
|
+
------------------------------------------------
|
2410
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
2411
|
+
------------------------------------------------
|
2412
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2413
|
+
[1m[36mTaggable Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2414
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-11 22:35:31.873235"], ["updated_at", "2015-11-11 22:35:31.873235"]]
|
2415
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2416
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2417
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2418
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2419
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2420
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2421
|
+
----------------------------------------------
|
2422
|
+
SluggableTest: test_validates_presence_of_slug
|
2423
|
+
----------------------------------------------
|
2424
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2425
|
+
[1m[35mTaggable Exists (0.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
2426
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2427
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2428
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2429
|
+
----------------------------------------------
|
2430
|
+
SluggableTest: test_#to_param_returns_the_slug
|
2431
|
+
----------------------------------------------
|
2432
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2433
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2434
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-11 22:35:31.886325"], ["updated_at", "2015-11-11 22:35:31.886325"]]
|
2435
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2436
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2437
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2438
|
+
------------------------------------------------------------------------------------------------------------
|
2439
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
2440
|
+
------------------------------------------------------------------------------------------------------------
|
2441
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2442
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2443
|
+
------------------------------------------------------------------------------
|
2444
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
2445
|
+
------------------------------------------------------------------------------
|
2446
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2447
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2448
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2449
|
+
-------------------------
|
2450
|
+
HumanUrlsTest: test_truth
|
2451
|
+
-------------------------
|
2452
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2453
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2454
|
+
------------------------------------------------------------------------------
|
2455
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
2456
|
+
------------------------------------------------------------------------------
|
2457
|
+
[1m[36m (1.0ms)[0m [1mROLLBACK[0m
|
2458
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2459
|
+
------------------------------------------------------------------------------------------------------------
|
2460
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
2461
|
+
------------------------------------------------------------------------------------------------------------
|
2462
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2463
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2464
|
+
----------------------------------------------
|
2465
|
+
SluggableTest: test_#to_param_returns_the_slug
|
2466
|
+
----------------------------------------------
|
2467
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2468
|
+
[1m[35mTaggable Exists (1.0ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2469
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:36:17.196577"], ["updated_at", "2015-11-11 22:36:17.196577"]]
|
2470
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2471
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2472
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2473
|
+
------------------------------------------------
|
2474
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
2475
|
+
------------------------------------------------
|
2476
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2477
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2478
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:36:17.203638"], ["updated_at", "2015-11-11 22:36:17.203638"]]
|
2479
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2480
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2481
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2482
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2483
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2484
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2485
|
+
----------------------------------------------
|
2486
|
+
SluggableTest: test_validates_presence_of_slug
|
2487
|
+
----------------------------------------------
|
2488
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2489
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1[0m
|
2490
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2491
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2492
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2493
|
+
-------------------------------------------------------------------------
|
2494
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
2495
|
+
-------------------------------------------------------------------------
|
2496
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2497
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2498
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:36:17.219368"], ["updated_at", "2015-11-11 22:36:17.219368"]]
|
2499
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2500
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2501
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2502
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2503
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2504
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2505
|
+
--------------------------------------------------------------------
|
2506
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
2507
|
+
--------------------------------------------------------------------
|
2508
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2509
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
2510
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-11 22:36:17.251652"], ["updated_at", "2015-11-11 22:36:17.251652"]]
|
2511
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2512
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2513
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2514
|
+
------------------------------------------------------------------------
|
2515
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
2516
|
+
------------------------------------------------------------------------
|
2517
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2518
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
2519
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-11 22:36:17.256895"], ["updated_at", "2015-11-11 22:36:17.256895"]]
|
2520
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2521
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2522
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2523
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2524
|
+
-------------------------
|
2525
|
+
HumanUrlsTest: test_truth
|
2526
|
+
-------------------------
|
2527
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2528
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2529
|
+
----------------------------------------------
|
2530
|
+
SluggableTest: test_validates_presence_of_slug
|
2531
|
+
----------------------------------------------
|
2532
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2533
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2534
|
+
--------------------------------------------------------------------
|
2535
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
2536
|
+
--------------------------------------------------------------------
|
2537
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2538
|
+
[1m[35mTaggableWGeneratedSlug Exists (1.7ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
2539
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-11 22:38:08.571166"], ["updated_at", "2015-11-11 22:38:08.571166"]]
|
2540
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
2541
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
2542
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2543
|
+
------------------------------------------------------------------------
|
2544
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
2545
|
+
------------------------------------------------------------------------
|
2546
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2547
|
+
[1m[35mTaggable Exists (0.8ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
2548
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-11 22:38:08.586446"], ["updated_at", "2015-11-11 22:38:08.586446"]]
|
2549
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2550
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2551
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2552
|
+
----------------------------------------------
|
2553
|
+
SluggableTest: test_validates_presence_of_slug
|
2554
|
+
----------------------------------------------
|
2555
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2556
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
2557
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2558
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2559
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2560
|
+
----------------------------------------------
|
2561
|
+
SluggableTest: test_#to_param_returns_the_slug
|
2562
|
+
----------------------------------------------
|
2563
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2564
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2565
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-11 22:38:08.596289"], ["updated_at", "2015-11-11 22:38:08.596289"]]
|
2566
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2567
|
+
[1m[35m (2.0ms)[0m ROLLBACK
|
2568
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2569
|
+
-------------------------------------------------------------------------
|
2570
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
2571
|
+
-------------------------------------------------------------------------
|
2572
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2573
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2574
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-11 22:38:08.604317"], ["updated_at", "2015-11-11 22:38:08.604317"]]
|
2575
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2576
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2577
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2578
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2579
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2580
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2581
|
+
------------------------------------------------
|
2582
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
2583
|
+
------------------------------------------------
|
2584
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2585
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2586
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:38:08.614295"], ["updated_at", "2015-11-11 22:38:08.614295"]]
|
2587
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2588
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2589
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2590
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2591
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
2592
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2593
|
+
------------------------------------------------------------------------------
|
2594
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
2595
|
+
------------------------------------------------------------------------------
|
2596
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2597
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2598
|
+
------------------------------------------------------------------------------------------------------------
|
2599
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
2600
|
+
------------------------------------------------------------------------------------------------------------
|
2601
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2602
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2603
|
+
-------------------------
|
2604
|
+
HumanUrlsTest: test_truth
|
2605
|
+
-------------------------
|
2606
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2607
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2608
|
+
[1m[35m (0.4ms)[0m BEGIN
|
2609
|
+
-------------------------
|
2610
|
+
HumanUrlsTest: test_truth
|
2611
|
+
-------------------------
|
2612
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2613
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2614
|
+
------------------------------------------------------------------------------------------------------------
|
2615
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
2616
|
+
------------------------------------------------------------------------------------------------------------
|
2617
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
2618
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2619
|
+
------------------------------------------------------------------------------
|
2620
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
2621
|
+
------------------------------------------------------------------------------
|
2622
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2623
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2624
|
+
----------------------------------------------
|
2625
|
+
SluggableTest: test_#to_param_returns_the_slug
|
2626
|
+
----------------------------------------------
|
2627
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2628
|
+
[1m[35mTaggable Exists (1.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2629
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:41:28.968825"], ["updated_at", "2015-11-11 22:41:28.968825"]]
|
2630
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2631
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
2632
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2633
|
+
-------------------------------------------------------------------------
|
2634
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
2635
|
+
-------------------------------------------------------------------------
|
2636
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2637
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2638
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:41:28.975653"], ["updated_at", "2015-11-11 22:41:28.975653"]]
|
2639
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2640
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2641
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2642
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2643
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2644
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2645
|
+
------------------------------------------------
|
2646
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
2647
|
+
------------------------------------------------
|
2648
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2649
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2650
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-11 22:41:28.984772"], ["updated_at", "2015-11-11 22:41:28.984772"]]
|
2651
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2652
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2653
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2654
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2655
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2656
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2657
|
+
----------------------------------------------
|
2658
|
+
SluggableTest: test_validates_presence_of_slug
|
2659
|
+
----------------------------------------------
|
2660
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2661
|
+
[1m[35mTaggable Exists (0.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
2662
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2663
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2664
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2665
|
+
--------------------------------------------------------------------
|
2666
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
2667
|
+
--------------------------------------------------------------------
|
2668
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2669
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
2670
|
+
[1m[35mSQL (2.2ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-11 22:41:29.006546"], ["updated_at", "2015-11-11 22:41:29.006546"]]
|
2671
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2672
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2673
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2674
|
+
------------------------------------------------------------------------
|
2675
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
2676
|
+
------------------------------------------------------------------------
|
2677
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2678
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
2679
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-11 22:41:29.014396"], ["updated_at", "2015-11-11 22:41:29.014396"]]
|
2680
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2681
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2682
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2683
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2684
|
+
[1m[35m (0.4ms)[0m BEGIN
|
2685
|
+
------------------------------------------------
|
2686
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
2687
|
+
------------------------------------------------
|
2688
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2689
|
+
[1m[35mTaggable Exists (1.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2690
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:43:02.344828"], ["updated_at", "2015-11-11 22:43:02.344828"]]
|
2691
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
2692
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2693
|
+
[1m[35mTaggable Exists (0.7ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2694
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2695
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
2696
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2697
|
+
-------------------------------------------------------------------------
|
2698
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
2699
|
+
-------------------------------------------------------------------------
|
2700
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2701
|
+
[1m[36mTaggable Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2702
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-11 22:43:02.357100"], ["updated_at", "2015-11-11 22:43:02.357100"]]
|
2703
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2704
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2705
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2706
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2707
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2708
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2709
|
+
------------------------------------------------------------------------
|
2710
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
2711
|
+
------------------------------------------------------------------------
|
2712
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2713
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
2714
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-11 22:43:02.364459"], ["updated_at", "2015-11-11 22:43:02.364459"]]
|
2715
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2716
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2717
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2718
|
+
----------------------------------------------
|
2719
|
+
SluggableTest: test_#to_param_returns_the_slug
|
2720
|
+
----------------------------------------------
|
2721
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2722
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2723
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:43:02.368661"], ["updated_at", "2015-11-11 22:43:02.368661"]]
|
2724
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2725
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2726
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2727
|
+
----------------------------------------------
|
2728
|
+
SluggableTest: test_validates_presence_of_slug
|
2729
|
+
----------------------------------------------
|
2730
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2731
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
2732
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2733
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2734
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2735
|
+
--------------------------------------------------------------------
|
2736
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
2737
|
+
--------------------------------------------------------------------
|
2738
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2739
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
2740
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-11 22:43:02.385906"], ["updated_at", "2015-11-11 22:43:02.385906"]]
|
2741
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2742
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2743
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2744
|
+
------------------------------------------------------------------------------
|
2745
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
2746
|
+
------------------------------------------------------------------------------
|
2747
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2748
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2749
|
+
------------------------------------------------------------------------------------------------------------
|
2750
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
2751
|
+
------------------------------------------------------------------------------------------------------------
|
2752
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2753
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2754
|
+
-------------------------
|
2755
|
+
HumanUrlsTest: test_truth
|
2756
|
+
-------------------------
|
2757
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2758
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2759
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2760
|
+
------------------------------------------------------------------------
|
2761
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
2762
|
+
------------------------------------------------------------------------
|
2763
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2764
|
+
[1m[35mTaggable Exists (1.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
2765
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-11 22:43:48.682883"], ["updated_at", "2015-11-11 22:43:48.682883"]]
|
2766
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2767
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
2768
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2769
|
+
------------------------------------------------
|
2770
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
2771
|
+
------------------------------------------------
|
2772
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2773
|
+
[1m[35mTaggable Exists (0.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2774
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:43:48.690954"], ["updated_at", "2015-11-11 22:43:48.690954"]]
|
2775
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2776
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2777
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2778
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2779
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2780
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2781
|
+
-------------------------------------------------------------------------
|
2782
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
2783
|
+
-------------------------------------------------------------------------
|
2784
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2785
|
+
[1m[36mTaggable Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2786
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-11 22:43:48.699352"], ["updated_at", "2015-11-11 22:43:48.699352"]]
|
2787
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2788
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2789
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2790
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2791
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2792
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2793
|
+
----------------------------------------------
|
2794
|
+
SluggableTest: test_validates_presence_of_slug
|
2795
|
+
----------------------------------------------
|
2796
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2797
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
2798
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2799
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2800
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2801
|
+
--------------------------------------------------------------------
|
2802
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
2803
|
+
--------------------------------------------------------------------
|
2804
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2805
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
2806
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-11 22:43:48.719676"], ["updated_at", "2015-11-11 22:43:48.719676"]]
|
2807
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2808
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2809
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2810
|
+
----------------------------------------------
|
2811
|
+
SluggableTest: test_#to_param_returns_the_slug
|
2812
|
+
----------------------------------------------
|
2813
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2814
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2815
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-11 22:43:48.725634"], ["updated_at", "2015-11-11 22:43:48.725634"]]
|
2816
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2817
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2818
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2819
|
+
------------------------------------------------------------------------------
|
2820
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
2821
|
+
------------------------------------------------------------------------------
|
2822
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
2823
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2824
|
+
------------------------------------------------------------------------------------------------------------
|
2825
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
2826
|
+
------------------------------------------------------------------------------------------------------------
|
2827
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2828
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2829
|
+
-------------------------
|
2830
|
+
HumanUrlsTest: test_truth
|
2831
|
+
-------------------------
|
2832
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2833
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2834
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2835
|
+
-------------------------
|
2836
|
+
HumanUrlsTest: test_truth
|
2837
|
+
-------------------------
|
2838
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2839
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2840
|
+
----------------------------------------------
|
2841
|
+
SluggableTest: test_#to_param_returns_the_slug
|
2842
|
+
----------------------------------------------
|
2843
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2844
|
+
[1m[35mTaggable Exists (1.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2845
|
+
[1m[36mSQL (2.6ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:46:25.505486"], ["updated_at", "2015-11-11 22:46:25.505486"]]
|
2846
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2847
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2848
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2849
|
+
--------------------------------------------------------------------
|
2850
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
2851
|
+
--------------------------------------------------------------------
|
2852
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2853
|
+
[1m[35mTaggableWGeneratedSlug Exists (0.8ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
2854
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-11 22:46:25.524592"], ["updated_at", "2015-11-11 22:46:25.524592"]]
|
2855
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2856
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2857
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2858
|
+
----------------------------------------------
|
2859
|
+
SluggableTest: test_validates_presence_of_slug
|
2860
|
+
----------------------------------------------
|
2861
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2862
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
2863
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2864
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2865
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2866
|
+
-------------------------------------------------------------------------
|
2867
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
2868
|
+
-------------------------------------------------------------------------
|
2869
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2870
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2871
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-11 22:46:25.535309"], ["updated_at", "2015-11-11 22:46:25.535309"]]
|
2872
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2873
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
2874
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
2875
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2876
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2877
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2878
|
+
------------------------------------------------------------------------
|
2879
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
2880
|
+
------------------------------------------------------------------------
|
2881
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2882
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
2883
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-11 22:46:25.544120"], ["updated_at", "2015-11-11 22:46:25.544120"]]
|
2884
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2885
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2886
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2887
|
+
------------------------------------------------
|
2888
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
2889
|
+
------------------------------------------------
|
2890
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2891
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2892
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:46:25.548587"], ["updated_at", "2015-11-11 22:46:25.548587"]]
|
2893
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2894
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2895
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2896
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2897
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2898
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2899
|
+
------------------------------------------------------------------------------
|
2900
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
2901
|
+
------------------------------------------------------------------------------
|
2902
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
2903
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2904
|
+
------------------------------------------------------------------------------------------------------------
|
2905
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
2906
|
+
------------------------------------------------------------------------------------------------------------
|
2907
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2908
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2909
|
+
[1m[35m (0.3ms)[0m BEGIN
|
2910
|
+
-------------------------
|
2911
|
+
HumanUrlsTest: test_truth
|
2912
|
+
-------------------------
|
2913
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
2914
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2915
|
+
----------------------------------------------
|
2916
|
+
SluggableTest: test_#to_param_returns_the_slug
|
2917
|
+
----------------------------------------------
|
2918
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2919
|
+
[1m[35mTaggable Exists (1.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2920
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:46:59.831446"], ["updated_at", "2015-11-11 22:46:59.831446"]]
|
2921
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
2922
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
2923
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2924
|
+
------------------------------------------------
|
2925
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
2926
|
+
------------------------------------------------
|
2927
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2928
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2929
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:46:59.840440"], ["updated_at", "2015-11-11 22:46:59.840440"]]
|
2930
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
2931
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2932
|
+
[1m[35mTaggable Exists (0.7ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2933
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2934
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2935
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2936
|
+
----------------------------------------------
|
2937
|
+
SluggableTest: test_validates_presence_of_slug
|
2938
|
+
----------------------------------------------
|
2939
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2940
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1[0m
|
2941
|
+
[1m[35m (0.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
2942
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
2943
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2944
|
+
-------------------------------------------------------------------------
|
2945
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
2946
|
+
-------------------------------------------------------------------------
|
2947
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2948
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2949
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-11 22:46:59.856644"], ["updated_at", "2015-11-11 22:46:59.856644"]]
|
2950
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
2951
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
2952
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
2953
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2954
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2955
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2956
|
+
--------------------------------------------------------------------
|
2957
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
2958
|
+
--------------------------------------------------------------------
|
2959
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2960
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.9ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
2961
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-11 22:46:59.873689"], ["updated_at", "2015-11-11 22:46:59.873689"]]
|
2962
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2963
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2964
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2965
|
+
------------------------------------------------------------------------
|
2966
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
2967
|
+
------------------------------------------------------------------------
|
2968
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2969
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
2970
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-11 22:46:59.880070"], ["updated_at", "2015-11-11 22:46:59.880070"]]
|
2971
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2972
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
2973
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
2974
|
+
------------------------------------------------------------------------------
|
2975
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
2976
|
+
------------------------------------------------------------------------------
|
2977
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2978
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2979
|
+
------------------------------------------------------------------------------------------------------------
|
2980
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
2981
|
+
------------------------------------------------------------------------------------------------------------
|
2982
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
2983
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2984
|
+
[1m[35m (1.1ms)[0m BEGIN
|
2985
|
+
-------------------------
|
2986
|
+
HumanUrlsTest: test_truth
|
2987
|
+
-------------------------
|
2988
|
+
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
|
2989
|
+
[1m[35m (0.2ms)[0m BEGIN
|
2990
|
+
----------------------------------------------
|
2991
|
+
SluggableTest: test_validates_presence_of_slug
|
2992
|
+
----------------------------------------------
|
2993
|
+
[1m[36m (0.8ms)[0m [1mSAVEPOINT active_record_1[0m
|
2994
|
+
[1m[35mTaggable Exists (2.9ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
2995
|
+
[1m[36m (1.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
2996
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
2997
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
2998
|
+
------------------------------------------------------------------------
|
2999
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
3000
|
+
------------------------------------------------------------------------
|
3001
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3002
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
3003
|
+
[1m[35mSQL (5.7ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-12 01:59:43.430416"], ["updated_at", "2015-11-12 01:59:43.430416"]]
|
3004
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3005
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3006
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3007
|
+
-------------------------------------------------------------------------
|
3008
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
3009
|
+
-------------------------------------------------------------------------
|
3010
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3011
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3012
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-12 01:59:43.452599"], ["updated_at", "2015-11-12 01:59:43.452599"]]
|
3013
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3014
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3015
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3016
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3017
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3018
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3019
|
+
------------------------------------------------
|
3020
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
3021
|
+
------------------------------------------------
|
3022
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3023
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3024
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-12 01:59:43.461347"], ["updated_at", "2015-11-12 01:59:43.461347"]]
|
3025
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3026
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3027
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3028
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3029
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3030
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3031
|
+
--------------------------------------------------------------------
|
3032
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
3033
|
+
--------------------------------------------------------------------
|
3034
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3035
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
3036
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-12 01:59:43.476782"], ["updated_at", "2015-11-12 01:59:43.476782"]]
|
3037
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3038
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3039
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3040
|
+
----------------------------------------------
|
3041
|
+
SluggableTest: test_#to_param_returns_the_slug
|
3042
|
+
----------------------------------------------
|
3043
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3044
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3045
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-12 01:59:43.482742"], ["updated_at", "2015-11-12 01:59:43.482742"]]
|
3046
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3047
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3048
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3049
|
+
------------------------------------------------------------------------------
|
3050
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
3051
|
+
------------------------------------------------------------------------------
|
3052
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3053
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3054
|
+
------------------------------------------------------------------------------------------------------------
|
3055
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
3056
|
+
------------------------------------------------------------------------------------------------------------
|
3057
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3058
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3059
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3060
|
+
----------------------------------------------
|
3061
|
+
SluggableTest: test_validates_presence_of_slug
|
3062
|
+
----------------------------------------------
|
3063
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3064
|
+
[1m[35mTaggable Exists (1.2ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
3065
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3066
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3067
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3068
|
+
------------------------------------------------------------------------
|
3069
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
3070
|
+
------------------------------------------------------------------------
|
3071
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3072
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
3073
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-12 02:05:00.223625"], ["updated_at", "2015-11-12 02:05:00.223625"]]
|
3074
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3075
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
3076
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3077
|
+
------------------------------------------------
|
3078
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
3079
|
+
------------------------------------------------
|
3080
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3081
|
+
[1m[36mTaggable Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3082
|
+
[1m[35mSQL (6.1ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-12 02:05:00.231163"], ["updated_at", "2015-11-12 02:05:00.231163"]]
|
3083
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3084
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3085
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3086
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3087
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3088
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3089
|
+
-------------------------------------------------------------------------
|
3090
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
3091
|
+
-------------------------------------------------------------------------
|
3092
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3093
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3094
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-12 02:05:00.245784"], ["updated_at", "2015-11-12 02:05:00.245784"]]
|
3095
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3096
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3097
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3098
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3099
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3100
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3101
|
+
--------------------------------------------------------------------
|
3102
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
3103
|
+
--------------------------------------------------------------------
|
3104
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3105
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
3106
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-12 02:05:00.262007"], ["updated_at", "2015-11-12 02:05:00.262007"]]
|
3107
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3108
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3109
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3110
|
+
----------------------------------------------
|
3111
|
+
SluggableTest: test_#to_param_returns_the_slug
|
3112
|
+
----------------------------------------------
|
3113
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3114
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3115
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-12 02:05:00.268663"], ["updated_at", "2015-11-12 02:05:00.268663"]]
|
3116
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3117
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3118
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
3119
|
+
-------------------------
|
3120
|
+
HumanUrlsTest: test_truth
|
3121
|
+
-------------------------
|
3122
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3123
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3124
|
+
------------------------------------------------------------------------------
|
3125
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
3126
|
+
------------------------------------------------------------------------------
|
3127
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3128
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3129
|
+
------------------------------------------------------------------------------------------------------------
|
3130
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
3131
|
+
------------------------------------------------------------------------------------------------------------
|
3132
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
3133
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3134
|
+
[1m[35m (0.4ms)[0m BEGIN
|
3135
|
+
-------------------------
|
3136
|
+
HumanUrlsTest: test_truth
|
3137
|
+
-------------------------
|
3138
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3139
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3140
|
+
--------------------------------------------------------------------
|
3141
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
3142
|
+
--------------------------------------------------------------------
|
3143
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3144
|
+
[1m[35mTaggableWGeneratedSlug Exists (1.6ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
3145
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-12 02:07:31.206508"], ["updated_at", "2015-11-12 02:07:31.206508"]]
|
3146
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3147
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
3148
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3149
|
+
----------------------------------------------
|
3150
|
+
SluggableTest: test_#to_param_returns_the_slug
|
3151
|
+
----------------------------------------------
|
3152
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3153
|
+
[1m[35mTaggable Exists (0.8ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3154
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-12 02:07:31.225598"], ["updated_at", "2015-11-12 02:07:31.225598"]]
|
3155
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3156
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3157
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3158
|
+
------------------------------------------------------------------------
|
3159
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
3160
|
+
------------------------------------------------------------------------
|
3161
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3162
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
3163
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-12 02:07:31.231656"], ["updated_at", "2015-11-12 02:07:31.231656"]]
|
3164
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3165
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3166
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3167
|
+
------------------------------------------------
|
3168
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
3169
|
+
------------------------------------------------
|
3170
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3171
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3172
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-12 02:07:31.236355"], ["updated_at", "2015-11-12 02:07:31.236355"]]
|
3173
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3174
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3175
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3176
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3177
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3178
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3179
|
+
----------------------------------------------
|
3180
|
+
SluggableTest: test_validates_presence_of_slug
|
3181
|
+
----------------------------------------------
|
3182
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3183
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1[0m
|
3184
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3185
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
3186
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3187
|
+
-------------------------------------------------------------------------
|
3188
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
3189
|
+
-------------------------------------------------------------------------
|
3190
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3191
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3192
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-12 02:07:31.249291"], ["updated_at", "2015-11-12 02:07:31.249291"]]
|
3193
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3194
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3195
|
+
[1m[35mTaggable Exists (0.4ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3196
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3197
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3198
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3199
|
+
------------------------------------------------------------------------------
|
3200
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
3201
|
+
------------------------------------------------------------------------------
|
3202
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3203
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
3204
|
+
------------------------------------------------------------------------------------------------------------
|
3205
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
3206
|
+
------------------------------------------------------------------------------------------------------------
|
3207
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3208
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3209
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3210
|
+
------------------------------------------------------------------------------------------------------------
|
3211
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
3212
|
+
------------------------------------------------------------------------------------------------------------
|
3213
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
3214
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3215
|
+
------------------------------------------------------------------------------
|
3216
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
3217
|
+
------------------------------------------------------------------------------
|
3218
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3219
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3220
|
+
-------------------------
|
3221
|
+
HumanUrlsTest: test_truth
|
3222
|
+
-------------------------
|
3223
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
3224
|
+
[1m[35m (0.1ms)[0m BEGIN
|
3225
|
+
--------------------------------------------------------------------
|
3226
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
3227
|
+
--------------------------------------------------------------------
|
3228
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3229
|
+
[1m[35mTaggableWGeneratedSlug Exists (1.3ms)[0m SELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1
|
3230
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-12 02:08:27.702677"], ["updated_at", "2015-11-12 02:08:27.702677"]]
|
3231
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3232
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
3233
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3234
|
+
----------------------------------------------
|
3235
|
+
SluggableTest: test_#to_param_returns_the_slug
|
3236
|
+
----------------------------------------------
|
3237
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
3238
|
+
[1m[35mTaggable Exists (0.9ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3239
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-12 02:08:27.720638"], ["updated_at", "2015-11-12 02:08:27.720638"]]
|
3240
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3241
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3242
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3243
|
+
----------------------------------------------
|
3244
|
+
SluggableTest: test_validates_presence_of_slug
|
3245
|
+
----------------------------------------------
|
3246
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3247
|
+
[1m[35mTaggable Exists (0.6ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
3248
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3249
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3250
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3251
|
+
------------------------------------------------------------------------
|
3252
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
3253
|
+
------------------------------------------------------------------------
|
3254
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3255
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1[0m
|
3256
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2015-11-12 02:08:27.733640"], ["updated_at", "2015-11-12 02:08:27.733640"]]
|
3257
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3258
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3259
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3260
|
+
------------------------------------------------
|
3261
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
3262
|
+
------------------------------------------------
|
3263
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3264
|
+
[1m[36mTaggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3265
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-12 02:08:27.739008"], ["updated_at", "2015-11-12 02:08:27.739008"]]
|
3266
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3267
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3268
|
+
[1m[36mTaggable Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3269
|
+
[1m[35m (0.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3270
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3271
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3272
|
+
-------------------------------------------------------------------------
|
3273
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
3274
|
+
-------------------------------------------------------------------------
|
3275
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3276
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3277
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-12 02:08:27.750271"], ["updated_at", "2015-11-12 02:08:27.750271"]]
|
3278
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3279
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3280
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3281
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3282
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3283
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3284
|
+
[1m[35m (0.3ms)[0m BEGIN
|
3285
|
+
------------------------------------------------------------------------------
|
3286
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
3287
|
+
------------------------------------------------------------------------------
|
3288
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
3289
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3290
|
+
------------------------------------------------------------------------------------------------------------
|
3291
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
3292
|
+
------------------------------------------------------------------------------------------------------------
|
3293
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3294
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3295
|
+
------------------------------------------------------------------------
|
3296
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
3297
|
+
------------------------------------------------------------------------
|
3298
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3299
|
+
[1m[35mTaggable Exists (1.3ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('this-i-my-slug') LIMIT 1
|
3300
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2015-11-12 02:08:42.041776"], ["updated_at", "2015-11-12 02:08:42.041776"]]
|
3301
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
3302
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
3303
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3304
|
+
------------------------------------------------
|
3305
|
+
SluggableTest: test_validates_unqiueness_of_slug
|
3306
|
+
------------------------------------------------
|
3307
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3308
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3309
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", "2015-11-12 02:08:42.048768"], ["updated_at", "2015-11-12 02:08:42.048768"]]
|
3310
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
3311
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
3312
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1
|
3313
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3314
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
3315
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3316
|
+
-------------------------------------------------------------------------
|
3317
|
+
SluggableTest: test_validates_unqiueness_of_slug_and_isn't_case_sensitive
|
3318
|
+
-------------------------------------------------------------------------
|
3319
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3320
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3321
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-12 02:08:42.057962"], ["updated_at", "2015-11-12 02:08:42.057962"]]
|
3322
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3323
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3324
|
+
[1m[36mTaggable Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3325
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
3326
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
3327
|
+
[1m[35m (0.2ms)[0m BEGIN
|
3328
|
+
----------------------------------------------
|
3329
|
+
SluggableTest: test_validates_presence_of_slug
|
3330
|
+
----------------------------------------------
|
3331
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
3332
|
+
[1m[35mTaggable Exists (0.5ms)[0m SELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('') LIMIT 1
|
3333
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
3334
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3335
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3336
|
+
----------------------------------------------
|
3337
|
+
SluggableTest: test_#to_param_returns_the_slug
|
3338
|
+
----------------------------------------------
|
3339
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
3340
|
+
[1m[36mTaggable Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "taggables" WHERE LOWER("taggables"."slug") = LOWER('slug') LIMIT 1[0m
|
3341
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2015-11-12 02:08:42.070187"], ["updated_at", "2015-11-12 02:08:42.070187"]]
|
3342
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3343
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3344
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3345
|
+
--------------------------------------------------------------------
|
3346
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
3347
|
+
--------------------------------------------------------------------
|
3348
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
3349
|
+
[1m[36mTaggableWGeneratedSlug Exists (0.8ms)[0m [1mSELECT 1 AS one FROM "taggable_w_generated_slugs" WHERE LOWER("taggable_w_generated_slugs"."slug") = LOWER('my-title') LIMIT 1[0m
|
3350
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "My Title"], ["slug", "my-title"], ["created_at", "2015-11-12 02:08:42.085175"], ["updated_at", "2015-11-12 02:08:42.085175"]]
|
3351
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
3352
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
3353
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
3354
|
+
-------------------------
|
3355
|
+
HumanUrlsTest: test_truth
|
3356
|
+
-------------------------
|
3357
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|