diff options
Diffstat (limited to 'spec/dbshell')
| -rw-r--r-- | spec/dbshell/client/mysql_spec.rb | 24 | 
1 files changed, 24 insertions, 0 deletions
| diff --git a/spec/dbshell/client/mysql_spec.rb b/spec/dbshell/client/mysql_spec.rb new file mode 100644 index 0000000..c98203e --- /dev/null +++ b/spec/dbshell/client/mysql_spec.rb @@ -0,0 +1,24 @@ +require 'minitest/autorun' +require 'dbshell/client/mysql' + +describe DBShell::Client::MySQL do +  describe ".build_command" do +    it "builds basic arguments" do +      DBShell::Client::MySQL.build_command({ +        'adapter' => 'mysql2', +        'host' => 'mailmarehost', +        'port' => 6027, +        'username' => 'derpyhooves', +        'password' => 'somepassword', +        'database' => 'dbname' +      }).must_equal([ +        'mysql', +        '--user=derpyhooves', +        '--password=somepassword', +        '--host=mailmarehost', +        '--port=6027', +        'dbname' +      ]) +    end +  end +end | 
