activeadmin_cms 0.0.3 → 0.0.4
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 +8 -8
- data/README.md +1 -1
- data/app/admin/manage_pages.rb +3 -4
- data/app/admin/manage_posts.rb +2 -3
- data/app/models/activeadmin_cms/page.rb +3 -0
- data/app/models/activeadmin_cms/post.rb +2 -0
- data/app/services/activeadmin_cms/pages_service.rb +24 -0
- data/app/services/activeadmin_cms/posts_service.rb +15 -0
- data/db/migrate/20131020181730_add_slug_to_activeadmin_cms_pages.rb +6 -0
- data/lib/activeadmin_cms/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +3 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +20 -0
- data/test/dummy/log/test.log +685 -0
- data/test/factories/pages.rb +15 -0
- data/test/factories/posts.rb +14 -0
- data/test/factories/sequences.rb +5 -0
- data/test/services/pages_service_test.rb +20 -0
- data/test/services/posts_service_test.rb +14 -0
- metadata +10 -2
- data/app/helpers/activeadmin_cms/application_helper.rb +0 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTZiMDg1M2U0NWNhODljNTdkYjhhMjdjOTk0ODc1ODY5NWZmNjdiZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDNmOTBjMjc1ZDZlMWU2ZmEzMDFiZmJlMzFjNWM2Zjk0ODNkNTk1Zg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDMyYTQ0MjQ2OWUxNjdmZjBjN2U5MjAzMGY5NjUwYTVlMWY2MjVlMGI0OTI3
|
10
|
+
MTM3YzFmNzg2MWYyMWE2ZWU4YzAxMjVjZDU2MjhkMmQ5MjRmNDM4MWM5NmNi
|
11
|
+
NTEzM2NlZjc4MzIwYWI4MDRkZDY1ZWY5MzBkYTA5OGNkMmY0YTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTc5ODA2ZDllZTc2ZGZkNmZhY2M3MWE2ZTY1YWNiZGQyYWY4ZDAzNzZmOWQw
|
14
|
+
MTQzYWNlOTE3ODAxMGUyZDI0OGFmZTFlMTZiZWM2MWQ5NzJmMTU5NTQ3Mjhh
|
15
|
+
NDIxZDIzMzk1ZTllNTE1MThmMzE2M2VlOGJiMzk0ZTIzMzk5ODc=
|
data/README.md
CHANGED
data/app/admin/manage_pages.rb
CHANGED
@@ -50,7 +50,7 @@ ActiveAdmin.register ActiveadminCms::Page, as: 'Page' do
|
|
50
50
|
|
51
51
|
if @page.update_attributes(permitted_params)
|
52
52
|
if params[:commit].downcase != 'save'
|
53
|
-
@page
|
53
|
+
ActiveadminCms::PagesService.publish(@page)
|
54
54
|
end
|
55
55
|
redirect_to admin_page_path(@page)
|
56
56
|
else
|
@@ -85,14 +85,13 @@ ActiveAdmin.register ActiveadminCms::Page, as: 'Page' do
|
|
85
85
|
|
86
86
|
member_action :publish, method: :put do
|
87
87
|
page = ActiveadminCms::Page.find(params[:id])
|
88
|
-
|
88
|
+
ActiveadminCms::PagesService.publish(page)
|
89
89
|
redirect_to admin_page_path(page), notice: "The page has been published!"
|
90
90
|
end
|
91
91
|
|
92
92
|
member_action :draft, method: :put do
|
93
93
|
page = ActiveadminCms::Page.find(params[:id])
|
94
|
-
page
|
95
|
-
page.save
|
94
|
+
ActiveadminCms::PagesService.move_draft(page)
|
96
95
|
redirect_to admin_page_path(page), notice: "The page has been moved to draft!"
|
97
96
|
end
|
98
97
|
end
|
data/app/admin/manage_posts.rb
CHANGED
@@ -48,14 +48,13 @@ ActiveAdmin.register ActiveadminCms::Post, as: 'Post' do
|
|
48
48
|
|
49
49
|
member_action :publish, method: :put do
|
50
50
|
post = ActiveadminCms::Post.find(params[:id])
|
51
|
-
|
51
|
+
ActiveadminCms::PostsService.publish(post)
|
52
52
|
redirect_to admin_post_path(post), notice: "The post has been published!"
|
53
53
|
end
|
54
54
|
|
55
55
|
member_action :draft, method: :put do
|
56
56
|
post = ActiveadminCms::Post.find(params[:id])
|
57
|
-
post
|
58
|
-
post.save
|
57
|
+
ActiveadminCms::PostsService.move_draft(post)
|
59
58
|
redirect_to admin_post_path(post), notice: "The post has been moved to draft!"
|
60
59
|
end
|
61
60
|
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module ActiveadminCms
|
2
|
+
class PagesService
|
3
|
+
class << self
|
4
|
+
def publish(page)
|
5
|
+
page.content = page.draft_content
|
6
|
+
page.published = true
|
7
|
+
page.save
|
8
|
+
end
|
9
|
+
|
10
|
+
def move_draft(page)
|
11
|
+
page.published = false
|
12
|
+
page.save
|
13
|
+
end
|
14
|
+
|
15
|
+
def all_with_category(category)
|
16
|
+
ActiveadminCms::Page.where(category: category.to_s)
|
17
|
+
end
|
18
|
+
|
19
|
+
def find_by_slug(slug)
|
20
|
+
ActiveadminCms::Page.find_by_slug(slug)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
Binary file
|
data/test/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20131020181730) do
|
15
15
|
|
16
16
|
create_table "activeadmin_cms_pages", force: true do |t|
|
17
17
|
t.string "title"
|
@@ -21,9 +21,11 @@ ActiveRecord::Schema.define(version: 20131020152912) do
|
|
21
21
|
t.boolean "published", default: false
|
22
22
|
t.datetime "created_at"
|
23
23
|
t.datetime "updated_at"
|
24
|
+
t.string "slug"
|
24
25
|
end
|
25
26
|
|
26
27
|
add_index "activeadmin_cms_pages", ["category"], name: "index_activeadmin_cms_pages_on_category"
|
28
|
+
add_index "activeadmin_cms_pages", ["slug"], name: "index_activeadmin_cms_pages_on_slug"
|
27
29
|
|
28
30
|
create_table "activeadmin_cms_posts", force: true do |t|
|
29
31
|
t.string "title"
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -13,3 +13,23 @@ Migrating to CreateActiveadminCmsPages (20131020152912)
|
|
13
13
|
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20131020152912"]]
|
14
14
|
[1m[35m (1.0ms)[0m commit transaction
|
15
15
|
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
16
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
17
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
18
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
19
|
+
Migrating to AddSlugToActiveadminCmsPages (20131020181730)
|
20
|
+
[1m[35m (0.1ms)[0m begin transaction
|
21
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "pages" ADD "slug" varchar(255)[0m
|
22
|
+
SQLite3::SQLException: no such table: pages: ALTER TABLE "pages" ADD "slug" varchar(255)
|
23
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
24
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
25
|
+
Migrating to AddSlugToActiveadminCmsPages (20131020181730)
|
26
|
+
[1m[35m (0.1ms)[0m begin transaction
|
27
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "activeadmin_cms_pages" ADD "slug" varchar(255)[0m
|
28
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_activeadmin_cms_pages_on_slug" ON "activeadmin_cms_pages" ("slug")
|
29
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
30
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
31
|
+
Migrating to AddSlugToActiveadminCmsPages (20131020181730)
|
32
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33
|
+
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20131020181730"]]
|
34
|
+
[1m[35m (1.0ms)[0m commit transaction
|
35
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
data/test/dummy/log/test.log
CHANGED
@@ -8,3 +8,688 @@ ActiveadminCmsTest: test_truth
|
|
8
8
|
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9
9
|
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
10
10
|
[1m[35m (0.1ms)[0m rollback transaction
|
11
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12
|
+
-----------------------------------------------------
|
13
|
+
#publish: test_0001_should change status to published
|
14
|
+
-----------------------------------------------------
|
15
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
18
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
19
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
20
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21
|
+
------------------------------
|
22
|
+
ActiveadminCmsTest: test_truth
|
23
|
+
------------------------------
|
24
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
25
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
26
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
27
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
28
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
29
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
30
|
+
-----------------------------------------------------
|
31
|
+
#publish: test_0001_should change status to published
|
32
|
+
-----------------------------------------------------
|
33
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
34
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
37
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
38
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
39
|
+
------------------------------
|
40
|
+
ActiveadminCmsTest: test_truth
|
41
|
+
------------------------------
|
42
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
43
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
44
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
45
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
46
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
47
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
48
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
49
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
50
|
+
Migrating to CreateActiveadminCmsPosts (20131020140024)
|
51
|
+
[1m[35m (0.0ms)[0m begin transaction
|
52
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "activeadmin_cms_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "content" text, "published" boolean DEFAULT 'f', "created_at" datetime, "updated_at" datetime) [0m
|
53
|
+
[1m[35mSQL (1.9ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131020140024"]]
|
54
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
55
|
+
Migrating to CreateActiveadminCmsPages (20131020152912)
|
56
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57
|
+
[1m[36m (0.5ms)[0m [1mCREATE TABLE "activeadmin_cms_pages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "category" varchar(255), "content" text, "draft_content" text, "published" boolean DEFAULT 'f', "created_at" datetime, "updated_at" datetime) [0m
|
58
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_activeadmin_cms_pages_on_category" ON "activeadmin_cms_pages" ("category")
|
59
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20131020152912"]]
|
60
|
+
[1m[35m (1.0ms)[0m commit transaction
|
61
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
62
|
+
[1m[36m (1.1ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
63
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
64
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
65
|
+
[1m[35m (1.0ms)[0m DELETE FROM "activeadmin_cms_pages";
|
66
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
67
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
68
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
69
|
+
-----------------------------------------------------
|
70
|
+
#publish: test_0001_should change status to published
|
71
|
+
-----------------------------------------------------
|
72
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
73
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
74
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
75
|
+
[1m[36mSQL (5.8ms)[0m [1mINSERT INTO "activeadmin_cms_pages" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 17:50:02 UTC +00:00], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 17:50:02 UTC +00:00]]
|
76
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
77
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
78
|
+
[1m[35m (0.1ms)[0m begin transaction
|
79
|
+
------------------------------
|
80
|
+
ActiveadminCmsTest: test_truth
|
81
|
+
------------------------------
|
82
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
83
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
84
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
85
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
86
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
87
|
+
[1m[36m (1.3ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
88
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
89
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
90
|
+
[1m[35m (0.9ms)[0m DELETE FROM "activeadmin_cms_pages";
|
91
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
92
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
93
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
94
|
+
-----------------------------------------------------
|
95
|
+
#publish: test_0001_should change status to published
|
96
|
+
-----------------------------------------------------
|
97
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
98
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
99
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
100
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
101
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
102
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
103
|
+
------------------------------
|
104
|
+
ActiveadminCmsTest: test_truth
|
105
|
+
------------------------------
|
106
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
107
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
108
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
109
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
110
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
111
|
+
[1m[36m (1.3ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
112
|
+
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
113
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
114
|
+
[1m[35m (5.7ms)[0m DELETE FROM "activeadmin_cms_pages";
|
115
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
116
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
117
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
118
|
+
-----------------------------------------------------
|
119
|
+
#publish: test_0001_should change status to published
|
120
|
+
-----------------------------------------------------
|
121
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
122
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
123
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
124
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
125
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
126
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
127
|
+
------------------------------
|
128
|
+
ActiveadminCmsTest: test_truth
|
129
|
+
------------------------------
|
130
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
131
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
132
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
133
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
134
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
135
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
136
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
137
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
138
|
+
[1m[35m (0.9ms)[0m DELETE FROM "activeadmin_cms_pages";
|
139
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
140
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
141
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
142
|
+
-----------------------------------------------------
|
143
|
+
#publish: test_0001_should change status to published
|
144
|
+
-----------------------------------------------------
|
145
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
146
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
147
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
148
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
149
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
150
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
151
|
+
------------------------------
|
152
|
+
ActiveadminCmsTest: test_truth
|
153
|
+
------------------------------
|
154
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
155
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
156
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
157
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
158
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
159
|
+
[1m[36m (1.3ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
160
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
161
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
162
|
+
[1m[35m (2.0ms)[0m DELETE FROM "activeadmin_cms_pages";
|
163
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
164
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
165
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
166
|
+
-----------------------------------------------------
|
167
|
+
#publish: test_0001_should change status to published
|
168
|
+
-----------------------------------------------------
|
169
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
170
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
171
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
172
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
173
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
174
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
175
|
+
------------------------------
|
176
|
+
ActiveadminCmsTest: test_truth
|
177
|
+
------------------------------
|
178
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
179
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
180
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
181
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
182
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
183
|
+
[1m[36m (1.6ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
184
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
185
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
186
|
+
[1m[35m (1.1ms)[0m DELETE FROM "activeadmin_cms_pages";
|
187
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
188
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
189
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
190
|
+
-----------------------------------------------------
|
191
|
+
#publish: test_0001_should change status to published
|
192
|
+
-----------------------------------------------------
|
193
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
194
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
195
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
196
|
+
[1m[36mSQL (5.7ms)[0m [1mINSERT INTO "activeadmin_cms_pages" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 17:56:45 UTC +00:00], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 17:56:45 UTC +00:00]]
|
197
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
198
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
199
|
+
[1m[35m (0.1ms)[0m begin transaction
|
200
|
+
------------------------------
|
201
|
+
ActiveadminCmsTest: test_truth
|
202
|
+
------------------------------
|
203
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
204
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
205
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
206
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
207
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
208
|
+
[1m[36m (1.3ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
209
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
210
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
211
|
+
[1m[35m (1.0ms)[0m DELETE FROM "activeadmin_cms_pages";
|
212
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
213
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
214
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
215
|
+
-----------------------------------------------------
|
216
|
+
#publish: test_0001_should change status to published
|
217
|
+
-----------------------------------------------------
|
218
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
219
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
220
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
221
|
+
[1m[36mSQL (5.2ms)[0m [1mINSERT INTO "activeadmin_cms_pages" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 17:57:03 UTC +00:00], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 17:57:03 UTC +00:00]]
|
222
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "activeadmin_cms_pages" SET "content" = ?, "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_pages"."id" = 1 [["content", nil], ["published", true], ["updated_at", Sun, 20 Oct 2013 17:57:03 UTC +00:00]]
|
223
|
+
[1m[36mActiveadminCms::Page Load (0.3ms)[0m [1mSELECT "activeadmin_cms_pages".* FROM "activeadmin_cms_pages" WHERE "activeadmin_cms_pages"."id" = ? LIMIT 1[0m [["id", 1]]
|
224
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
225
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
226
|
+
[1m[35m (0.1ms)[0m begin transaction
|
227
|
+
------------------------------
|
228
|
+
ActiveadminCmsTest: test_truth
|
229
|
+
------------------------------
|
230
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
231
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
232
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
233
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
234
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
235
|
+
[1m[36m (1.4ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
236
|
+
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
237
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
238
|
+
[1m[35m (5.7ms)[0m DELETE FROM "activeadmin_cms_pages";
|
239
|
+
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
240
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
241
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
242
|
+
-----------------------------------------------------
|
243
|
+
#publish: test_0001_should change status to published
|
244
|
+
-----------------------------------------------------
|
245
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
246
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
247
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
248
|
+
[1m[36mSQL (6.1ms)[0m [1mINSERT INTO "activeadmin_cms_pages" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 17:57:24 UTC +00:00], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 17:57:24 UTC +00:00]]
|
249
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "activeadmin_cms_pages" SET "content" = ?, "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_pages"."id" = 1 [["content", nil], ["published", true], ["updated_at", Sun, 20 Oct 2013 17:57:24 UTC +00:00]]
|
250
|
+
[1m[36mActiveadminCms::Page Load (0.1ms)[0m [1mSELECT "activeadmin_cms_pages".* FROM "activeadmin_cms_pages" WHERE "activeadmin_cms_pages"."id" = ? LIMIT 1[0m [["id", 1]]
|
251
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
252
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
253
|
+
[1m[35m (0.1ms)[0m begin transaction
|
254
|
+
------------------------------
|
255
|
+
ActiveadminCmsTest: test_truth
|
256
|
+
------------------------------
|
257
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
258
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
259
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
260
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
261
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
262
|
+
[1m[36m (1.5ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
263
|
+
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
264
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
265
|
+
[1m[35m (2.0ms)[0m DELETE FROM "activeadmin_cms_pages";
|
266
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
267
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
268
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
269
|
+
-----------------------------------------------------
|
270
|
+
#publish: test_0001_should change status to published
|
271
|
+
-----------------------------------------------------
|
272
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
273
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
274
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
275
|
+
[1m[36mSQL (5.4ms)[0m [1mINSERT INTO "activeadmin_cms_pages" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 17:57:46 UTC +00:00], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 17:57:46 UTC +00:00]]
|
276
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "activeadmin_cms_pages" SET "content" = ?, "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_pages"."id" = 1 [["content", nil], ["published", true], ["updated_at", Sun, 20 Oct 2013 17:57:46 UTC +00:00]]
|
277
|
+
[1m[36mActiveadminCms::Page Load (0.2ms)[0m [1mSELECT "activeadmin_cms_pages".* FROM "activeadmin_cms_pages" WHERE "activeadmin_cms_pages"."id" = ? LIMIT 1[0m [["id", 1]]
|
278
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
279
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
280
|
+
[1m[35m (0.1ms)[0m begin transaction
|
281
|
+
------------------------------
|
282
|
+
ActiveadminCmsTest: test_truth
|
283
|
+
------------------------------
|
284
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
285
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
286
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
287
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
288
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
289
|
+
[1m[36m (1.3ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
290
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
291
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
292
|
+
[1m[35m (5.8ms)[0m DELETE FROM "activeadmin_cms_pages";
|
293
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
294
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
295
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
296
|
+
-----------------------------------------------------
|
297
|
+
#publish: test_0001_should change status to published
|
298
|
+
-----------------------------------------------------
|
299
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
300
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
301
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
302
|
+
[1m[36mSQL (5.5ms)[0m [1mINSERT INTO "activeadmin_cms_pages" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 17:58:48 UTC +00:00], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 17:58:48 UTC +00:00]]
|
303
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "activeadmin_cms_pages" SET "content" = ?, "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_pages"."id" = 1 [["content", nil], ["published", true], ["updated_at", Sun, 20 Oct 2013 17:58:48 UTC +00:00]]
|
304
|
+
[1m[36mActiveadminCms::Page Load (0.3ms)[0m [1mSELECT "activeadmin_cms_pages".* FROM "activeadmin_cms_pages" WHERE "activeadmin_cms_pages"."id" = ? LIMIT 1[0m [["id", 1]]
|
305
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
306
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
307
|
+
[1m[35m (0.1ms)[0m begin transaction
|
308
|
+
--------------------------------------------------
|
309
|
+
#publish: test_0002_should move content from draft
|
310
|
+
--------------------------------------------------
|
311
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
312
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
313
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
314
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "activeadmin_cms_pages" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 17:58:48 UTC +00:00], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 17:58:48 UTC +00:00]]
|
315
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
316
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
317
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
318
|
+
------------------------------
|
319
|
+
ActiveadminCmsTest: test_truth
|
320
|
+
------------------------------
|
321
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
322
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
323
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
324
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
325
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
326
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
327
|
+
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
328
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
329
|
+
[1m[35m (1.9ms)[0m DELETE FROM "activeadmin_cms_pages";
|
330
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
331
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
332
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
333
|
+
-----------------------------------------------------
|
334
|
+
#publish: test_0001_should change status to published
|
335
|
+
-----------------------------------------------------
|
336
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
337
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
338
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
339
|
+
[1m[36mSQL (5.0ms)[0m [1mINSERT INTO "activeadmin_cms_pages" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 17:59:10 UTC +00:00], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 17:59:10 UTC +00:00]]
|
340
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "activeadmin_cms_pages" SET "content" = ?, "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_pages"."id" = 1 [["content", nil], ["published", true], ["updated_at", Sun, 20 Oct 2013 17:59:10 UTC +00:00]]
|
341
|
+
[1m[36mActiveadminCms::Page Load (0.1ms)[0m [1mSELECT "activeadmin_cms_pages".* FROM "activeadmin_cms_pages" WHERE "activeadmin_cms_pages"."id" = ? LIMIT 1[0m [["id", 1]]
|
342
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
343
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
344
|
+
[1m[35m (0.1ms)[0m begin transaction
|
345
|
+
--------------------------------------------------
|
346
|
+
#publish: test_0002_should move content from draft
|
347
|
+
--------------------------------------------------
|
348
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
349
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
350
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
351
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "activeadmin_cms_pages" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 17:59:10 UTC +00:00], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 17:59:10 UTC +00:00]]
|
352
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
353
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
354
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
355
|
+
------------------------------
|
356
|
+
ActiveadminCmsTest: test_truth
|
357
|
+
------------------------------
|
358
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
359
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
360
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
361
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
362
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
363
|
+
[1m[36m (1.4ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
364
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
365
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
366
|
+
[1m[35m (1.9ms)[0m DELETE FROM "activeadmin_cms_pages";
|
367
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
368
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
369
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
370
|
+
-----------------------------------------------------
|
371
|
+
#publish: test_0001_should change status to published
|
372
|
+
-----------------------------------------------------
|
373
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
374
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
375
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
376
|
+
[1m[36mSQL (6.0ms)[0m [1mINSERT INTO "activeadmin_cms_pages" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 17:59:23 UTC +00:00], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 17:59:23 UTC +00:00]]
|
377
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "activeadmin_cms_pages" SET "content" = ?, "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_pages"."id" = 1 [["content", nil], ["published", true], ["updated_at", Sun, 20 Oct 2013 17:59:23 UTC +00:00]]
|
378
|
+
[1m[36mActiveadminCms::Page Load (0.1ms)[0m [1mSELECT "activeadmin_cms_pages".* FROM "activeadmin_cms_pages" WHERE "activeadmin_cms_pages"."id" = ? LIMIT 1[0m [["id", 1]]
|
379
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
380
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
381
|
+
[1m[35m (0.1ms)[0m begin transaction
|
382
|
+
--------------------------------------------------
|
383
|
+
#publish: test_0002_should move content from draft
|
384
|
+
--------------------------------------------------
|
385
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
386
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
387
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
388
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "activeadmin_cms_pages" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 17:59:23 UTC +00:00], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 17:59:23 UTC +00:00]]
|
389
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "activeadmin_cms_pages" SET "draft_content" = ?, "content" = ?, "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_pages"."id" = 1[0m [["draft_content", "new content"], ["content", "new content"], ["published", true], ["updated_at", Sun, 20 Oct 2013 17:59:23 UTC +00:00]]
|
390
|
+
[1m[35mActiveadminCms::Page Load (0.0ms)[0m SELECT "activeadmin_cms_pages".* FROM "activeadmin_cms_pages" WHERE "activeadmin_cms_pages"."id" = ? LIMIT 1 [["id", 1]]
|
391
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
392
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
393
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
394
|
+
------------------------------
|
395
|
+
ActiveadminCmsTest: test_truth
|
396
|
+
------------------------------
|
397
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
398
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
399
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
400
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
401
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
402
|
+
[1m[36m (1.4ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
403
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
404
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
405
|
+
[1m[35m (1.9ms)[0m DELETE FROM "activeadmin_cms_pages";
|
406
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
407
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
408
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
409
|
+
-----------------------------------------------------
|
410
|
+
#publish: test_0001_should change status to published
|
411
|
+
-----------------------------------------------------
|
412
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
413
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
414
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
415
|
+
[1m[36mSQL (5.8ms)[0m [1mINSERT INTO "activeadmin_cms_pages" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 18:00:51 UTC +00:00], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 18:00:51 UTC +00:00]]
|
416
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "activeadmin_cms_pages" SET "content" = ?, "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_pages"."id" = 1 [["content", nil], ["published", true], ["updated_at", Sun, 20 Oct 2013 18:00:51 UTC +00:00]]
|
417
|
+
[1m[36mActiveadminCms::Page Load (0.1ms)[0m [1mSELECT "activeadmin_cms_pages".* FROM "activeadmin_cms_pages" WHERE "activeadmin_cms_pages"."id" = ? LIMIT 1[0m [["id", 1]]
|
418
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
419
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
420
|
+
[1m[35m (0.1ms)[0m begin transaction
|
421
|
+
--------------------------------------------------
|
422
|
+
#publish: test_0002_should move content from draft
|
423
|
+
--------------------------------------------------
|
424
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
425
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
426
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
427
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "activeadmin_cms_pages" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 18:00:51 UTC +00:00], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 18:00:51 UTC +00:00]]
|
428
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "activeadmin_cms_pages" SET "draft_content" = ?, "content" = ?, "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_pages"."id" = 1[0m [["draft_content", "new content"], ["content", "new content"], ["published", true], ["updated_at", Sun, 20 Oct 2013 18:00:51 UTC +00:00]]
|
429
|
+
[1m[35mActiveadminCms::Page Load (0.0ms)[0m SELECT "activeadmin_cms_pages".* FROM "activeadmin_cms_pages" WHERE "activeadmin_cms_pages"."id" = ? LIMIT 1 [["id", 1]]
|
430
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
431
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
432
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
433
|
+
------------------------------
|
434
|
+
ActiveadminCmsTest: test_truth
|
435
|
+
------------------------------
|
436
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
437
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
438
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
439
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
440
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
441
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
442
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
443
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
444
|
+
[1m[35m (0.9ms)[0m DELETE FROM "activeadmin_cms_pages";
|
445
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
446
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
447
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
448
|
+
-----------------------------------------------------
|
449
|
+
#publish: test_0001_should change status to published
|
450
|
+
-----------------------------------------------------
|
451
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
452
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
453
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
454
|
+
[1m[36mSQL (5.2ms)[0m [1mINSERT INTO "activeadmin_cms_posts" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 18:01:28 UTC +00:00], ["title", "Foo post"], ["updated_at", Sun, 20 Oct 2013 18:01:28 UTC +00:00]]
|
455
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "activeadmin_cms_posts" SET "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_posts"."id" = 1 [["published", true], ["updated_at", Sun, 20 Oct 2013 18:01:28 UTC +00:00]]
|
456
|
+
[1m[36mActiveadminCms::Post Load (0.2ms)[0m [1mSELECT "activeadmin_cms_posts".* FROM "activeadmin_cms_posts" WHERE "activeadmin_cms_posts"."id" = ? LIMIT 1[0m [["id", 1]]
|
457
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
458
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
459
|
+
[1m[35m (0.1ms)[0m begin transaction
|
460
|
+
-----------------------------------------------------
|
461
|
+
#publish: test_0001_should change status to published
|
462
|
+
-----------------------------------------------------
|
463
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
464
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
465
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
466
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "activeadmin_cms_pages" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 18:01:28 UTC +00:00], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 18:01:28 UTC +00:00]]
|
467
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "activeadmin_cms_pages" SET "content" = ?, "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_pages"."id" = 1[0m [["content", nil], ["published", true], ["updated_at", Sun, 20 Oct 2013 18:01:28 UTC +00:00]]
|
468
|
+
[1m[35mActiveadminCms::Page Load (0.1ms)[0m SELECT "activeadmin_cms_pages".* FROM "activeadmin_cms_pages" WHERE "activeadmin_cms_pages"."id" = ? LIMIT 1 [["id", 1]]
|
469
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
470
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
471
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
472
|
+
--------------------------------------------------
|
473
|
+
#publish: test_0002_should move content from draft
|
474
|
+
--------------------------------------------------
|
475
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
476
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
477
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
478
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "activeadmin_cms_pages" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 18:01:28 UTC +00:00], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 18:01:28 UTC +00:00]]
|
479
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "activeadmin_cms_pages" SET "draft_content" = ?, "content" = ?, "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_pages"."id" = 1 [["draft_content", "new content"], ["content", "new content"], ["published", true], ["updated_at", Sun, 20 Oct 2013 18:01:28 UTC +00:00]]
|
480
|
+
[1m[36mActiveadminCms::Page Load (0.0ms)[0m [1mSELECT "activeadmin_cms_pages".* FROM "activeadmin_cms_pages" WHERE "activeadmin_cms_pages"."id" = ? LIMIT 1[0m [["id", 1]]
|
481
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
482
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
483
|
+
[1m[35m (0.1ms)[0m begin transaction
|
484
|
+
------------------------------
|
485
|
+
ActiveadminCmsTest: test_truth
|
486
|
+
------------------------------
|
487
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
488
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
489
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
490
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
491
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
492
|
+
[1m[36m (9.5ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
493
|
+
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
494
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
495
|
+
[1m[35m (5.5ms)[0m DELETE FROM "activeadmin_cms_pages";
|
496
|
+
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
497
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
498
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
499
|
+
-----------------------------------------------------
|
500
|
+
#publish: test_0001_should change status to published
|
501
|
+
-----------------------------------------------------
|
502
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
503
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
504
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
505
|
+
[1m[36mSQL (5.5ms)[0m [1mINSERT INTO "activeadmin_cms_posts" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 18:07:35 UTC +00:00], ["title", "Foo post"], ["updated_at", Sun, 20 Oct 2013 18:07:35 UTC +00:00]]
|
506
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "activeadmin_cms_posts" SET "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_posts"."id" = 1 [["published", true], ["updated_at", Sun, 20 Oct 2013 18:07:35 UTC +00:00]]
|
507
|
+
[1m[36mActiveadminCms::Post Load (0.2ms)[0m [1mSELECT "activeadmin_cms_posts".* FROM "activeadmin_cms_posts" WHERE "activeadmin_cms_posts"."id" = ? LIMIT 1[0m [["id", 1]]
|
508
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
509
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
510
|
+
[1m[35m (0.1ms)[0m begin transaction
|
511
|
+
-----------------------------------------------------
|
512
|
+
#publish: test_0001_should change status to published
|
513
|
+
-----------------------------------------------------
|
514
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
515
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
516
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
517
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "activeadmin_cms_pages" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 18:07:35 UTC +00:00], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 18:07:35 UTC +00:00]]
|
518
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "activeadmin_cms_pages" SET "content" = ?, "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_pages"."id" = 1[0m [["content", nil], ["published", true], ["updated_at", Sun, 20 Oct 2013 18:07:35 UTC +00:00]]
|
519
|
+
[1m[35mActiveadminCms::Page Load (0.1ms)[0m SELECT "activeadmin_cms_pages".* FROM "activeadmin_cms_pages" WHERE "activeadmin_cms_pages"."id" = ? LIMIT 1 [["id", 1]]
|
520
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
521
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
522
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
523
|
+
--------------------------------------------------
|
524
|
+
#publish: test_0002_should move content from draft
|
525
|
+
--------------------------------------------------
|
526
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
527
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
528
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
529
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "activeadmin_cms_pages" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 18:07:35 UTC +00:00], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 18:07:35 UTC +00:00]]
|
530
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "activeadmin_cms_pages" SET "draft_content" = ?, "content" = ?, "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_pages"."id" = 1 [["draft_content", "new content"], ["content", "new content"], ["published", true], ["updated_at", Sun, 20 Oct 2013 18:07:35 UTC +00:00]]
|
531
|
+
[1m[36mActiveadminCms::Page Load (0.0ms)[0m [1mSELECT "activeadmin_cms_pages".* FROM "activeadmin_cms_pages" WHERE "activeadmin_cms_pages"."id" = ? LIMIT 1[0m [["id", 1]]
|
532
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
533
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
534
|
+
[1m[35m (0.1ms)[0m begin transaction
|
535
|
+
------------------------------
|
536
|
+
ActiveadminCmsTest: test_truth
|
537
|
+
------------------------------
|
538
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
539
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
540
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
541
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
542
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
543
|
+
[1m[36m (1.4ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
544
|
+
[1m[35m (0.2ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
545
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
546
|
+
[1m[35m (1.2ms)[0m DELETE FROM "activeadmin_cms_pages";
|
547
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
548
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
549
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
550
|
+
-----------------------------------------------------
|
551
|
+
#publish: test_0001_should change status to published
|
552
|
+
-----------------------------------------------------
|
553
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
554
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
555
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
556
|
+
[1m[36mSQL (6.1ms)[0m [1mINSERT INTO "activeadmin_cms_posts" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 18:24:47 UTC +00:00], ["title", "Foo post"], ["updated_at", Sun, 20 Oct 2013 18:24:47 UTC +00:00]]
|
557
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "activeadmin_cms_posts" SET "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_posts"."id" = 1 [["published", true], ["updated_at", Sun, 20 Oct 2013 18:24:48 UTC +00:00]]
|
558
|
+
[1m[36mActiveadminCms::Post Load (0.1ms)[0m [1mSELECT "activeadmin_cms_posts".* FROM "activeadmin_cms_posts" WHERE "activeadmin_cms_posts"."id" = ? LIMIT 1[0m [["id", 1]]
|
559
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
560
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
561
|
+
[1m[35m (0.1ms)[0m begin transaction
|
562
|
+
-----------------------------------------------------
|
563
|
+
#publish: test_0001_should change status to published
|
564
|
+
-----------------------------------------------------
|
565
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
566
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
567
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
568
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
569
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
570
|
+
[1m[35m (0.0ms)[0m begin transaction
|
571
|
+
--------------------------------------------------
|
572
|
+
#publish: test_0002_should move content from draft
|
573
|
+
--------------------------------------------------
|
574
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
575
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
576
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
577
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
578
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
579
|
+
[1m[35m (0.1ms)[0m begin transaction
|
580
|
+
------------------------------
|
581
|
+
ActiveadminCmsTest: test_truth
|
582
|
+
------------------------------
|
583
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
584
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
585
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
586
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
587
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
588
|
+
[1m[36m (1.2ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
589
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
590
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
591
|
+
[1m[35m (1.0ms)[0m DELETE FROM "activeadmin_cms_pages";
|
592
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
593
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
594
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
595
|
+
-----------------------------------------------------
|
596
|
+
#publish: test_0001_should change status to published
|
597
|
+
-----------------------------------------------------
|
598
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
599
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
600
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
601
|
+
[1m[36mSQL (5.6ms)[0m [1mINSERT INTO "activeadmin_cms_posts" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 18:25:57 UTC +00:00], ["title", "Foo post"], ["updated_at", Sun, 20 Oct 2013 18:25:57 UTC +00:00]]
|
602
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "activeadmin_cms_posts" SET "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_posts"."id" = 1 [["published", true], ["updated_at", Sun, 20 Oct 2013 18:25:57 UTC +00:00]]
|
603
|
+
[1m[36mActiveadminCms::Post Load (0.1ms)[0m [1mSELECT "activeadmin_cms_posts".* FROM "activeadmin_cms_posts" WHERE "activeadmin_cms_posts"."id" = ? LIMIT 1[0m [["id", 1]]
|
604
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
605
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
606
|
+
[1m[35m (0.1ms)[0m begin transaction
|
607
|
+
-----------------------------------------------------
|
608
|
+
#publish: test_0001_should change status to published
|
609
|
+
-----------------------------------------------------
|
610
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
611
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
612
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
613
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
614
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
615
|
+
[1m[35m (0.1ms)[0m begin transaction
|
616
|
+
--------------------------------------------------
|
617
|
+
#publish: test_0002_should move content from draft
|
618
|
+
--------------------------------------------------
|
619
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
620
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
621
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
622
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
623
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
624
|
+
[1m[35m (0.0ms)[0m begin transaction
|
625
|
+
------------------------------
|
626
|
+
ActiveadminCmsTest: test_truth
|
627
|
+
------------------------------
|
628
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
629
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
630
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
631
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
632
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
633
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
634
|
+
Migrating to AddSlugToActiveadminCmsPages (20131020181730)
|
635
|
+
[1m[35m (0.1ms)[0m begin transaction
|
636
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "activeadmin_cms_pages" ADD "slug" varchar(255)[0m
|
637
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_activeadmin_cms_pages_on_slug" ON "activeadmin_cms_pages" ("slug")
|
638
|
+
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20131020181730"]]
|
639
|
+
[1m[35m (1.0ms)[0m commit transaction
|
640
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
641
|
+
[1m[36m (1.3ms)[0m [1mDELETE FROM "activeadmin_cms_posts";[0m
|
642
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
643
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'activeadmin_cms_posts';[0m
|
644
|
+
[1m[35m (5.7ms)[0m DELETE FROM "activeadmin_cms_pages";
|
645
|
+
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
646
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'activeadmin_cms_pages';
|
647
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
648
|
+
-----------------------------------------------------
|
649
|
+
#publish: test_0001_should change status to published
|
650
|
+
-----------------------------------------------------
|
651
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
652
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
653
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
654
|
+
[1m[36mSQL (7.0ms)[0m [1mINSERT INTO "activeadmin_cms_posts" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 18:26:21 UTC +00:00], ["title", "Foo post"], ["updated_at", Sun, 20 Oct 2013 18:26:21 UTC +00:00]]
|
655
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "activeadmin_cms_posts" SET "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_posts"."id" = 1 [["published", true], ["updated_at", Sun, 20 Oct 2013 18:26:21 UTC +00:00]]
|
656
|
+
[1m[36mActiveadminCms::Post Load (0.1ms)[0m [1mSELECT "activeadmin_cms_posts".* FROM "activeadmin_cms_posts" WHERE "activeadmin_cms_posts"."id" = ? LIMIT 1[0m [["id", 1]]
|
657
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
658
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
659
|
+
[1m[35m (0.0ms)[0m begin transaction
|
660
|
+
-----------------------------------------------------
|
661
|
+
#publish: test_0001_should change status to published
|
662
|
+
-----------------------------------------------------
|
663
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
664
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
665
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
666
|
+
[1m[35mActiveadminCms::Page Exists (0.1ms)[0m SELECT 1 AS one FROM "activeadmin_cms_pages" WHERE "activeadmin_cms_pages"."slug" = 'slug-1' LIMIT 1
|
667
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "activeadmin_cms_pages" ("content", "created_at", "slug", "title", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 18:26:21 UTC +00:00], ["slug", "slug-1"], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 18:26:21 UTC +00:00]]
|
668
|
+
[1m[35mActiveadminCms::Page Exists (0.1ms)[0m SELECT 1 AS one FROM "activeadmin_cms_pages" WHERE ("activeadmin_cms_pages"."slug" = 'slug-1' AND "activeadmin_cms_pages"."id" != 1) LIMIT 1
|
669
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "activeadmin_cms_pages" SET "content" = ?, "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_pages"."id" = 1[0m [["content", nil], ["published", true], ["updated_at", Sun, 20 Oct 2013 18:26:21 UTC +00:00]]
|
670
|
+
[1m[35mActiveadminCms::Page Load (0.1ms)[0m SELECT "activeadmin_cms_pages".* FROM "activeadmin_cms_pages" WHERE "activeadmin_cms_pages"."id" = ? LIMIT 1 [["id", 1]]
|
671
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
672
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
673
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
674
|
+
--------------------------------------------------
|
675
|
+
#publish: test_0002_should move content from draft
|
676
|
+
--------------------------------------------------
|
677
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
678
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
679
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
680
|
+
[1m[36mActiveadminCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "activeadmin_cms_pages" WHERE "activeadmin_cms_pages"."slug" = 'slug-2' LIMIT 1[0m
|
681
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "activeadmin_cms_pages" ("content", "created_at", "slug", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "Foo content"], ["created_at", Sun, 20 Oct 2013 18:26:21 UTC +00:00], ["slug", "slug-2"], ["title", "Foo page"], ["updated_at", Sun, 20 Oct 2013 18:26:21 UTC +00:00]]
|
682
|
+
[1m[36mActiveadminCms::Page Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "activeadmin_cms_pages" WHERE ("activeadmin_cms_pages"."slug" = 'slug-2' AND "activeadmin_cms_pages"."id" != 1) LIMIT 1[0m
|
683
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "activeadmin_cms_pages" SET "draft_content" = ?, "content" = ?, "published" = ?, "updated_at" = ? WHERE "activeadmin_cms_pages"."id" = 1 [["draft_content", "new content"], ["content", "new content"], ["published", true], ["updated_at", Sun, 20 Oct 2013 18:26:21 UTC +00:00]]
|
684
|
+
[1m[36mActiveadminCms::Page Load (0.0ms)[0m [1mSELECT "activeadmin_cms_pages".* FROM "activeadmin_cms_pages" WHERE "activeadmin_cms_pages"."id" = ? LIMIT 1[0m [["id", 1]]
|
685
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
686
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
687
|
+
[1m[35m (0.0ms)[0m begin transaction
|
688
|
+
------------------------------
|
689
|
+
ActiveadminCmsTest: test_truth
|
690
|
+
------------------------------
|
691
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
692
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
693
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
694
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
695
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
data/test/factories/pages.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :page, class: ActiveadminCms::Page do
|
3
|
+
title "Foo page"
|
4
|
+
content "Foo content"
|
5
|
+
slug { generate(:slug) }
|
6
|
+
end
|
7
|
+
|
8
|
+
factory :draft_page, parent: :page do
|
9
|
+
published false
|
10
|
+
end
|
11
|
+
|
12
|
+
factory :published_page, parent: :page do
|
13
|
+
published false
|
14
|
+
end
|
15
|
+
end
|
data/test/factories/posts.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
FactoryGirl.define do
|
2
|
+
factory :post, class: ActiveadminCms::Post do
|
3
|
+
title "Foo post"
|
4
|
+
content "Foo content"
|
5
|
+
end
|
6
|
+
|
7
|
+
factory :draft_post, parent: :post do
|
8
|
+
published false
|
9
|
+
end
|
10
|
+
|
11
|
+
factory :published_post, parent: :post do
|
12
|
+
published false
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class ActiveadminCms::PagesServiceTest < ActiveSupport::TestCase
|
4
|
+
let(:subject) { ActiveadminCms::PagesService }
|
5
|
+
let(:page) { create(:page) }
|
6
|
+
|
7
|
+
describe '#publish' do
|
8
|
+
let(:page) { create(:draft_page) }
|
9
|
+
it 'should change status to published' do
|
10
|
+
subject.publish(page)
|
11
|
+
assert_equal page.reload.published?, true
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'should move content from draft' do
|
15
|
+
page.draft_content = "new content"
|
16
|
+
subject.publish(page)
|
17
|
+
assert_equal page.reload.content, "new content"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class ActiveadminCms::PostsServiceTest < ActiveSupport::TestCase
|
4
|
+
let(:subject) { ActiveadminCms::PostsService }
|
5
|
+
let(:post) { create(:post) }
|
6
|
+
|
7
|
+
describe '#publish' do
|
8
|
+
let(:post) { create(:draft_post) }
|
9
|
+
it 'should change status to published' do
|
10
|
+
subject.publish(post)
|
11
|
+
assert_equal post.reload.published?, true
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Iskander Haziev
|
@@ -178,13 +178,15 @@ files:
|
|
178
178
|
- app/assets/stylesheets/activeadmin_cms/base.css
|
179
179
|
- app/assets/stylesheets/activeadmin_cms/editor/ace.css
|
180
180
|
- app/controllers/activeadmin_cms/application_controller.rb
|
181
|
-
- app/helpers/activeadmin_cms/application_helper.rb
|
182
181
|
- app/models/activeadmin_cms/page.rb
|
183
182
|
- app/models/activeadmin_cms/post.rb
|
183
|
+
- app/services/activeadmin_cms/pages_service.rb
|
184
|
+
- app/services/activeadmin_cms/posts_service.rb
|
184
185
|
- app/views/layouts/activeadmin_cms/application.html.erb
|
185
186
|
- config/routes.rb
|
186
187
|
- db/migrate/20131020140024_create_activeadmin_cms_posts.rb
|
187
188
|
- db/migrate/20131020152912_create_activeadmin_cms_pages.rb
|
189
|
+
- db/migrate/20131020181730_add_slug_to_activeadmin_cms_pages.rb
|
188
190
|
- lib/activeadmin_cms/engine.rb
|
189
191
|
- lib/activeadmin_cms/version.rb
|
190
192
|
- lib/activeadmin_cms.rb
|
@@ -232,8 +234,11 @@ files:
|
|
232
234
|
- test/dummy/README.rdoc
|
233
235
|
- test/factories/pages.rb
|
234
236
|
- test/factories/posts.rb
|
237
|
+
- test/factories/sequences.rb
|
235
238
|
- test/models/activeadmin_cms/page_test.rb
|
236
239
|
- test/models/activeadmin_cms/post_test.rb
|
240
|
+
- test/services/pages_service_test.rb
|
241
|
+
- test/services/posts_service_test.rb
|
237
242
|
- test/test_helper.rb
|
238
243
|
homepage: https://github.com/droidlabs/activeadmin_cms
|
239
244
|
licenses: []
|
@@ -298,6 +303,9 @@ test_files:
|
|
298
303
|
- test/dummy/README.rdoc
|
299
304
|
- test/factories/pages.rb
|
300
305
|
- test/factories/posts.rb
|
306
|
+
- test/factories/sequences.rb
|
301
307
|
- test/models/activeadmin_cms/page_test.rb
|
302
308
|
- test/models/activeadmin_cms/post_test.rb
|
309
|
+
- test/services/pages_service_test.rb
|
310
|
+
- test/services/posts_service_test.rb
|
303
311
|
- test/test_helper.rb
|