Ivan - Fix master type [skip ci]

This commit is contained in:
Ivan Diaz 2017-01-06 18:40:33 -03:00
parent e9854341f0
commit 91e539a053
5 changed files with 7 additions and 7 deletions

View File

@ -21,6 +21,6 @@ describe '/ticket/change-department' do
(ticket['department_id']).should.equal('2') (ticket['department_id']).should.equal('2')
lastLog = $database.getLastRow('log') lastLog = $database.getLastRow('log')
(lastLog['type']).should.equal('CHANGE_DEPARTMENT') (lastLog['type']).should.equal('DEPARTMENT_CHANGED')
end end
end end

View File

@ -21,7 +21,7 @@ describe '/ticket/change-priority' do
(ticket['unread']).should.equal('1') (ticket['unread']).should.equal('1')
lastLog = $database.getLastRow('log') lastLog = $database.getLastRow('log')
(lastLog['type']).should.equal('CHANGE_PRIORITY') (lastLog['type']).should.equal('PRIORITY_CHANGED')
end end
it 'should change priority to medium if everything is okey' do it 'should change priority to medium if everything is okey' do
@ -41,7 +41,7 @@ describe '/ticket/change-priority' do
(ticket['unread']).should.equal('1') (ticket['unread']).should.equal('1')
lastLog = $database.getLastRow('log') lastLog = $database.getLastRow('log')
(lastLog['type']).should.equal('CHANGE_PRIORITY') (lastLog['type']).should.equal('PRIORITY_CHANGED')
end end
it 'should change priority to low if everything is okey' do it 'should change priority to low if everything is okey' do
@ -61,7 +61,7 @@ describe '/ticket/change-priority' do
(ticket['unread']).should.equal('1') (ticket['unread']).should.equal('1')
lastLog = $database.getLastRow('log') lastLog = $database.getLastRow('log')
(lastLog['type']).should.equal('CHANGE_PRIORITY') (lastLog['type']).should.equal('PRIORITY_CHANGED')
end end
end end

View File

@ -20,6 +20,6 @@ describe '/ticket/close' do
(ticket['unread']).should.equal('1') (ticket['unread']).should.equal('1')
lastLog = $database.getLastRow('log') lastLog = $database.getLastRow('log')
(lastLog['type']).should.equal('CLOSE_TICKET') (lastLog['type']).should.equal('CLOSE')
end end
end end

View File

@ -75,7 +75,7 @@ describe '/ticket/comment/' do
(ticket['unread_staff']).should.equal('1') (ticket['unread_staff']).should.equal('1')
lastLog = $database.getLastRow('log') lastLog = $database.getLastRow('log')
(lastLog['type']).should.equal('COMMENT_TICKET') (lastLog['type']).should.equal('COMMENT')
end end
it 'should fail if user is not the author nor owner' do it 'should fail if user is not the author nor owner' do

View File

@ -20,6 +20,6 @@ describe '/ticket/re-open' do
(ticket['unread']).should.equal('1') (ticket['unread']).should.equal('1')
lastLog = $database.getLastRow('log') lastLog = $database.getLastRow('log')
(lastLog['type']).should.equal('RE_OPEN_TICKET') (lastLog['type']).should.equal('RE_OPEN')
end end
end end