From 6d35a516a7e4cda93f79455b2b9b60d13ddd80fa Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 29 Apr 2017 18:33:47 +0200 Subject: 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. --- spec/dbshell/postgres_client_spec.rb | 36 +++++++++++++++++++----------------- 1 file 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 -- cgit v1.2.3