1 require File.dirname(__FILE__) + '/../test_helper'
3 class MessageTest < Test::Unit::TestCase
4 fixtures :messages, :users
6 def test_check_empty_message_fails
9 assert message.errors.invalid?(:title)
10 assert message.errors.invalid?(:body)
11 assert message.errors.invalid?(:sent_on)
12 assert true, message.message_read