From fdfe3a0ed2dbd5efedd177d2f146c450f0abb0ee Mon Sep 17 00:00:00 2001 From: Guillermo Giuliana Date: Tue, 1 Oct 2019 12:50:25 -0300 Subject: [PATCH] Fix ruby tests --- tests/staff/get-all.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/staff/get-all.rb b/tests/staff/get-all.rb index 5ba054cb..dec7fdc5 100644 --- a/tests/staff/get-all.rb +++ b/tests/staff/get-all.rb @@ -14,10 +14,10 @@ describe'/staff/get-all' do (result['data'][0]['email']).should.equal('staff@opensupports.com') (result['data'][0]['profilePic']).should.equal('') (result['data'][0]['level']).should.equal('3') - (result['data'][0]['departments'][0]['id']).should.equal('1') - (result['data'][0]['departments'][0]['name']).should.equal('Help and Support') - (result['data'][0]['departments'][1]['id']).should.equal('2') - (result['data'][0]['departments'][1]['name']).should.equal('useless private deapartment') + (result['data'][0]['departments'][0]['id']).should.equal('2') + (result['data'][0]['departments'][0]['name']).should.equal('useless private deapartment') + (result['data'][0]['departments'][1]['id']).should.equal('1') + (result['data'][0]['departments'][1]['name']).should.equal('Help and Support') (result['data'][0]['departments'][2]['id']).should.equal('3') (result['data'][0]['departments'][2]['name']).should.equal('Suggestions') (result['data'][0]['assignedTickets']).should.equal(10)