summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-07-18 18:17:06 +0200
committerhukl <contact@smyck.org>2009-07-18 18:17:06 +0200
commit144b18c5db61c53028177680295f3fc9d4e8711d (patch)
treedfed99c6a59487af6279ce15c02dbc366328602d /test/fixtures
parentaab86f2d2a0258a1347f39c1ee4081cd06bac56b (diff)
Test::Unit Fixtures can't handle globalize2's translated attributes which is why its impossible to set translated attributes via fixtures. Therefor I removed the page fixtures entirely and and made sure that a title is set to "Untitled" when it is not specified otherwise.
If a new node is created, its initial draft has "Untitled" set as title automatically. Modified tests accordingly
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/pages.yml64
1 files changed, 35 insertions, 29 deletions
diff --git a/test/fixtures/pages.yml b/test/fixtures/pages.yml
index 271c494..686f173 100644
--- a/test/fixtures/pages.yml
+++ b/test/fixtures/pages.yml
@@ -1,31 +1,37 @@
1# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html 1# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2 2
3one: 3# one:
4 id: 1 4# id: 1
5 revision: 1 5# revision: 1
6 node_id: 2 6# node_id: 2
7 7# title: "first"
8two: 8#
9 id: 2 9# two:
10 revision: 1 10# id: 2
11 node_id: 4 11# revision: 1
12 12# node_id: 4
13draft1: 13# title: "second"
14 id: 100 14#
15 revision: 1 15# draft1:
16 node_id: 2 16# id: 100
17 17# revision: 1
18draft2: 18# node_id: 2
19 id: 101 19# title: "third"
20 revision: 1 20#
21 node_id: 3 21# draft2:
22 22# id: 101
23draft3: 23# revision: 1
24 id: 102 24# node_id: 3
25 revision: 1 25# title: "fourth"
26 node_id: 4 26#
27 27# draft3:
28draft4: 28# id: 102
29 id: 103 29# revision: 1
30 revision: 1 30# node_id: 4
31 node_id: 5 \ No newline at end of file 31# title: "fifth"
32#
33# draft4:
34# id: 103
35# revision: 1
36# node_id: 5
37# title: "sixth" \ No newline at end of file