aboutsummaryrefslogtreecommitdiffstats
path: root/spec/dbshell/postgres_client_spec.rb
diff options
context:
space:
mode:
authorTeddy Wing2017-04-29 21:55:48 +0200
committerTeddy Wing2017-04-29 21:55:48 +0200
commitb700c1bef89a67a64f1040fb6bb03c0320eefe91 (patch)
treec7173b62b8a7d6f33c41544e14139c8b5f4a6a5a /spec/dbshell/postgres_client_spec.rb
parentcf14e894685c695c7ecbaa2c119e2ea414afc00a (diff)
downloaddbshell-rails-b700c1bef89a67a64f1040fb6bb03c0320eefe91.tar.bz2
Rename database client files to put them in a `Client` module
Will be modifying the class names in the next commit. Here we change the file names & locations of the database client files. The format changes thusly: <adapter>_client.rb -> client/<adapter>.rb This organisation feels cleaner to me. Wasn't liking the previous structure.
Diffstat (limited to 'spec/dbshell/postgres_client_spec.rb')
-rw-r--r--spec/dbshell/postgres_client_spec.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/dbshell/postgres_client_spec.rb b/spec/dbshell/postgres_client_spec.rb
deleted file mode 100644
index 2f767f1..0000000
--- a/spec/dbshell/postgres_client_spec.rb
+++ /dev/null
@@ -1,26 +0,0 @@
-require 'minitest/autorun'
-require 'dbshell/postgres_client'
-
-describe DBShell::PostgresClient do
- describe ".build_command" do
- 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