diff --git a/lib/null_logger.rb b/lib/null_logger.rb index ee8a206..3aa8bac 100644 --- a/lib/null_logger.rb +++ b/lib/null_logger.rb @@ -5,9 +5,6 @@ def info(message) def error(message) end - def debug(message) - end - def warn(message) end end diff --git a/lib/stdout_logger.rb b/lib/stdout_logger.rb index c64fb8b..5505930 100644 --- a/lib/stdout_logger.rb +++ b/lib/stdout_logger.rb @@ -13,11 +13,6 @@ def error(message) puts "\e[31m#{message}\e[0m" end - def debug(message) - # Blue text by using ANSI escape code - puts "\e[34m#{message}\e[0m" - end - def warn(message) # Yellow text by using ANSI escape code puts "\e[33m#{message}\e[0m" diff --git a/spec/lib/stdout_logger_spec.rb b/spec/lib/stdout_logger_spec.rb index 56b0469..cbb8db8 100644 --- a/spec/lib/stdout_logger_spec.rb +++ b/spec/lib/stdout_logger_spec.rb @@ -18,13 +18,6 @@ it { expect { error }.to output(/\e\[31m/).to_stdout } end - describe '#debug' do - subject(:debug) { logger.debug(message) } - - it { expect { debug }.to output(/#{message}/).to_stdout } - it { expect { debug }.to output(/\e\[34m/).to_stdout } - end - describe '#warn' do subject(:warn) { logger.warn(message) } diff --git a/spec/support/memory_logger.rb b/spec/support/memory_logger.rb index b3fe1d1..fb12eef 100644 --- a/spec/support/memory_logger.rb +++ b/spec/support/memory_logger.rb @@ -22,10 +22,6 @@ def warn(message) synchronize { @warn_messages << message } end - def debug(message) - synchronize { @debug_messages << message } - end - private def synchronize(&)