From 144b18c5db61c53028177680295f3fc9d4e8711d Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 18 Jul 2009 18:17:06 +0200 Subject: 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 --- test/fixtures/pages.yml | 64 +++++++++++++++++++++++++++---------------------- 1 file changed, 35 insertions(+), 29 deletions(-) (limited to 'test/fixtures') 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 @@ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html -one: - id: 1 - revision: 1 - node_id: 2 - -two: - id: 2 - revision: 1 - node_id: 4 - -draft1: - id: 100 - revision: 1 - node_id: 2 - -draft2: - id: 101 - revision: 1 - node_id: 3 - -draft3: - id: 102 - revision: 1 - node_id: 4 - -draft4: - id: 103 - revision: 1 - node_id: 5 \ No newline at end of file +# one: +# id: 1 +# revision: 1 +# node_id: 2 +# title: "first" +# +# two: +# id: 2 +# revision: 1 +# node_id: 4 +# title: "second" +# +# draft1: +# id: 100 +# revision: 1 +# node_id: 2 +# title: "third" +# +# draft2: +# id: 101 +# revision: 1 +# node_id: 3 +# title: "fourth" +# +# draft3: +# id: 102 +# revision: 1 +# node_id: 4 +# title: "fifth" +# +# draft4: +# id: 103 +# revision: 1 +# node_id: 5 +# title: "sixth" \ No newline at end of file -- cgit v1.3