From 5b0b1ee8fda1cd086653992f812f96c62fb3c24b Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Tue, 11 Sep 2018 07:06:30 +0900 Subject: Use correct variable Follow up of 3e81490717a314437f9123d86fa3e9dc55558e95. --- railties/test/application/dbconsole_test.rb | 8 ++++---- railties/test/engine/commands_test.rb | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/railties/test/application/dbconsole_test.rb b/railties/test/application/dbconsole_test.rb index b9ebeee606..8c03fe4ac6 100644 --- a/railties/test/application/dbconsole_test.rb +++ b/railties/test/application/dbconsole_test.rb @@ -37,7 +37,7 @@ module ApplicationTests spawn_dbconsole(replica) assert_output("sqlite>", primary) ensure - master.puts ".exit" + primary.puts ".exit" end def test_respect_environment_option @@ -60,10 +60,10 @@ module ApplicationTests spawn_dbconsole(replica, "-e production") assert_output("sqlite>", primary) - master.puts "pragma database_list;" - assert_output("production.sqlite3", master) + primary.puts "pragma database_list;" + assert_output("production.sqlite3", primary) ensure - master.puts ".exit" + primary.puts ".exit" end private diff --git a/railties/test/engine/commands_test.rb b/railties/test/engine/commands_test.rb index ff6cdf2e97..48c93af80c 100644 --- a/railties/test/engine/commands_test.rb +++ b/railties/test/engine/commands_test.rb @@ -37,7 +37,7 @@ class Rails::Engine::CommandsTest < ActiveSupport::TestCase spawn_command("console", replica) assert_output(">", primary) ensure - master.puts "quit" + primary.puts "quit" end def test_dbconsole_command_work_inside_engine @@ -47,7 +47,7 @@ class Rails::Engine::CommandsTest < ActiveSupport::TestCase spawn_command("dbconsole", replica) assert_output("sqlite>", primary) ensure - master.puts ".exit" + primary.puts ".exit" end def test_server_command_work_inside_engine -- cgit v1.2.3