2014-08-07 13:19:19 +02:00
|
|
|
require 'lunit'
|
2014-06-13 02:41:03 +02:00
|
|
|
|
2014-08-07 13:19:19 +02:00
|
|
|
module('tests.eressea.settings', package.seeall, lunit.testcase )
|
2014-06-13 02:41:03 +02:00
|
|
|
|
|
|
|
function setup()
|
|
|
|
eressea.free_game()
|
|
|
|
end
|
|
|
|
|
|
|
|
function test_settings()
|
2014-08-07 13:19:19 +02:00
|
|
|
assert_equal(nil, eressea.settings.get('foo'))
|
|
|
|
eressea.settings.set('foo', 'bar')
|
|
|
|
assert_equal('bar', eressea.settings.get('foo'))
|
2014-06-13 02:41:03 +02:00
|
|
|
end
|