Adding validations for the length of node tags, and the presence of the id (and version). More tests, including some boiler plate tests.
This commit is contained in:
parent
495bd7f1f0
commit
9a4ea6bfd0
10 changed files with 179 additions and 33 deletions
11
test/unit/diary_comment_test.rb
Normal file
11
test/unit/diary_comment_test.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class DiaryCommentTest < Test::Unit::TestCase
|
||||
fixtures :diary_comments
|
||||
|
||||
|
||||
def test_diary_comment_count
|
||||
assert_equal 1, DiaryComment.count
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue