diff options
| author | hukl <contact@smyck.org> | 2009-10-17 23:31:28 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-17 23:31:28 +0200 |
| commit | c7c4b007621fd28c88b65db5fd3296ef730097d9 (patch) | |
| tree | 6ccce73ace9fdecab09a2ae3b7eb6fd1b799b96b /test/unit/event_test.rb | |
| parent | 07fc4a257f0f4c12a9dd9acd2e9926afb0d48c45 (diff) | |
added some more validations to ensure data integrity and applied necessary changes on tests
Diffstat (limited to 'test/unit/event_test.rb')
| -rw-r--r-- | test/unit/event_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/unit/event_test.rb b/test/unit/event_test.rb index 78e082c..f310af8 100644 --- a/test/unit/event_test.rb +++ b/test/unit/event_test.rb | |||
| @@ -4,8 +4,7 @@ class EventTest < ActiveSupport::TestCase | |||
| 4 | 4 | ||
| 5 | def setup | 5 | def setup |
| 6 | Page.delete_all | 6 | Page.delete_all |
| 7 | @cal_node = Node.create :slug => "calendar" | 7 | @cal_node = Node.root.children.create! :slug => "calendar" |
| 8 | @cal_node.move_to_child_of Node.root | ||
| 9 | @draft = @cal_node.find_or_create_draft User.first | 8 | @draft = @cal_node.find_or_create_draft User.first |
| 10 | @draft.title = "99C3" | 9 | @draft.title = "99C3" |
| 11 | @draft.abstract = "The 99th Chaos Comunication Congress" | 10 | @draft.abstract = "The 99th Chaos Comunication Congress" |
