require 'minitest/autorun' require 'dbshell/client/postgres' describe DBShell::Client::Postgres do describe ".build_command" do it "builds basic arguments" do DBShell::Client::Postgres.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