test/unit/abstract_test.rb in hammer_cli-0.0.14 vs test/unit/abstract_test.rb in hammer_cli-0.0.15

- old
+ new

@@ -99,11 +99,11 @@ it "password should be hidden in logs" do test_command_class = Class.new(HammerCLI::AbstractCommand) test_command_class.option(['--password'], 'PASSWORD', 'Password') test_command = test_command_class.new("") test_command.run ['--password=pass'] - @log_output.readline.strip.must_equal "INFO HammerCLI::AbstractCommand : Called with options: {\"password\"=>\"***\"}" + @log_output.readline.strip.must_equal "INFO HammerCLI::AbstractCommand : Called with options: {\"option_password\"=>\"***\"}" end class TestLogCmd < HammerCLI::AbstractCommand def execute logger.error "Test" @@ -280,10 +280,10 @@ it "should inherit output definition" do class CmdOD1 < HammerCLI::AbstractCommand output do label 'Label' do - end + end end end class CmdOD2 < CmdOD1 end