summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-11-02 18:29:01 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2023-11-02 18:29:01 +0100
commit166034e674396af49f1977ef5853b4f3d3b6e202 (patch)
tree4a4df2c7e76dbce24e1c825ebfbff14e56fc1a0c
parent6b60dab5bf2c3b195b70596727e4023693b85cb7 (diff)
downloadcolonial-twilight-166034e674396af49f1977ef5853b4f3d3b6e202.zip
colonial-twilight-166034e674396af49f1977ef5853b4f3d3b6e202.tar.gz
FLNBotRules : dbg -> remove useless YES
-rw-r--r--lib/colonial_twilight/fln_bot_rules.rb2
-rw-r--r--spec/fln_bot_rules_spec.rb2
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