2016-07-06 01:40:30 +02:00
|
|
|
describe 'ticket/comment/' do
|
2016-08-04 06:37:23 +02:00
|
|
|
#it 'should fail if not logged' do
|
2016-07-06 01:40:30 +02:00
|
|
|
|
2016-08-04 06:37:23 +02:00
|
|
|
#end
|
2016-07-06 01:40:30 +02:00
|
|
|
|
2016-08-04 06:37:23 +02:00
|
|
|
describe 'on successful request' do
|
2016-07-06 01:40:30 +02:00
|
|
|
|
2016-08-04 06:37:23 +02:00
|
|
|
it 'should add comment to current ticket' do
|
|
|
|
result = request('/ticket/comment', {
|
|
|
|
content: 'some commment content',
|
|
|
|
ticketId: 1,
|
|
|
|
csrf_userid: $csrf_userid,
|
|
|
|
csrf_token: $csrf_token
|
|
|
|
})
|
|
|
|
|
|
|
|
(result['status']).should.equal('success')
|
|
|
|
end
|
|
|
|
|
|
|
|
# it 'should link the comment to author' do
|
2016-07-06 01:40:30 +02:00
|
|
|
|
2016-08-04 06:37:23 +02:00
|
|
|
# end
|
2016-07-06 01:40:30 +02:00
|
|
|
end
|
|
|
|
end
|