public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
mephisto / test / fixtures / contents.yml
100644 233 lines (233 sloc) 6.824 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
# :title, :string, :limit => 255
# :permalink, :string, :limit => 255
# :excerpt, :text
# :body, :text
# :created_at, :datetime
# :updated_at, :datetime
# :published_at, :datetime
welcome:
  id: 1
  site_id: 1
  title: Welcome to Mephisto
  permalink: welcome-to-mephisto
  excerpt: welcome summary
  excerpt_html: welcome summary
  body: "quentin's \"welcome\" *description* <script>hi</script><a onclick=\"foo\" href=\"#\">linkage</a>"
  body_html: "<p>quentin&#8217;s &#8220;welcome&#8221; <strong>description</strong> <script>hi</script><a onclick=\"foo\" href=\"#\">linkage</a></p>"
  created_at: <%= 5.days.ago.utc.to_s(:db) %>
  updated_at: <%= 5.days.ago.utc.to_s(:db) %>
  published_at: <%= 3.days.ago.utc.to_s(:db) %>
  comment_age: 30
  user_id: 1
  comments_count: 1
  type: Article
  filter: textile_filter
  version: 2
  updater_id: 1
another:
  id: 2
  site_id: 1
  title: Another Welcome to Mephisto
  permalink: another-welcome-to-mephisto
  body: another welcome description
  body_html: another welcome description
  created_at: <%= 4.days.ago.utc.to_s(:db) %>
  updated_at: <%= 4.days.ago.utc.to_s(:db) %>
  published_at: <%= 4.days.ago.utc.to_s(:db) %>
  comment_age: 1
  user_id: 3
  type: Article
welcome_comment:
  id: 3
  site_id: 1
  article_id: 1
  title: Welcome to Mephisto
  permalink: welcome-to-mephisto
  body: "rico's evil script <script>hi</script> and <a onclick=\"foo\" href=\"#\">linkage</a> <scrip\nt>alert!"
  body_html: "<p>rico&#8217;s evil script <script>hi</script> and <a onclick=\"foo\" href=\"#\">linkage</a></p><\nscrip\nt>alert!"
  created_at: <%= (3.days + 55.minutes).ago.utc.to_s(:db) %>
  updated_at: <%= (3.days + 55.minutes).ago.utc.to_s(:db) %>
  published_at: <%= 3.days.ago.utc.to_s(:db) %>
  type: Comment
  author: rico
  author_ip: 1dfasd
  approved: true
  filter: textile_filter
future:
  id: 5
  site_id: 1
  title: Article in the Future
  body: future
  permalink: article-in-the-future
  excerpt: This is my own little blogging tool
  excerpt_html: This is my own little blogging tool
  created_at: <%= (4.days - 15.minutes).ago.utc.to_s(:db) %>
  updated_at: <%= (4.days - 15.minutes).ago.utc.to_s(:db) %>
  published_at: <%= (4.days - 15.minutes).from_now.to_s(:db) %>
  comment_age: 30
  user_id: 1
  type: Article
about:
  id: 6
  site_id: 1
  title: About this page
  permalink: about-this-page
  excerpt: This is my own about page
  excerpt_html: This is my own about page
  body: This is my own about page
  body_html: This is my own about page
  created_at: <%= (4.days - 13.minutes).ago.utc.to_s(:db) %>
  updated_at: <%= (4.days - 13.minutes).ago.utc.to_s(:db) %>
  published_at: <%= (4.days - 13.minutes).ago.utc.to_s(:db) %>
  comment_age: 2
  user_id: 1
  type: Article
site_map:
  id: 7
  site_id: 1
  title: The Site Map
  permalink: the-site-map
  excerpt: This is my own site map
  excerpt_html: This is my own site map
  body: This is my own site map
  body_html: This is my own site map
  created_at: <%= (4.days - 5.minutes).ago.utc.to_s(:db) %>
  updated_at: <%= (4.days - 5.minutes).ago.utc.to_s(:db) %>
  published_at: <%= (4.days - 5.minutes).ago.utc.to_s(:db) %>
  comment_age: -1
  user_id: 4
  type: Article
