From ef8e1aca2a32364b23b88524fc88d3750d8af830 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 23 May 2013 06:33:37 +0200 Subject: [PATCH] Improved unit tests. --- test/unit/twitter_test.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit/twitter_test.rb b/test/unit/twitter_test.rb index 8aa357e48..e72fcbba2 100644 --- a/test/unit/twitter_test.rb +++ b/test/unit/twitter_test.rb @@ -158,6 +158,8 @@ class TwitterTest < ActiveSupport::TestCase article = Ticket::Article.where( :message_id => dm.id ).last assert( article, "inbound article created" ) ticket = article.ticket + assert( ticket, "ticket of inbound article exists" ) + assert( ticket.articles, "ticket.articles exists" ) article_count = ticket.articles.count assert( article_count ) # assert_equal( ticket.ticket_state.name, 'new' )