From 46b019abd520870ab159b60c03c45675f64dd88a Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 29 Apr 2017 22:21:01 +0200 Subject: Rename database client classes Update our class names to reflect the new file structure introduced in b700c1bef89a67a64f1040fb6bb03c0320eefe91. Use the module DBShell module Client end end syntax intead of `DBShell::Client` so that we don't have to define the `Client` module in a separate file and require it. Otherwise we'd get an error: lib/dbshell/client/sqlite3.rb:1:in `': uninitialized constant DBShell::Client (NameError) --- spec/dbshell/client/postgres_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/dbshell/client/postgres_spec.rb') diff --git a/spec/dbshell/client/postgres_spec.rb b/spec/dbshell/client/postgres_spec.rb index c267ac0..c9cb2c7 100644 --- a/spec/dbshell/client/postgres_spec.rb +++ b/spec/dbshell/client/postgres_spec.rb @@ -1,10 +1,10 @@ require 'minitest/autorun' require 'dbshell/client/postgres' -describe DBShell::PostgresClient do +describe DBShell::Client::Postgres do describe ".build_command" do it "builds basic arguments" do - DBShell::PostgresClient.build_command({ + DBShell::Client::Postgres.build_command({ 'adapter' => 'postgresql', 'host' => 'mailmarehost', 'port' => 6027, -- cgit v1.2.3