test/unit/message_test.rb in has_messages-0.3.0 vs test/unit/message_test.rb in has_messages-0.3.1

- old
+ new

@@ -276,10 +276,14 @@ end def test_should_be_hidden assert @message.hidden? end + + def test_should_not_be_visible + assert !@message.visible? + end end class MessageUnhiddenTest < Test::Unit::TestCase def setup @message = create_message @@ -291,9 +295,13 @@ assert_nil @message.hidden_at end def test_should_not_be_hidden assert !@message.hidden? + end + + def test_should_be_visible + assert @message.visible? end end class MessageForwardedTest < Test::Unit::TestCase def setup