cupcake_welcome:
  id: 8
  site_id: 2
  title: Welcome to Cupcake
  permalink: welcome-to-cupcake
  excerpt: welcome summary
  excerpt_html: welcome summary
  body: welcome description
  body_html: welcome description
  created_at: <%= 5.days.ago.utc.to_s(:db) %>
  updated_at: <%= 5.days.ago.utc.to_s(:db) %>
  published_at: <%= 3.days.ago.utc.to_s(:db) %>
  comment_age: 30
  user_id: 1
  comments_count: 1
  type: Article
cupcake_welcome_comment:
  id: 9
  site_id: 2
  article_id: 8
  title: Welcome to Cupcake
  permalink: welcome-to-cupcake
  body: This blogging tool tastes like fudge.
  body_html: This blogging tool tastes like fudge.
  created_at: <%= (3.days + 55.minutes).ago.utc.to_s(:db) %>
  updated_at: <%= (3.days + 55.minutes).ago.utc.to_s(:db) %>
  published_at: <%= 3.days.ago.utc.to_s(:db) %>
  type: Comment
  author: rico
  approved: true
unwelcome_comment:
  id: 10
  site_id: 1
  article_id: 1
  title: Welcome to Mephisto
  permalink: welcome-to-mephisto
  body: This blogging tool sucks.
  body_html: This blogging tool sucks.
  created_at: <%= (2.days + 55.minutes).ago.utc.to_s(:db) %>
  updated_at: <%= (2.days + 55.minutes).ago.utc.to_s(:db) %>
  published_at: <%= 3.days.ago.utc.to_s(:db) %>
  type: Comment
  author: rico
  author_ip: '127.0.0.1'
draft:
  id: 11
  site_id: 1
  title: Test Draft
  permalink: test-draft
  body: This is a test draft
  body_html: This is a test draft
  created_at: <%= 1.day.ago.utc.to_s(:db) %>
  updated_at: <%= 1.day.ago.utc.to_s(:db) %>
  comment_age: 30
  user_id: 1
  type: Article
at_beginning_of_month:
  id: 12
  site_id: 1
  title: At beginning of the month
  permalink: at-beginning-of-the-month
  body: Lalala
  body_html: Lalala
  created_at: <%= date = Time.now.utc.beginning_of_month.advance(:months => -2).to_s(:db) %>
  updated_at: <%= date %>
  published_at: <%= date %>
  comment_age: 30
  user_id: 1
  type: Article
at_middle_of_month:
  id: 13
  site_id: 1
  title: At middle of the month
  permalink: at-middle-of-the-month
  body: Lalala
  body_html: Lalala
  created_at: <%= date = Time.now.utc.beginning_of_month.advance(:months => -1, :days => -15).to_s(:db) %>
  updated_at: <%= date %>
  published_at: <%= date %>
  comment_age: 30
  user_id: 1
  type: Article
at_end_of_month:
  id: 14
  site_id: 1
  title: At end of the month
  permalink: at-end-of-the-month
  body: Lalala
  body_html: Lalala
  created_at: <%= date = (Time.now.utc.beginning_of_month.advance(:months => -1) -1).to_s(:db) %>
  updated_at: <%= date %>
  published_at: <%= date %>
  comment_age: 30
  user_id: 1
  type: Article
at_beginning_of_next_month:
  id: 15
  site_id: 1
  title: At beginning of next month
  permalink: at-beginning-of-next-month
  body: Lalala
  body_html: Lalala
  created_at: <%= date = Time.now.utc.beginning_of_month.advance(:months => -1, :minutes => 2).to_s(:db) %>
  updated_at: <%= date %>
  published_at: <%= date %>
  comment_age: 30
  user_id: 1
  type: Article
article_1_only_in_page_section:
  id: 16
  site_id: 1
  title: Article 1
  permalink: article-1
  body: Lalala
  body_html: Lalala
  created_at: <%= date = Time.now.utc.beginning_of_month.advance(:months => -1, :minutes => 1).to_s(:db) %>
  updated_at: <%= date %>
  published_at: <%= date %>
  comment_age: 30
  user_id: 1
  type: Article
article_2_only_in_page_section:
  id: 17
  site_id: 1
  title: Article 2
  permalink: article-2
  body: Lalala
  body_html: Lalala
  created_at: <%= date = Time.now.utc.beginning_of_month.advance(:months => -1).to_s(:db) %>
  updated_at: <%= date %>
  published_at: <%= date %>
  comment_age: 30
  user_id: 1
  type: Article