From cced11f6c4247b7779ae5b3126f6fbc823ab82e7 Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Sun, 26 Feb 2017 21:45:42 +0100 Subject: [PATCH] fix test --- test/test_config.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/test_config.rb b/test/test_config.rb index 4d94fcd..143b3ed 100644 --- a/test/test_config.rb +++ b/test/test_config.rb @@ -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])