1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-10-27 02:33:19 +00:00
This commit is contained in:
Adrien Waksberg 2017-02-26 21:45:42 +01:00
parent 21c3732ad3
commit cced11f6c4

View file

@ -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])