add commenteed tests
This commit is contained in:
parent
fdfe3a0ed2
commit
875a45451a
|
@ -55,19 +55,19 @@ require './system/edit-department.rb'
|
|||
require './system/delete-department.rb'
|
||||
require './staff/last-events.rb'
|
||||
# require './system/mail-templates.rb'
|
||||
# require './system/disable-registration.rb'
|
||||
# require './system/enable-registration.rb'
|
||||
require './system/disable-registration.rb'
|
||||
require './system/enable-registration.rb'
|
||||
require './system/add-api-key.rb'
|
||||
require './system/delete-api-key.rb'
|
||||
require './system/get-api-keys.rb'
|
||||
require './system/file-upload-download.rb'
|
||||
# require './system/csv-import.rb'
|
||||
require './system/csv-import.rb'
|
||||
require './ticket/create-tag.rb'
|
||||
require './ticket/edit-tag.rb'
|
||||
require './ticket/get-tags.rb'
|
||||
require './ticket/delete-tag.rb'
|
||||
require './ticket/add-tag.rb'
|
||||
require './ticket/delete-tag.rb'
|
||||
require './ticket/edit-comment.rb'
|
||||
# require './system/disable-user-system.rb'
|
||||
require './ticket/edit-comment.rb'
|
||||
require './system/disable-user-system.rb'
|
||||
# require './system/get-stats.rb'
|
||||
|
|
|
@ -19,7 +19,7 @@ describe'system/disable-user-system' do
|
|||
|
||||
numberOftickets= $database.query("SELECT * FROM ticket WHERE author_id IS NULL AND author_email IS NOT NULL AND author_name IS NOT NULL")
|
||||
|
||||
(numberOftickets.num_rows).should.equal(41)
|
||||
(numberOftickets.num_rows).should.equal(51)
|
||||
|
||||
request('/user/logout')
|
||||
|
||||
|
@ -127,7 +127,7 @@ describe'system/disable-user-system' do
|
|||
|
||||
numberOftickets= $database.query("SELECT * FROM ticket WHERE author_email IS NULL AND author_name IS NULL AND author_id IS NOT NULL" )
|
||||
|
||||
(numberOftickets.num_rows).should.equal(42)
|
||||
(numberOftickets.num_rows).should.equal(52)
|
||||
|
||||
end
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ describe '/ticket/edit-comment' do
|
|||
})
|
||||
|
||||
ticket = $database.getRow('ticket', 'ticket made by an user', 'title')
|
||||
puts result['message']
|
||||
|
||||
(result['status']).should.equal('success')
|
||||
(ticket['content']).should.equal('content edited by the user')
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue