summaryrefslogtreecommitdiff
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-10-17 23:31:28 +0200
committerhukl <contact@smyck.org>2009-10-17 23:31:28 +0200
commitc7c4b007621fd28c88b65db5fd3296ef730097d9 (patch)
tree6ccce73ace9fdecab09a2ae3b7eb6fd1b799b96b /test/test_helper.rb
parent07fc4a257f0f4c12a9dd9acd2e9926afb0d48c45 (diff)
added some more validations to ensure data integrity and applied necessary changes on tests
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 21d4604..023ed96 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -38,4 +38,18 @@ class ActiveSupport::TestCase
38 fixtures :all 38 fixtures :all
39 39
40 # Add more helper methods to be used by all tests here... 40 # Add more helper methods to be used by all tests here...
41
42 def create_node_with_published_page
43 node = create_node_with_draft
44 draft = node.draft
45 draft.title = "Test"
46 draft.abstract = "Test"
47 draft.body = "Test"
48 node.publish_draft!
49 node
50 end
51
52 def create_node_with_draft
53 Node.root.children.create :slug => "test_node"
54 end
41end 55end