Guillermo - staff-get-new-tickets[skip ci]

This commit is contained in:
AntonyAntonio 2016-10-18 00:35:16 -03:00
parent d9124eb21a
commit 2e1b7d78f2
2 changed files with 16 additions and 0 deletions

View File

@ -30,5 +30,6 @@ require './staff/assign-ticket.rb'
require './staff/un-assign-ticket.rb'
require './staff/get-tickets.rb'
require './ticket/change-priority.rb'
require './staff/get-new-tickets.rb'

View File

@ -0,0 +1,15 @@
describe '/staff/get-new-tickets' do
request('/user/logout')
Scripts.login($staff[:email], $staff[:password], true)
it 'should get news tickets' do
result = request('/staff/get-new-tickets', {
csrf_userid: $csrf_userid,
csrf_token: $csrf_token
})
(result['status']).should.equal('success')
(result['data'].size).should.equal(7)
end
end