aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/engine
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2018-09-10 16:29:43 -0400
committerRafael Mendonça França <rafaelmfranca@gmail.com>2018-09-10 16:31:32 -0400
commit3e81490717a314437f9123d86fa3e9dc55558e95 (patch)
tree8b4215ca452715ea96180c862a644fe5c62956e5 /railties/test/engine
parent6babd5c32bb62757acc092df4d11f6308080ea81 (diff)
downloadrails-3e81490717a314437f9123d86fa3e9dc55558e95.tar.gz
rails-3e81490717a314437f9123d86fa3e9dc55558e95.tar.bz2
rails-3e81490717a314437f9123d86fa3e9dc55558e95.zip
Remove all references to slave in the codebase
Diffstat (limited to 'railties/test/engine')
-rw-r--r--railties/test/engine/commands_test.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/railties/test/engine/commands_test.rb b/railties/test/engine/commands_test.rb
index aeb64d445b..ff6cdf2e97 100644
--- a/railties/test/engine/commands_test.rb
+++ b/railties/test/engine/commands_test.rb
@@ -33,9 +33,9 @@ class Rails::Engine::CommandsTest < ActiveSupport::TestCase
def test_console_command_work_inside_engine
skip "PTY unavailable" unless available_pty?
- master, slave = PTY.open
- spawn_command("console", slave)
- assert_output(">", master)
+ primary, replica = PTY.open
+ spawn_command("console", replica)
+ assert_output(">", primary)
ensure
master.puts "quit"
end
@@ -43,9 +43,9 @@ class Rails::Engine::CommandsTest < ActiveSupport::TestCase
def test_dbconsole_command_work_inside_engine
skip "PTY unavailable" unless available_pty?
- master, slave = PTY.open
- spawn_command("dbconsole", slave)
- assert_output("sqlite>", master)
+ primary, replica = PTY.open
+ spawn_command("dbconsole", replica)
+ assert_output("sqlite>", primary)
ensure
master.puts ".exit"
end
@@ -53,9 +53,9 @@ class Rails::Engine::CommandsTest < ActiveSupport::TestCase
def test_server_command_work_inside_engine
skip "PTY unavailable" unless available_pty?
- master, slave = PTY.open
- pid = spawn_command("server", slave)
- assert_output("Listening on", master)
+ primary, replica = PTY.open
+ pid = spawn_command("server", replica)
+ assert_output("Listening on", primary)
ensure
kill(pid)
end