From 91e539a053282584db18a1ab56bf43a9a629d46e Mon Sep 17 00:00:00 2001 From: Ivan Diaz Date: Fri, 6 Jan 2017 18:40:33 -0300 Subject: [PATCH] Ivan - Fix master type [skip ci] --- tests/ticket/change-department.rb | 2 +- tests/ticket/change-priority.rb | 6 +++--- tests/ticket/close.rb | 2 +- tests/ticket/comment.rb | 2 +- tests/ticket/re-open.rb | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/ticket/change-department.rb b/tests/ticket/change-department.rb index 112f6c3a..45a78ae9 100644 --- a/tests/ticket/change-department.rb +++ b/tests/ticket/change-department.rb @@ -21,6 +21,6 @@ describe '/ticket/change-department' do (ticket['department_id']).should.equal('2') lastLog = $database.getLastRow('log') - (lastLog['type']).should.equal('CHANGE_DEPARTMENT') + (lastLog['type']).should.equal('DEPARTMENT_CHANGED') end end diff --git a/tests/ticket/change-priority.rb b/tests/ticket/change-priority.rb index 50669cbc..8d42129c 100644 --- a/tests/ticket/change-priority.rb +++ b/tests/ticket/change-priority.rb @@ -21,7 +21,7 @@ describe '/ticket/change-priority' do (ticket['unread']).should.equal('1') lastLog = $database.getLastRow('log') - (lastLog['type']).should.equal('CHANGE_PRIORITY') + (lastLog['type']).should.equal('PRIORITY_CHANGED') end 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') lastLog = $database.getLastRow('log') - (lastLog['type']).should.equal('CHANGE_PRIORITY') + (lastLog['type']).should.equal('PRIORITY_CHANGED') end 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') lastLog = $database.getLastRow('log') - (lastLog['type']).should.equal('CHANGE_PRIORITY') + (lastLog['type']).should.equal('PRIORITY_CHANGED') end end diff --git a/tests/ticket/close.rb b/tests/ticket/close.rb index f2a2930f..6c7d219d 100644 --- a/tests/ticket/close.rb +++ b/tests/ticket/close.rb @@ -20,6 +20,6 @@ describe '/ticket/close' do (ticket['unread']).should.equal('1') lastLog = $database.getLastRow('log') - (lastLog['type']).should.equal('CLOSE_TICKET') + (lastLog['type']).should.equal('CLOSE') end end diff --git a/tests/ticket/comment.rb b/tests/ticket/comment.rb index f1929077..d6858ca4 100644 --- a/tests/ticket/comment.rb +++ b/tests/ticket/comment.rb @@ -75,7 +75,7 @@ describe '/ticket/comment/' do (ticket['unread_staff']).should.equal('1') lastLog = $database.getLastRow('log') - (lastLog['type']).should.equal('COMMENT_TICKET') + (lastLog['type']).should.equal('COMMENT') end it 'should fail if user is not the author nor owner' do diff --git a/tests/ticket/re-open.rb b/tests/ticket/re-open.rb index 25774a44..df3288d7 100644 --- a/tests/ticket/re-open.rb +++ b/tests/ticket/re-open.rb @@ -20,6 +20,6 @@ describe '/ticket/re-open' do (ticket['unread']).should.equal('1') lastLog = $database.getLastRow('log') - (lastLog['type']).should.equal('RE_OPEN_TICKET') + (lastLog['type']).should.equal('RE_OPEN') end end