Small fixes to unit tests where user_id has become changeset_id.
[rails.git] / test / unit / message_test.rb
index 28c7605ffb979326e57589c5969e39908859a607..4de1a7b295557420a114e711a89b1b5a36791698 100644 (file)
@@ -20,9 +20,15 @@ class MessageTest < Test::Unit::TestCase
   
   def test_validating_msgs
     message = messages(:one)
-    assert_equal true, message.valid?
+    assert message.valid?
     massage = messages(:two)
-    assert_equal true, message.valid?
+    assert message.valid?
   end
   
+  def test_invalid_send_recipient
+    message = messages(:one)
+    message.sender = nil
+    message.recipient = nil
+    assert !message.valid?
+  end
 end