aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-09-11 07:06:30 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-09-11 07:06:30 +0900
commit5b0b1ee8fda1cd086653992f812f96c62fb3c24b (patch)
tree58540179f00d378f510e2d7f2338dc3a0ba6035f /railties/test/application
parente7fc2afb21bb09db00a61783755eda4509db99f7 (diff)
downloadrails-5b0b1ee8fda1cd086653992f812f96c62fb3c24b.tar.gz
rails-5b0b1ee8fda1cd086653992f812f96c62fb3c24b.tar.bz2
rails-5b0b1ee8fda1cd086653992f812f96c62fb3c24b.zip
Use correct variable
Follow up of 3e81490717a314437f9123d86fa3e9dc55558e95.
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/dbconsole_test.rb8
1 files changed, 4 insertions, 4 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