Improved unit test.
This commit is contained in:
parent
ef8e1aca2a
commit
addda81590
1 changed files with 2 additions and 0 deletions
|
@ -149,6 +149,7 @@ class TwitterTest < ActiveSupport::TestCase
|
||||||
'armin_theo',
|
'armin_theo',
|
||||||
text,
|
text,
|
||||||
)
|
)
|
||||||
|
assert( dm, "dm with ##{hash} created" )
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
# fetch check system account
|
# fetch check system account
|
||||||
|
@ -157,6 +158,7 @@ class TwitterTest < ActiveSupport::TestCase
|
||||||
# check if ticket and article has been created
|
# check if ticket and article has been created
|
||||||
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 = Ticket.find( article.ticket.id )
|
||||||
ticket = article.ticket
|
ticket = article.ticket
|
||||||
assert( ticket, "ticket of inbound article exists" )
|
assert( ticket, "ticket of inbound article exists" )
|
||||||
assert( ticket.articles, "ticket.articles exists" )
|
assert( ticket.articles, "ticket.articles exists" )
|
||||||
|
|
Loading…
Reference in a new issue