Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 193
- Log:
First stage commit of Typo 4.1, modified for the ROOL site.
Includes all local modifications but a final pass needs to be
made to delete any files left over from earlier Typo versions
that shouldn't be here anymore. See the 'tags' section of the
repository for a clean Typo 4.1 tree.Note that symlinks to shared files in the RISC OS Open theme
directory have been deliberately included this time around; I
decided that on balance it was better to leave them in as
placeholders, since unlike symlinks in app/views/shared, the
Typo theme structure is not a standard Rails concept.
- Author:
- rool
- Date:
- Wed Apr 04 18:51:02 +0100 2007
- Size:
- 1407 Bytes
1 | require File.dirname(__FILE__) + '/../spec_helper' |
2 | |
3 | context 'Given a published article' do |
4 | fixtures :blogs, :contents, :feedback, :users, :text_filters |
5 | |
6 | setup do |
7 | @article = contents(:article1) |
8 | end |
9 | |
10 | specify "An unchanged article does not invalidate the cache" do |
11 | @article.invalidates_cache?.should_be false |
12 | end |
13 | |
14 | specify 'changing the body smashes the cache' do |
15 | @article.body = "New Body" |
16 | @article.invalidates_cache?.should_be true |
17 | end |
18 | |
19 | specify 'withdrawing it smashes the cache' do |
20 | @article.withdraw! |
21 | @article.invalidates_cache?.should_be true |
22 | end |
23 | |
24 | specify 'destroying it smashes the cache' do |
25 | @article.destroy |
26 | @article.invalidates_cache?(true).should_be true |
27 | end |
28 | |
29 | specify 'withdrawing, then destroying it smashes the cache' do |
30 | @article.withdraw |
31 | @article.destroy |
32 | @article.invalidates_cache?.should_be true |
33 | end |
34 | end |
35 | |
36 | context "Given an unpublished article" do |
37 | fixtures :blogs, :contents, :feedback, :users, :text_filters |
38 | |
39 | setup { @article = contents(:article4) } |
40 | |
41 | specify "publishing smashes the cache" do |
42 | @article.publish! |
43 | @article.invalidates_cache?.should_be true |
44 | end |
45 | |
46 | specify "changing it keeps the cache" do |
47 | @article.body = 'New body' |
48 | @article.invalidates_cache?.should_be false |
49 | end |
50 | |
51 | specify "destroying it keeps the cache" do |
52 | @article.destroy |
53 | @article.invalidates_cache?.should_be false |
54 | end |
55 | end |