mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-21 10:20:05 +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
|
end
|
||||||
|
|
||||||
def test_01_password
|
def test_01_password
|
||||||
data = { password: { alpha: false,
|
data = { pwd_alpha: false,
|
||||||
numeric: false,
|
pwd_numeric: false,
|
||||||
special: true,
|
pwd_special: true,
|
||||||
length: 32,
|
pwd_length: 32,
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@config = MPW::Config.new
|
@config = MPW::Config.new
|
||||||
|
@ -57,7 +56,7 @@ class TestConfig < Test::Unit::TestCase
|
||||||
@config.setup(data)
|
@config.setup(data)
|
||||||
@config.load_config
|
@config.load_config
|
||||||
|
|
||||||
assert_equal(@config.password[:length], 32)
|
assert_equal(@config.password[:length], data[:pwd_length])
|
||||||
assert(!@config.password[:alpha])
|
assert(!@config.password[:alpha])
|
||||||
assert(!@config.password[:numeric])
|
assert(!@config.password[:numeric])
|
||||||
assert(@config.password[:special])
|
assert(@config.password[:special])
|
||||||
|
|
Loading…
Add table
Reference in a new issue