Controle de versoes para noticias e eventos

This commit is contained in:
2008-03-18 05:34:13 -03:00
parent 4c55ce7b45
commit 104902919b
15 changed files with 84 additions and 30 deletions

View File

@@ -19,8 +19,12 @@ require File.dirname(__FILE__) + '/../test_helper'
class MessageTest < Test::Unit::TestCase
fixtures :messages
# Replace this with your real tests.
def test_truth
assert true
end
def test_should_not_create_new_version
news = News.find(1)
news.destroy
news = News.find_with_deleted(1)
news.restore!
assert !news.dirty?
end
end