opensupports/tests/ticket/comment.rb

23 lines
548 B
Ruby
Raw Normal View History

describe 'ticket/comment/' do
2016-08-04 06:37:23 +02:00
#it 'should fail if not logged' do
2016-08-04 06:37:23 +02:00
#end
2016-08-04 06:37:23 +02:00
describe 'on successful request' do
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-08-04 06:37:23 +02:00
# end
end
end