namekuji 1.0.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/LICENSE +202 -0
- data/README.md +42 -0
- data/Rakefile +34 -0
- data/lib/namekuji.rb +11 -0
- data/lib/namekuji/class_methods.rb +21 -0
- data/lib/namekuji/sluggable.rb +15 -0
- data/lib/namekuji/version.rb +3 -0
- data/lib/tasks/namekuji_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/test_model_sluggable.rb +9 -0
- data/test/dummy/app/models/test_model_sluggable_on_field.rb +5 -0
- data/test/dummy/app/models/test_model_sluggable_on_field_slug_field.rb +5 -0
- data/test/dummy/app/models/test_model_sluggable_slug_field.rb +9 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -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.ru +4 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -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 +56 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20160312034428_create_test_model_sluggables.rb +8 -0
- data/test/dummy/db/migrate/20160312035136_create_test_model_sluggable_on_fields.rb +9 -0
- data/test/dummy/db/migrate/20160312035622_create_test_model_sluggable_slug_fields.rb +9 -0
- data/test/dummy/db/migrate/20160312035822_create_test_model_sluggable_on_field_slug_fields.rb +10 -0
- data/test/dummy/db/migrate/20160312040129_add_name_to_test_model_sluggable_slug_fields.rb +5 -0
- data/test/dummy/db/migrate/20160312040239_add_name_and_slug_to_test_model_sluggables.rb +6 -0
- data/test/dummy/db/migrate/20160312040357_add_slug_to_test_model_sluggable_on_fields.rb +5 -0
- data/test/dummy/db/schema.rb +44 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +4 -0
- data/test/dummy/log/test.log +639 -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/test/fixtures/test_model_sluggable_on_field_slug_fields.yml +9 -0
- data/test/dummy/test/fixtures/test_model_sluggable_on_fields.yml +7 -0
- data/test/dummy/test/fixtures/test_model_sluggable_slug_fields.yml +7 -0
- data/test/dummy/test/fixtures/test_model_sluggables.yml +11 -0
- data/test/dummy/test/models/test_model_sluggable_on_field_slug_field_test.rb +7 -0
- data/test/dummy/test/models/test_model_sluggable_on_field_test.rb +7 -0
- data/test/dummy/test/models/test_model_sluggable_slug_field_test.rb +7 -0
- data/test/dummy/test/models/test_model_sluggable_test.rb +7 -0
- data/test/namekuji/class_methods_test.rb +23 -0
- data/test/namekuji/sluggable_test.rb +44 -0
- data/test/namekuji_test.rb +7 -0
- data/test/test_helper.rb +38 -0
- metadata +261 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: 56657946f68b056b59390e3dd7b47c291eade7261753d706434dab7264085bdaeb522c7d7636cf6668ab870cae41241ac5a4895697faea4a0844e8abd4cd86f6
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: 62be1de48ac067a10ceb2b48690f9b775873bf1542f503c36391006550da9364247fe3ab2a2cbf782fbf59e63b09f7bf75adbe67954a39ba822a43842eb4a47e
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
Binary file
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20160312040357) do
|
15
|
+
|
16
|
+
create_table "test_model_sluggable_on_field_slug_fields", force: :cascade do |t|
|
17
|
+
t.string "name"
|
18
|
+
t.string "parameterized"
|
19
|
+
t.datetime "created_at", null: false
|
20
|
+
t.datetime "updated_at", null: false
|
21
|
+
end
|
22
|
+
|
23
|
+
create_table "test_model_sluggable_on_fields", force: :cascade do |t|
|
24
|
+
t.string "name"
|
25
|
+
t.datetime "created_at", null: false
|
26
|
+
t.datetime "updated_at", null: false
|
27
|
+
t.string "slug"
|
28
|
+
end
|
29
|
+
|
30
|
+
create_table "test_model_sluggable_slug_fields", force: :cascade do |t|
|
31
|
+
t.string "parameterized"
|
32
|
+
t.datetime "created_at", null: false
|
33
|
+
t.datetime "updated_at", null: false
|
34
|
+
t.string "name"
|
35
|
+
end
|
36
|
+
|
37
|
+
create_table "test_model_sluggables", force: :cascade do |t|
|
38
|
+
t.datetime "created_at", null: false
|
39
|
+
t.datetime "updated_at", null: false
|
40
|
+
t.string "name"
|
41
|
+
t.string "slug"
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
Binary file
|
@@ -0,0 +1,4 @@
|
|
1
|
+
[1m[36m (2.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
2
|
+
[1m[35m (0.5ms)[0m select sqlite_version(*)
|
3
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
@@ -0,0 +1,639 @@
|
|
1
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2
|
+
------------------------
|
3
|
+
NamekujiTest: test_truth
|
4
|
+
------------------------
|
5
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
7
|
+
------------------------
|
8
|
+
NamekujiTest: test_truth
|
9
|
+
------------------------
|
10
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
12
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
13
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
14
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
15
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
16
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
17
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18
|
+
------------------------
|
19
|
+
NamekujiTest: test_truth
|
20
|
+
------------------------
|
21
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
22
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
24
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
25
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
26
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
27
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
28
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
29
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
30
|
+
Migrating to CreateTestModelSluggables (20160312034428)
|
31
|
+
[1m[35m (0.1ms)[0m begin transaction
|
32
|
+
[1m[36m (0.6ms)[0m [1mCREATE TABLE "test_model_sluggables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
33
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312034428"]]
|
34
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
35
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
36
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
37
|
+
[1m[35m (0.1ms)[0m begin transaction
|
38
|
+
------------------------------------------
|
39
|
+
Namekuji::ClassMethodsTest: test_sluggable
|
40
|
+
------------------------------------------
|
41
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
42
|
+
[1m[35m (0.0ms)[0m begin transaction
|
43
|
+
------------------------
|
44
|
+
NamekujiTest: test_truth
|
45
|
+
------------------------
|
46
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
47
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
48
|
+
[1m[35m (0.1ms)[0m begin transaction
|
49
|
+
------------------------
|
50
|
+
NamekujiTest: test_truth
|
51
|
+
------------------------
|
52
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
53
|
+
[1m[35m (0.1ms)[0m begin transaction
|
54
|
+
------------------------------------------
|
55
|
+
Namekuji::ClassMethodsTest: test_sluggable
|
56
|
+
------------------------------------------
|
57
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
58
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
59
|
+
[1m[35m (0.1ms)[0m begin transaction
|
60
|
+
------------------------
|
61
|
+
NamekujiTest: test_truth
|
62
|
+
------------------------
|
63
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
64
|
+
[1m[35m (0.0ms)[0m begin transaction
|
65
|
+
------------------------------------------
|
66
|
+
Namekuji::ClassMethodsTest: test_sluggable
|
67
|
+
------------------------------------------
|
68
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
69
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
70
|
+
[1m[35m (0.1ms)[0m begin transaction
|
71
|
+
------------------------------------------
|
72
|
+
Namekuji::ClassMethodsTest: test_sluggable
|
73
|
+
------------------------------------------
|
74
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
75
|
+
[1m[35m (0.1ms)[0m begin transaction
|
76
|
+
------------------------
|
77
|
+
NamekujiTest: test_truth
|
78
|
+
------------------------
|
79
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
80
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
81
|
+
[1m[35m (0.1ms)[0m begin transaction
|
82
|
+
------------------------------------------
|
83
|
+
Namekuji::ClassMethodsTest: test_sluggable
|
84
|
+
------------------------------------------
|
85
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
86
|
+
[1m[35m (0.0ms)[0m begin transaction
|
87
|
+
------------------------
|
88
|
+
NamekujiTest: test_truth
|
89
|
+
------------------------
|
90
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
91
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
92
|
+
Migrating to CreateTestModelSluggableOnFields (20160312035136)
|
93
|
+
[1m[35m (0.1ms)[0m begin transaction
|
94
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "test_model_sluggable_on_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
95
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312035136"]]
|
96
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
97
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
98
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
99
|
+
[1m[35m (0.1ms)[0m begin transaction
|
100
|
+
------------------------
|
101
|
+
NamekujiTest: test_truth
|
102
|
+
------------------------
|
103
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
104
|
+
[1m[35m (0.1ms)[0m begin transaction
|
105
|
+
------------------------------------------
|
106
|
+
Namekuji::ClassMethodsTest: test_sluggable
|
107
|
+
------------------------------------------
|
108
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
109
|
+
[1m[35m (0.1ms)[0m begin transaction
|
110
|
+
---------------------------------------------------
|
111
|
+
Namekuji::ClassMethodsTest: test_sluggable_on_field
|
112
|
+
---------------------------------------------------
|
113
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
114
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
115
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "test_model_sluggable_on_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
116
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "test_model_sluggables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
117
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
118
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
119
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
120
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
121
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20160312035136')[0m
|
122
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160312034428')
|
123
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
124
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
125
|
+
Migrating to CreateTestModelSluggableSlugFields (20160312035622)
|
126
|
+
[1m[35m (0.1ms)[0m begin transaction
|
127
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "test_model_sluggable_slug_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parameterized" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
128
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312035622"]]
|
129
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
130
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
131
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
132
|
+
[1m[35m (0.1ms)[0m begin transaction
|
133
|
+
------------------------
|
134
|
+
NamekujiTest: test_truth
|
135
|
+
------------------------
|
136
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
137
|
+
[1m[35m (0.1ms)[0m begin transaction
|
138
|
+
-----------------------------------------------------
|
139
|
+
Namekuji::ClassMethodsTest: test_sluggable_slug_field
|
140
|
+
-----------------------------------------------------
|
141
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
142
|
+
[1m[35m (0.1ms)[0m begin transaction
|
143
|
+
------------------------------------------
|
144
|
+
Namekuji::ClassMethodsTest: test_sluggable
|
145
|
+
------------------------------------------
|
146
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
147
|
+
[1m[35m (0.0ms)[0m begin transaction
|
148
|
+
---------------------------------------------------
|
149
|
+
Namekuji::ClassMethodsTest: test_sluggable_on_field
|
150
|
+
---------------------------------------------------
|
151
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
152
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
153
|
+
Migrating to CreateTestModelSluggableOnFieldSlugFields (20160312035822)
|
154
|
+
[1m[35m (0.1ms)[0m begin transaction
|
155
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "test_model_sluggable_on_field_slug_fields" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "parameterized" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
156
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312035822"]]
|
157
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
158
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
159
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
160
|
+
[1m[35m (0.1ms)[0m begin transaction
|
161
|
+
------------------------
|
162
|
+
NamekujiTest: test_truth
|
163
|
+
------------------------
|
164
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
165
|
+
[1m[35m (0.1ms)[0m begin transaction
|
166
|
+
------------------------------------------
|
167
|
+
Namekuji::ClassMethodsTest: test_sluggable
|
168
|
+
------------------------------------------
|
169
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
170
|
+
[1m[35m (0.0ms)[0m begin transaction
|
171
|
+
-----------------------------------------------------
|
172
|
+
Namekuji::ClassMethodsTest: test_sluggable_slug_field
|
173
|
+
-----------------------------------------------------
|
174
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
175
|
+
[1m[35m (0.0ms)[0m begin transaction
|
176
|
+
---------------------------------------------------
|
177
|
+
Namekuji::ClassMethodsTest: test_sluggable_on_field
|
178
|
+
---------------------------------------------------
|
179
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
180
|
+
[1m[35m (0.0ms)[0m begin transaction
|
181
|
+
--------------------------------------------------------------
|
182
|
+
Namekuji::ClassMethodsTest: test_sluggable_on_field_slug_field
|
183
|
+
--------------------------------------------------------------
|
184
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
185
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
186
|
+
Migrating to AddNameToTestModelSluggableSlugFields (20160312040129)
|
187
|
+
[1m[35m (0.1ms)[0m begin transaction
|
188
|
+
[1m[36m (1.6ms)[0m [1mALTER TABLE "test_model_sluggable_slug_fields" ADD "name" varchar[0m
|
189
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312040129"]]
|
190
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
191
|
+
Migrating to AddNameAndSlugToTestModelSluggables (20160312040239)
|
192
|
+
[1m[35m (0.1ms)[0m begin transaction
|
193
|
+
[1m[36m (0.4ms)[0m [1mALTER TABLE "test_model_sluggables" ADD "name" varchar[0m
|
194
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "test_model_sluggables" ADD "slug" varchar
|
195
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160312040239"]]
|
196
|
+
[1m[35m (0.9ms)[0m commit transaction
|
197
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
198
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
199
|
+
Migrating to AddSlugToTestModelSluggableOnFields (20160312040357)
|
200
|
+
[1m[35m (0.1ms)[0m begin transaction
|
201
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "test_model_sluggable_on_fields" ADD "slug" varchar[0m
|
202
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160312040357"]]
|
203
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
204
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
205
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
206
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
207
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
208
|
+
[1m[35m (0.1ms)[0m begin transaction
|
209
|
+
------------------------
|
210
|
+
NamekujiTest: test_truth
|
211
|
+
------------------------
|
212
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
213
|
+
[1m[35m (0.1ms)[0m begin transaction
|
214
|
+
---------------------------------------------------
|
215
|
+
Namekuji::ClassMethodsTest: test_sluggable_on_field
|
216
|
+
---------------------------------------------------
|
217
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
218
|
+
[1m[35m (0.0ms)[0m begin transaction
|
219
|
+
--------------------------------------------------------------
|
220
|
+
Namekuji::ClassMethodsTest: test_sluggable_on_field_slug_field
|
221
|
+
--------------------------------------------------------------
|
222
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
223
|
+
[1m[35m (0.0ms)[0m begin transaction
|
224
|
+
-----------------------------------------------------
|
225
|
+
Namekuji::ClassMethodsTest: test_sluggable_slug_field
|
226
|
+
-----------------------------------------------------
|
227
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
228
|
+
[1m[35m (0.1ms)[0m begin transaction
|
229
|
+
------------------------------------------
|
230
|
+
Namekuji::ClassMethodsTest: test_sluggable
|
231
|
+
------------------------------------------
|
232
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
233
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
234
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
235
|
+
[1m[35m (0.1ms)[0m begin transaction
|
236
|
+
-----------------------------------------------------
|
237
|
+
Namekuji::ClassMethodsTest: test_sluggable_slug_field
|
238
|
+
-----------------------------------------------------
|
239
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
240
|
+
[1m[35m (0.1ms)[0m begin transaction
|
241
|
+
------------------------------------------
|
242
|
+
Namekuji::ClassMethodsTest: test_sluggable
|
243
|
+
------------------------------------------
|
244
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
245
|
+
[1m[35m (0.1ms)[0m begin transaction
|
246
|
+
---------------------------------------------------
|
247
|
+
Namekuji::ClassMethodsTest: test_sluggable_on_field
|
248
|
+
---------------------------------------------------
|
249
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
250
|
+
[1m[35m (0.0ms)[0m begin transaction
|
251
|
+
--------------------------------------------------------------
|
252
|
+
Namekuji::ClassMethodsTest: test_sluggable_on_field_slug_field
|
253
|
+
--------------------------------------------------------------
|
254
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
255
|
+
[1m[35m (0.0ms)[0m begin transaction
|
256
|
+
------------------------
|
257
|
+
NamekujiTest: test_truth
|
258
|
+
------------------------
|
259
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
260
|
+
[1m[35m (0.0ms)[0m begin transaction
|
261
|
+
---------------------------------------
|
262
|
+
Namekuji::SluggableTest: test_sluggable
|
263
|
+
---------------------------------------
|
264
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
265
|
+
[1m[35mTestModelSluggable Exists (0.4ms)[0m SELECT 1 AS one FROM "test_model_sluggables" WHERE "test_model_sluggables"."slug" = 'sluggable-test-model' LIMIT 1
|
266
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "test_model_sluggables" ("name", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Sluggable Test Model"], ["slug", "sluggable-test-model"], ["created_at", "2016-03-12 04:26:33.364173"], ["updated_at", "2016-03-12 04:26:33.364173"]]
|
267
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
268
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
269
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
270
|
+
[1m[35m (0.1ms)[0m begin transaction
|
271
|
+
------------------------
|
272
|
+
NamekujiTest: test_truth
|
273
|
+
------------------------
|
274
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
275
|
+
[1m[35m (0.0ms)[0m begin transaction
|
276
|
+
---------------------------------------
|
277
|
+
Namekuji::SluggableTest: test_sluggable
|
278
|
+
---------------------------------------
|
279
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
280
|
+
[1m[35mTestModelSluggable Exists (0.6ms)[0m SELECT 1 AS one FROM "test_model_sluggables" WHERE "test_model_sluggables"."slug" = 'sluggable-test-model' LIMIT 1
|
281
|
+
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO "test_model_sluggables" ("name", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Sluggable Test Model"], ["slug", "sluggable-test-model"], ["created_at", "2016-03-12 04:31:20.760643"], ["updated_at", "2016-03-12 04:31:20.760643"]]
|
282
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
283
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
284
|
+
[1m[35m (0.1ms)[0m begin transaction
|
285
|
+
-----------------------------------------------------------
|
286
|
+
Namekuji::SluggableTest: test_sluggable_on_field_slug_field
|
287
|
+
-----------------------------------------------------------
|
288
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
289
|
+
[1m[35mTestModelSluggableOnFieldSlugField Exists (0.5ms)[0m SELECT 1 AS one FROM "test_model_sluggable_on_field_slug_fields" WHERE "test_model_sluggable_on_field_slug_fields"."parameterized" = 'sluggable-test-model' LIMIT 1
|
290
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_model_sluggable_on_field_slug_fields" ("name", "parameterized", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Sluggable Test Model"], ["parameterized", "sluggable-test-model"], ["created_at", "2016-03-12 04:31:20.773945"], ["updated_at", "2016-03-12 04:31:20.773945"]]
|
291
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
292
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
293
|
+
[1m[35m (0.1ms)[0m begin transaction
|
294
|
+
------------------------------------------------
|
295
|
+
Namekuji::SluggableTest: test_sluggable_on_field
|
296
|
+
------------------------------------------------
|
297
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
298
|
+
[1m[35mTestModelSluggableOnField Exists (0.4ms)[0m SELECT 1 AS one FROM "test_model_sluggable_on_fields" WHERE "test_model_sluggable_on_fields"."slug" = 'sluggable-test-model' LIMIT 1
|
299
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_model_sluggable_on_fields" ("name", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Sluggable Test Model"], ["slug", "sluggable-test-model"], ["created_at", "2016-03-12 04:31:20.783925"], ["updated_at", "2016-03-12 04:31:20.783925"]]
|
300
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
301
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
302
|
+
[1m[35m (0.1ms)[0m begin transaction
|
303
|
+
--------------------------------------------------
|
304
|
+
Namekuji::SluggableTest: test_sluggable_slug_field
|
305
|
+
--------------------------------------------------
|
306
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
307
|
+
[1m[35mTestModelSluggableSlugField Exists (0.5ms)[0m SELECT 1 AS one FROM "test_model_sluggable_slug_fields" WHERE "test_model_sluggable_slug_fields"."parameterized" = 'sluggable-test-model' LIMIT 1
|
308
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_model_sluggable_slug_fields" ("name", "parameterized", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Sluggable Test Model"], ["parameterized", "sluggable-test-model"], ["created_at", "2016-03-12 04:31:20.795410"], ["updated_at", "2016-03-12 04:31:20.795410"]]
|
309
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
310
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
311
|
+
[1m[35m (0.1ms)[0m begin transaction
|
312
|
+
--------------------------------------------------------------
|
313
|
+
Namekuji::ClassMethodsTest: test_sluggable_on_field_slug_field
|
314
|
+
--------------------------------------------------------------
|
315
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
316
|
+
[1m[35m (0.1ms)[0m begin transaction
|
317
|
+
---------------------------------------------------
|
318
|
+
Namekuji::ClassMethodsTest: test_sluggable_on_field
|
319
|
+
---------------------------------------------------
|
320
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
321
|
+
[1m[35m (0.0ms)[0m begin transaction
|
322
|
+
-----------------------------------------------------
|
323
|
+
Namekuji::ClassMethodsTest: test_sluggable_slug_field
|
324
|
+
-----------------------------------------------------
|
325
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
326
|
+
[1m[35m (0.1ms)[0m begin transaction
|
327
|
+
------------------------------------------
|
328
|
+
Namekuji::ClassMethodsTest: test_sluggable
|
329
|
+
------------------------------------------
|
330
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
331
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
332
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
333
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
334
|
+
[1m[35m (0.1ms)[0m begin transaction
|
335
|
+
---------------------------------------------------
|
336
|
+
Namekuji::ClassMethodsTest: test_sluggable_on_field
|
337
|
+
---------------------------------------------------
|
338
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
339
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
340
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
341
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
342
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
343
|
+
[1m[35m (0.0ms)[0m begin transaction
|
344
|
+
--------------------------------------------------------------
|
345
|
+
Namekuji::ClassMethodsTest: test_sluggable_on_field_slug_field
|
346
|
+
--------------------------------------------------------------
|
347
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
348
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
349
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
350
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
351
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
352
|
+
[1m[35m (0.0ms)[0m begin transaction
|
353
|
+
-----------------------------------------------------
|
354
|
+
Namekuji::ClassMethodsTest: test_sluggable_slug_field
|
355
|
+
-----------------------------------------------------
|
356
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
357
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
358
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
359
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
360
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
361
|
+
[1m[35m (0.0ms)[0m begin transaction
|
362
|
+
------------------------------------------
|
363
|
+
Namekuji::ClassMethodsTest: test_sluggable
|
364
|
+
------------------------------------------
|
365
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
366
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
367
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
368
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
369
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
370
|
+
[1m[35m (0.0ms)[0m begin transaction
|
371
|
+
---------------------------------------
|
372
|
+
Namekuji::SluggableTest: test_sluggable
|
373
|
+
---------------------------------------
|
374
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
375
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
376
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
377
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
378
|
+
[1m[36mTestModelSluggable Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "test_model_sluggables" WHERE "test_model_sluggables"."slug" = 'sluggable-test-model' LIMIT 1[0m
|
379
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "test_model_sluggables" ("name", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Sluggable Test Model"], ["slug", "sluggable-test-model"], ["created_at", "2016-03-12 04:54:19.673106"], ["updated_at", "2016-03-12 04:54:19.673106"]]
|
380
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
381
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
382
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
383
|
+
[1m[35m (0.1ms)[0m begin transaction
|
384
|
+
-----------------------------------------------------------
|
385
|
+
Namekuji::SluggableTest: test_sluggable_on_field_slug_field
|
386
|
+
-----------------------------------------------------------
|
387
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
388
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
389
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
390
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
391
|
+
[1m[36mTestModelSluggableOnFieldSlugField Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "test_model_sluggable_on_field_slug_fields" WHERE "test_model_sluggable_on_field_slug_fields"."parameterized" = 'sluggable-test-model' LIMIT 1[0m
|
392
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "test_model_sluggable_on_field_slug_fields" ("name", "parameterized", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Sluggable Test Model"], ["parameterized", "sluggable-test-model"], ["created_at", "2016-03-12 04:54:19.685218"], ["updated_at", "2016-03-12 04:54:19.685218"]]
|
393
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
394
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
395
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
396
|
+
[1m[35m (0.0ms)[0m begin transaction
|
397
|
+
--------------------------------------------------
|
398
|
+
Namekuji::SluggableTest: test_sluggable_slug_field
|
399
|
+
--------------------------------------------------
|
400
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
401
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
402
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
403
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
404
|
+
[1m[36mTestModelSluggableSlugField Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "test_model_sluggable_slug_fields" WHERE "test_model_sluggable_slug_fields"."parameterized" = 'sluggable-test-model' LIMIT 1[0m
|
405
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_model_sluggable_slug_fields" ("name", "parameterized", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Sluggable Test Model"], ["parameterized", "sluggable-test-model"], ["created_at", "2016-03-12 04:54:19.692884"], ["updated_at", "2016-03-12 04:54:19.692884"]]
|
406
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
407
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
408
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
409
|
+
[1m[35m (0.1ms)[0m begin transaction
|
410
|
+
------------------------------------------------
|
411
|
+
Namekuji::SluggableTest: test_sluggable_on_field
|
412
|
+
------------------------------------------------
|
413
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
414
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
415
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
416
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
417
|
+
[1m[36mTestModelSluggableOnField Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "test_model_sluggable_on_fields" WHERE "test_model_sluggable_on_fields"."slug" = 'sluggable-test-model' LIMIT 1[0m
|
418
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_model_sluggable_on_fields" ("name", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Sluggable Test Model"], ["slug", "sluggable-test-model"], ["created_at", "2016-03-12 04:54:19.700736"], ["updated_at", "2016-03-12 04:54:19.700736"]]
|
419
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
420
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
421
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
422
|
+
[1m[35m (0.1ms)[0m begin transaction
|
423
|
+
------------------------
|
424
|
+
NamekujiTest: test_truth
|
425
|
+
------------------------
|
426
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
427
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
428
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
429
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
430
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
431
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
432
|
+
[1m[35m (0.2ms)[0m begin transaction
|
433
|
+
------------------------
|
434
|
+
NamekujiTest: test_truth
|
435
|
+
------------------------
|
436
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
437
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
438
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
439
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
440
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
441
|
+
[1m[35m (0.1ms)[0m begin transaction
|
442
|
+
---------------------------------------------------
|
443
|
+
Namekuji::ClassMethodsTest: test_sluggable_on_field
|
444
|
+
---------------------------------------------------
|
445
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
446
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
447
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
448
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
449
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
450
|
+
[1m[35m (0.0ms)[0m begin transaction
|
451
|
+
------------------------------------------
|
452
|
+
Namekuji::ClassMethodsTest: test_sluggable
|
453
|
+
------------------------------------------
|
454
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
455
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
456
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
457
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
458
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
459
|
+
[1m[35m (0.0ms)[0m begin transaction
|
460
|
+
--------------------------------------------------------------
|
461
|
+
Namekuji::ClassMethodsTest: test_sluggable_on_field_slug_field
|
462
|
+
--------------------------------------------------------------
|
463
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
464
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
465
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
466
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
467
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
468
|
+
[1m[35m (0.0ms)[0m begin transaction
|
469
|
+
-----------------------------------------------------
|
470
|
+
Namekuji::ClassMethodsTest: test_sluggable_slug_field
|
471
|
+
-----------------------------------------------------
|
472
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
473
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
474
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
475
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
476
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
477
|
+
[1m[35m (0.0ms)[0m begin transaction
|
478
|
+
--------------------------------------------------
|
479
|
+
Namekuji::SluggableTest: test_sluggable_slug_field
|
480
|
+
--------------------------------------------------
|
481
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
482
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
483
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
484
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
485
|
+
[1m[36mTestModelSluggableSlugField Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "test_model_sluggable_slug_fields" WHERE "test_model_sluggable_slug_fields"."parameterized" = 'sluggable-test-model' LIMIT 1[0m
|
486
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "test_model_sluggable_slug_fields" ("name", "parameterized", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Sluggable Test Model"], ["parameterized", "sluggable-test-model"], ["created_at", "2016-03-12 04:54:34.002093"], ["updated_at", "2016-03-12 04:54:34.002093"]]
|
487
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
488
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
489
|
+
[1m[36m (2.0ms)[0m [1mrollback transaction[0m
|
490
|
+
[1m[35m (0.1ms)[0m begin transaction
|
491
|
+
-----------------------------------------------------------
|
492
|
+
Namekuji::SluggableTest: test_sluggable_on_field_slug_field
|
493
|
+
-----------------------------------------------------------
|
494
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
495
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
496
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
497
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
498
|
+
[1m[36mTestModelSluggableOnFieldSlugField Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "test_model_sluggable_on_field_slug_fields" WHERE "test_model_sluggable_on_field_slug_fields"."parameterized" = 'sluggable-test-model' LIMIT 1[0m
|
499
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "test_model_sluggable_on_field_slug_fields" ("name", "parameterized", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Sluggable Test Model"], ["parameterized", "sluggable-test-model"], ["created_at", "2016-03-12 04:54:34.013887"], ["updated_at", "2016-03-12 04:54:34.013887"]]
|
500
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
501
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
502
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
503
|
+
[1m[35m (0.1ms)[0m begin transaction
|
504
|
+
---------------------------------------
|
505
|
+
Namekuji::SluggableTest: test_sluggable
|
506
|
+
---------------------------------------
|
507
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
508
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
509
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
510
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_2
|
511
|
+
[1m[36mTestModelSluggable Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "test_model_sluggables" WHERE "test_model_sluggables"."slug" = 'sluggable-test-model' LIMIT 1[0m
|
512
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "test_model_sluggables" ("name", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Sluggable Test Model"], ["slug", "sluggable-test-model"], ["created_at", "2016-03-12 04:54:34.022413"], ["updated_at", "2016-03-12 04:54:34.022413"]]
|
513
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
514
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
515
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
516
|
+
[1m[35m (0.1ms)[0m begin transaction
|
517
|
+
------------------------------------------------
|
518
|
+
Namekuji::SluggableTest: test_sluggable_on_field
|
519
|
+
------------------------------------------------
|
520
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
521
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
522
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
523
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
524
|
+
[1m[36mTestModelSluggableOnField Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "test_model_sluggable_on_fields" WHERE "test_model_sluggable_on_fields"."slug" = 'sluggable-test-model' LIMIT 1[0m
|
525
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_model_sluggable_on_fields" ("name", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Sluggable Test Model"], ["slug", "sluggable-test-model"], ["created_at", "2016-03-12 04:54:34.030141"], ["updated_at", "2016-03-12 04:54:34.030141"]]
|
526
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
527
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
528
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
529
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
530
|
+
[1m[35m (0.1ms)[0m begin transaction
|
531
|
+
-----------------------------------------------------------
|
532
|
+
Namekuji::SluggableTest: test_sluggable_on_field_slug_field
|
533
|
+
-----------------------------------------------------------
|
534
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
535
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
536
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
537
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
538
|
+
[1m[36mTestModelSluggableOnFieldSlugField Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "test_model_sluggable_on_field_slug_fields" WHERE "test_model_sluggable_on_field_slug_fields"."parameterized" = 'sluggable-test-model' LIMIT 1[0m
|
539
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "test_model_sluggable_on_field_slug_fields" ("name", "parameterized", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Sluggable Test Model"], ["parameterized", "sluggable-test-model"], ["created_at", "2016-03-12 05:11:21.319272"], ["updated_at", "2016-03-12 05:11:21.319272"]]
|
540
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
541
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
542
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
543
|
+
[1m[35m (0.1ms)[0m begin transaction
|
544
|
+
------------------------------------------------
|
545
|
+
Namekuji::SluggableTest: test_sluggable_on_field
|
546
|
+
------------------------------------------------
|
547
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
548
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
549
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
550
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_2
|
551
|
+
[1m[36mTestModelSluggableOnField Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "test_model_sluggable_on_fields" WHERE "test_model_sluggable_on_fields"."slug" = 'sluggable-test-model' LIMIT 1[0m
|
552
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_model_sluggable_on_fields" ("name", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Sluggable Test Model"], ["slug", "sluggable-test-model"], ["created_at", "2016-03-12 05:11:21.332532"], ["updated_at", "2016-03-12 05:11:21.332532"]]
|
553
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
554
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
555
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
556
|
+
[1m[35m (0.1ms)[0m begin transaction
|
557
|
+
---------------------------------------
|
558
|
+
Namekuji::SluggableTest: test_sluggable
|
559
|
+
---------------------------------------
|
560
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
561
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
562
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
563
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_2
|
564
|
+
[1m[36mTestModelSluggable Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "test_model_sluggables" WHERE "test_model_sluggables"."slug" = 'sluggable-test-model' LIMIT 1[0m
|
565
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_model_sluggables" ("name", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Sluggable Test Model"], ["slug", "sluggable-test-model"], ["created_at", "2016-03-12 05:11:21.342485"], ["updated_at", "2016-03-12 05:11:21.342485"]]
|
566
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
567
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
568
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
569
|
+
[1m[35m (0.1ms)[0m begin transaction
|
570
|
+
-----------------------------------------------------------
|
571
|
+
Namekuji::SluggableTest: test_sluggable_removes_apostrophes
|
572
|
+
-----------------------------------------------------------
|
573
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
574
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
575
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
576
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_2
|
577
|
+
[1m[36mTestModelSluggable Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "test_model_sluggables" WHERE "test_model_sluggables"."slug" = 'we-dont-want-extra-dashes' LIMIT 1[0m
|
578
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "test_model_sluggables" ("name", "slug", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "We Don't Want Extra Dashes"], ["slug", "we-dont-want-extra-dashes"], ["created_at", "2016-03-12 05:11:21.346786"], ["updated_at", "2016-03-12 05:11:21.346786"]]
|
579
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
580
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
581
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
582
|
+
[1m[35m (0.1ms)[0m begin transaction
|
583
|
+
--------------------------------------------------
|
584
|
+
Namekuji::SluggableTest: test_sluggable_slug_field
|
585
|
+
--------------------------------------------------
|
586
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
587
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
588
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
589
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_2
|
590
|
+
[1m[36mTestModelSluggableSlugField Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "test_model_sluggable_slug_fields" WHERE "test_model_sluggable_slug_fields"."parameterized" = 'we-dont-want-extra-dashes' LIMIT 1[0m
|
591
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_model_sluggable_slug_fields" ("name", "parameterized", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "We Don't Want Extra Dashes"], ["parameterized", "we-dont-want-extra-dashes"], ["created_at", "2016-03-12 05:11:21.358543"], ["updated_at", "2016-03-12 05:11:21.358543"]]
|
592
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
|
593
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
594
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
595
|
+
[1m[35m (0.0ms)[0m begin transaction
|
596
|
+
---------------------------------------------------
|
597
|
+
Namekuji::ClassMethodsTest: test_sluggable_on_field
|
598
|
+
---------------------------------------------------
|
599
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
600
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
601
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
602
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
603
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
604
|
+
[1m[35m (0.0ms)[0m begin transaction
|
605
|
+
--------------------------------------------------------------
|
606
|
+
Namekuji::ClassMethodsTest: test_sluggable_on_field_slug_field
|
607
|
+
--------------------------------------------------------------
|
608
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
609
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
610
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
611
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
612
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
613
|
+
[1m[35m (0.0ms)[0m begin transaction
|
614
|
+
-----------------------------------------------------
|
615
|
+
Namekuji::ClassMethodsTest: test_sluggable_slug_field
|
616
|
+
-----------------------------------------------------
|
617
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
618
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
619
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
620
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
621
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
622
|
+
[1m[35m (0.0ms)[0m begin transaction
|
623
|
+
------------------------------------------
|
624
|
+
Namekuji::ClassMethodsTest: test_sluggable
|
625
|
+
------------------------------------------
|
626
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
627
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
628
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
629
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
630
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
631
|
+
[1m[35m (0.0ms)[0m begin transaction
|
632
|
+
------------------------
|
633
|
+
NamekujiTest: test_truth
|
634
|
+
------------------------
|
635
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
636
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
637
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
638
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
639
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|