1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-02-20 01:50:04 +00:00

add test for wallet_paths

This commit is contained in:
Adrien Waksberg 2017-04-08 17:27:56 +02:00
parent 25baa260e3
commit 18ba8967d9

View file

@ -61,4 +61,19 @@ class TestConfig < Test::Unit::TestCase
assert(!@config.password[:numeric])
assert(@config.password[:special])
end
def test_02_wallet_paths
new_path = '/tmp/mpw-test'
@config = MPW::Config.new
@config.load_config
assert(!@config.wallet_paths['default'])
@config.set_wallet_path(new_path, 'default')
assert_equal(@config.wallet_paths['default'], new_path)
@config.set_wallet_path('default', 'default')
assert(!@config.wallet_paths['default'])
end
end