From 166034e674396af49f1977ef5853b4f3d3b6e202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 2 Nov 2023 18:29:01 +0100 Subject: FLNBotRules : dbg -> remove useless YES --- lib/colonial_twilight/fln_bot_rules.rb | 2 +- spec/fln_bot_rules_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/colonial_twilight/fln_bot_rules.rb b/lib/colonial_twilight/fln_bot_rules.rb index 4fc6347..f5e02d9 100644 --- a/lib/colonial_twilight/fln_bot_rules.rb +++ b/lib/colonial_twilight/fln_bot_rules.rb @@ -7,7 +7,7 @@ module ColonialTwilight return if @debug.zero? case @debug - when 1 then puts " #{msg} : YES" if ret + when 1 then puts " #{msg}" if ret else puts " #{msg} : #{ret ? 'YES' : 'NO'}" end end diff --git a/spec/fln_bot_rules_spec.rb b/spec/fln_bot_rules_spec.rb index 0004d7a..78148c8 100644 --- a/spec/fln_bot_rules_spec.rb +++ b/spec/fln_bot_rules_spec.rb @@ -47,7 +47,7 @@ describe ColonialTwilight::FLNBotRules do describe 'Debug' do it 'level 1' do @rules.debug = 1 - expect { @rules.dbg('msg', true) }.to output(" msg : YES\n").to_stdout + expect { @rules.dbg('msg', true) }.to output(" msg\n").to_stdout end it 'level 2' do -- cgit v1.1-2-g2b99