3 class DiaryCommentTest < ActiveSupport::TestCase
7 # Create the default language for diary entries
8 create(:language, :code => "en")
11 test "body must be present" do
12 comment = build(:diary_comment, :body => "")
13 assert_not comment.valid?
14 assert_not_nil comment.errors[:body], "no validation error for missing body"