public
Description: Comatose is a micro CMS, implemented as a Rails plugin, that is designed to be easy to embed and extend.
Homepage: http://comatose.rubyforge.org
Clone URL: git://github.com/darthapo/comatose.git
Click here to lend your support to: comatose and make a donation at www.pledgie.com !
comatose / SPECS
100644 62 lines (56 sloc) 2.27 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
Comatose Admin Controller should:
 - show the index action
 - show the new action
 - successfully create pages
 - create a page with an empty body
 - not create a page with a missing title
 - not create a page associated to an invalid parent
 - contain all the correct options for filter_type
 - show the edit action
 - update pages with valid data
 - not update pages with invalid data
 - delete a page
 - reorder pages
 - set runtime mode
 
Comatose Controller should:
 - show pages based on path_info
 
Class Options should:
 - allow nil as a default
 - allow boolean defaults
 - allow string defaults
 - allow numeric defaults
 - allow symbolic defaults
 - allow array literals as defaults
 - allow hash literals as defaults
 
Comatose Page should:
 - create page
 - create a new version of an updated page
 - render content through textile and liquid processors
 - not allow creation of page when missing a title
 - have good fixtures for this to work out
 - generate slugs correctly
 - generate page paths correctly
 - update page paths when pages are moved
 - set an AR error with processor syntax error info
 - render body text accurately
 - render data from parameterized calls too
 - render data from a Drop
 
Processing Context should:
 - process liquid tags with no filters correctly
 - process erb tags correctly
 - support text translation and processing with ERB
 - support text translation and processing with Liquid
 - allow access to safe properties and methods when processing with ERB
 - prevent access to protected properties and methods when processing with ERB
 - allow access to safe properties and methods when processing with Liquid
 - prevent access to protected properties and methods when processing with Liquid
 - allow referenceing of defined ComatoseDrops
 - let ComatoseDrop errors bubble upward
 
Text Filters should:
 - not alter output when using filter :none
 - convert newlines into <br/>s when using :simple filter
 - support Textile, if it's available, using :textile or 'Textile' as a key
 - support Markdown, if it's available, using :markdown or 'Markdown' as a key
 - support RDoc, if it's available, using :rdoc or 'RDoc' as a key
 - support transformation of parameters via ERB
 - support transformation of parameters via Liquid