22 lines
642 B
Ruby
22 lines
642 B
Ruby
describe '/system/init-settings' do
|
|
it 'should initialize correctly' do
|
|
result = request('/system/init-settings', {
|
|
'user-system-enabled' => true,
|
|
'registration' => true,
|
|
'language' => 'en'
|
|
})
|
|
|
|
lang = $database.getRow('setting', 'language', 'name')
|
|
|
|
(result['status']).should.equal('success')
|
|
(lang['value']).should.equal('en')
|
|
|
|
result = request('/system/init-admin', {
|
|
name: 'Emilia Clarke',
|
|
email: $staff[:email],
|
|
password: $staff[:password]
|
|
})
|
|
|
|
(result['status']).should.equal('success')
|
|
end
|
|
end |