diff --git a/lib/ronin/core/cli/logging.rb b/lib/ronin/core/cli/logging.rb index 505c0cf..26f90f0 100644 --- a/lib/ronin/core/cli/logging.rb +++ b/lib/ronin/core/cli/logging.rb @@ -44,7 +44,7 @@ def log_info(message) # The message to print. # def log_warn(message) - puts("#{colors.bold(colors.bright_yellow('***'))} #{colors.bold(colors.white(message))}") + puts("#{colors.bold(colors.bright_yellow('/!\\'))} #{colors.bold(colors.white(message))}") end # diff --git a/spec/cli/logging_spec.rb b/spec/cli/logging_spec.rb index aebd489..685ede0 100644 --- a/spec/cli/logging_spec.rb +++ b/spec/cli/logging_spec.rb @@ -53,20 +53,20 @@ class TestCommand < Ronin::Core::CLI::Command context "when stdout is a TTY" do before { allow(stdout).to receive(:tty?).and_return(true) } - it "must print '*** message' in bright-yellow and bold-white to stdout" do + it "must print '/!\\ message' in bright-yellow and bold-white to stdout" do subject.log_warn(message) expect(stdout.string).to eq( - "#{bold}#{bright_yellow}***#{reset_color}#{reset_intensity} #{bold}#{white}#{message}#{reset_color}#{reset_intensity}#{$/}" + "#{bold}#{bright_yellow}/!\\#{reset_color}#{reset_intensity} #{bold}#{white}#{message}#{reset_color}#{reset_intensity}#{$/}" ) end end context "when stdout is not a TTY" do - it "must print '*** message' to stdout" do + it "must print '/!\\ message' to stdout" do subject.log_warn(message) - expect(stdout.string).to eq("*** #{message}#{$/}") + expect(stdout.string).to eq("/!\\ #{message}#{$/}") end end end