opensupports/tests/system/get-settings.rb

11 lines
470 B
Ruby
Raw Normal View History

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')
(result['data']['departments'][0]).should.equal('Tech Support')
(result['data']['departments'][1]).should.equal('Suggestions')
(result['data']['departments'][2]).should.equal('Sales and Subscriptions')
end
end