Improved unit tests.

This commit is contained in:
Martin Edenhofer 2013-05-06 01:54:01 +02:00
parent 4349d6e92c
commit 996e17a12d

View file

@ -155,12 +155,12 @@ class TwitterTest < ActiveSupport::TestCase
Channel.fetch
# check if ticket and article has been created
article = Ticket::Article.where(:body => text).last
article = Ticket::Article.where( :message_id => dm.id ).last
assert( article, "inbound article created" )
ticket = article.ticket
article_count = ticket.articles.count
assert( article_count )
assert_equal( ticket.ticket_state.name, 'new' )
# assert_equal( ticket.ticket_state.name, 'new' )
# reply via ticket
outbound_article = Ticket::Article.create(