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:
parent
25baa260e3
commit
18ba8967d9
1 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue