aboutsummaryrefslogtreecommitdiffstats
path: root/spec/dbshell/client/postgres_spec.rb
diff options
context:
space:
mode:
authorTeddy Wing2017-04-29 23:32:17 +0200
committerTeddy Wing2017-04-29 23:32:17 +0200
commit3c522fc313f76dfbb7d1e87703965780245a432c (patch)
tree80ccf26fa8601f551787651240c26711febb7e54 /spec/dbshell/client/postgres_spec.rb
parentad34e0127eae4965f4e48c132e06b3dfba474d18 (diff)
downloaddbshell-rails-3c522fc313f76dfbb7d1e87703965780245a432c.tar.bz2
DBShell::Client::Postgres: Convert port to string
Turns out the port actually did need to be a string, contrary to what I had assumed in e89275bc787ae17bc698ac8cdb8cdaf5ebeb7852. I ended up with this error when passing a specific port in a real test: $ bake dbshell rake aborted! TypeError: no implicit conversion of Fixnum into String .../lib/dbshell/client/postgres.rb:8:in `exec' .../lib/dbshell/client/postgres.rb:8:in `runshell' .../lib/dbshell/client/database.rb:24:in `runshell' .../lib/dbshell/rails/tasks/dbshell.rake:6:in `block in <top (required)>' .../versions/2.3.3/bin/bundle:22:in `load' .../versions/2.3.3/bin/bundle:22:in `<main>' Tasks: TOP => dbshell
Diffstat (limited to 'spec/dbshell/client/postgres_spec.rb')
-rw-r--r--spec/dbshell/client/postgres_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/dbshell/client/postgres_spec.rb b/spec/dbshell/client/postgres_spec.rb
index c9cb2c7..85223a7 100644
--- a/spec/dbshell/client/postgres_spec.rb
+++ b/spec/dbshell/client/postgres_spec.rb
@@ -18,7 +18,7 @@ describe DBShell::Client::Postgres do
'-h',
'mailmarehost',
'-p',
- 6027,
+ '6027',
'dbname'
])
end