aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorTeddy Wing2017-04-29 22:58:11 +0200
committerTeddy Wing2017-04-29 22:58:11 +0200
commitfb9ff6eb8cbad57b3ca2bbd58dc098f208edd1e1 (patch)
tree3af3a4176ecc848d7f280c29fb90eaf64fee7eff /spec
parent56a002d2681431b34be36cf7247dc41a313601d9 (diff)
downloaddbshell-rails-fb9ff6eb8cbad57b3ca2bbd58dc098f208edd1e1.tar.bz2
Integrate MySQL support
* Create a `.runshell()` method in `DBShell::Client::MySQL` * Delegate to that class & method from `DBShell::Client::Database`
Diffstat (limited to 'spec')
-rw-r--r--spec/dbshell/client/database_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/dbshell/client/database_spec.rb b/spec/dbshell/client/database_spec.rb
index d553871..0670334 100644
--- a/spec/dbshell/client/database_spec.rb
+++ b/spec/dbshell/client/database_spec.rb
@@ -15,6 +15,12 @@ describe DBShell::Client::Database do
}).must_equal(DBShell::Client::Postgres)
end
+ it "handles MySQL" do
+ DBShell::Client::Database.handler({
+ 'adapter' => 'mysql2'
+ }).must_equal(DBShell::Client::MySQL)
+ end
+
it "raises an error if no suitable adapter is found" do
proc do
DBShell::Client::Database.handler({