Improved unit tests.
This commit is contained in:
parent
27d7172543
commit
ef8e1aca2a
1 changed files with 2 additions and 0 deletions
|
@ -158,6 +158,8 @@ class TwitterTest < ActiveSupport::TestCase
|
||||||
article = Ticket::Article.where( :message_id => dm.id ).last
|
article = Ticket::Article.where( :message_id => dm.id ).last
|
||||||
assert( article, "inbound article created" )
|
assert( article, "inbound article created" )
|
||||||
ticket = article.ticket
|
ticket = article.ticket
|
||||||
|
assert( ticket, "ticket of inbound article exists" )
|
||||||
|
assert( ticket.articles, "ticket.articles exists" )
|
||||||
article_count = ticket.articles.count
|
article_count = ticket.articles.count
|
||||||
assert( article_count )
|
assert( article_count )
|
||||||
# assert_equal( ticket.ticket_state.name, 'new' )
|
# assert_equal( ticket.ticket_state.name, 'new' )
|
||||||
|
|
Loading…
Reference in a new issue