mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +00:00
fix test
This commit is contained in:
parent
21c3732ad3
commit
cced11f6c4
1 changed files with 5 additions and 6 deletions
|
@ -39,11 +39,10 @@ class TestConfig < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_01_password
|
||||
data = { password: { alpha: false,
|
||||
numeric: false,
|
||||
special: true,
|
||||
length: 32,
|
||||
}
|
||||
data = { pwd_alpha: false,
|
||||
pwd_numeric: false,
|
||||
pwd_special: true,
|
||||
pwd_length: 32,
|
||||
}
|
||||
|
||||
@config = MPW::Config.new
|
||||
|
@ -57,7 +56,7 @@ class TestConfig < Test::Unit::TestCase
|
|||
@config.setup(data)
|
||||
@config.load_config
|
||||
|
||||
assert_equal(@config.password[:length], 32)
|
||||
assert_equal(@config.password[:length], data[:pwd_length])
|
||||
assert(!@config.password[:alpha])
|
||||
assert(!@config.password[:numeric])
|
||||
assert(@config.password[:special])
|
||||
|
|
Loading…
Add table
Reference in a new issue