remove wallets path
This commit is contained in:
parent
7597a8daf2
commit
2328e4eff7
7 changed files with 4 additions and 101 deletions
|
@ -160,22 +160,6 @@ class TestConfig < Test::Unit::TestCase
|
|||
|
||||
output = %x(mpw wallet)
|
||||
assert_match('| default', output)
|
||||
|
||||
output = %x(mpw wallet --path '.')
|
||||
assert_match(I18n.t('form.set_wallet_path.valid'), output)
|
||||
|
||||
output = %x(mpw config)
|
||||
assert_match(%r{path_wallet_default.+\| #{Dir.pwd}/default.mpw}, output)
|
||||
assert(File.exist?("#{Dir.pwd}/default.mpw"))
|
||||
|
||||
output = %x(mpw wallet)
|
||||
assert_match('default', output)
|
||||
|
||||
output = %x(mpw wallet --default-path)
|
||||
assert_match(I18n.t('form.set_wallet_path.valid'), output)
|
||||
|
||||
output = %x(mpw config)
|
||||
assert_no_match(/path_wallet_default/, output)
|
||||
end
|
||||
|
||||
def test_08_setup_config
|
||||
|
|
|
@ -61,19 +61,4 @@ 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
Add a link
Reference in a new issue