end
def test_validating_msgs
- message = messages(:one)
+ message = messages(:unread_message)
assert message.valid?
- massage = messages(:two)
+ massage = messages(:read_message)
assert message.valid?
end
def test_invalid_send_recipient
- message = messages(:one)
+ message = messages(:unread_message)
message.sender = nil
message.recipient = nil
assert !message.valid?
private
def make_message(char, count)
- message = messages(:one)
+ message = messages(:unread_message)
message.title = char * count
return message
end