diff options
author | Teddy Wing | 2017-04-29 18:33:47 +0200 |
---|---|---|
committer | Teddy Wing | 2017-04-29 19:15:46 +0200 |
commit | 6d35a516a7e4cda93f79455b2b9b60d13ddd80fa (patch) | |
tree | 394b32551e99fc1eacc18c7eaa9fc09c6b516ca6 | |
parent | 99f91105277b6d86a406a7a8aa92613f415f277c (diff) | |
download | dbshell-rails-6d35a516a7e4cda93f79455b2b9b60d13ddd80fa.tar.bz2 |
postgres_client_spec.rb: Add missing `it` block
Forgot to add an `it` block for my test, which resulted in it failing
with a non-obvious error message.
-rw-r--r-- | spec/dbshell/postgres_client_spec.rb | 36 |
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 |