aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/dbshell/postgres_client_spec.rb36
1 files changed, 19 insertions, 17 deletions
diff --git a/spec/dbshell/postgres_client_spec.rb b/spec/dbshell/postgres_client_spec.rb
index a5cbcfd..0773778 100644
--- a/spec/dbshell/postgres_client_spec.rb
+++ b/spec/dbshell/postgres_client_spec.rb
@@ -3,22 +3,24 @@ require 'dbshell/postgres_client'
describe DBShell::PostgresClient do
describe ".build_command" do
- DBShell::PostgresClient.build_command({
- 'adapter' => 'postgresql',
- 'host' => 'mailmarehost',
- 'port' => 6027,
- 'username' => 'derpyhooves',
- 'password' => 'somepassword',
- 'database' => 'dbname'
- }).must_equal([
- 'psql',
- '-U',
- 'derpyhooves',
- '-h',
- 'mailmarehost',
- '-p',
- '6027',
- 'dbname'
- ])
+ it "builds basic arguments" do
+ DBShell::PostgresClient.build_command({
+ 'adapter' => 'postgresql',
+ 'host' => 'mailmarehost',
+ 'port' => 6027,
+ 'username' => 'derpyhooves',
+ 'password' => 'somepassword',
+ 'database' => 'dbname'
+ }).must_equal([
+ 'psql',
+ '-U',
+ 'derpyhooves',
+ '-h',
+ 'mailmarehost',
+ '-p',
+ '6027',
+ 'dbname'
+ ])
+ end
end
end