Skip to content

Commit 0ea9748

Browse files
committed
Fix prompt colorization test's setup
1 parent ee88f41 commit 0ea9748

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

railties/test/commands/console_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ def test_console_defaults_to_IRB
5959
end
6060

6161
def test_prompt_env_colorization
62-
irb_console = Rails::Console::IRBConsole.new(app)
62+
app = build_app(nil)
63+
irb_console = Rails::Console.new(app).console
6364
red = "\e[31m"
6465
green = "\e[32m"
6566
clear = "\e[0m"

0 commit comments

Comments
 (0)