Guillermo - path and tests staff/last-events [skip ci]

This commit is contained in:
AntonyAntonio 2017-01-03 19:02:08 -03:00
parent af4853ed51
commit 78e3a4383a
1 changed files with 16 additions and 0 deletions

View File

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