From addda815907bde31e86f953d91b5f9994c73010d Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 23 May 2013 06:40:01 +0200 Subject: [PATCH] Improved unit test. --- 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 e72fcbba2..e14d47807 100644 --- a/test/unit/twitter_test.rb +++ b/test/unit/twitter_test.rb @@ -149,6 +149,7 @@ class TwitterTest < ActiveSupport::TestCase 'armin_theo', text, ) + assert( dm, "dm with ##{hash} created" ) sleep 10 # fetch check system account @@ -157,6 +158,7 @@ class TwitterTest < ActiveSupport::TestCase # check if ticket and article has been created article = Ticket::Article.where( :message_id => dm.id ).last assert( article, "inbound article created" ) +# ticket = Ticket.find( article.ticket.id ) ticket = article.ticket assert( ticket, "ticket of inbound article exists" ) assert( ticket.articles, "ticket.articles exists" )