Fix prompt colorization test's setup

This commit is contained in:
Stan Lo 2024-01-24 11:07:32 +00:00
parent ee88f4133f
commit 0ea9748ba6
No known key found for this signature in database
GPG Key ID: 76D63D5E36F02747

@ -59,7 +59,8 @@ def test_console_defaults_to_IRB
end end
def test_prompt_env_colorization def test_prompt_env_colorization
irb_console = Rails::Console::IRBConsole.new(app) app = build_app(nil)
irb_console = Rails::Console.new(app).console
red = "\e[31m" red = "\e[31m"
green = "\e[32m" green = "\e[32m"
clear = "\e[0m" clear = "\e[0m"