2016-08-20 23:33:47 +02:00
|
|
|
describe '/system/get-settings' do
|
|
|
|
it 'should return correct values' do
|
|
|
|
result = request('/system/get-settings')
|
|
|
|
|
|
|
|
(result['status']).should.equal('success')
|
|
|
|
(result['data']['language']).should.equal('en')
|
2016-11-21 03:01:38 +01:00
|
|
|
(result['data']['departments'][0]['name']).should.equal('Tech Support')
|
|
|
|
(result['data']['departments'][1]['name']).should.equal('Suggestions')
|
|
|
|
(result['data']['departments'][2]['name']).should.equal('Sales and Subscriptions')
|
2016-08-20 23:33:47 +02:00
|
|
|
end
|
|
|
|
end
|