diff options
author | Teddy Wing | 2017-04-29 19:24:54 +0200 |
---|---|---|
committer | Teddy Wing | 2017-04-29 19:25:47 +0200 |
commit | 295407026c52216869a98dbed877a09edb801bc6 (patch) | |
tree | 4d6043ea294ec21cbbb8cd91ba30ceae2192558b /spec/dbshell/sqlite3_client_spec.rb | |
parent | bb26c6d3a4f96a8e87cf14bb72ef283c86e8891a (diff) | |
download | dbshell-rails-295407026c52216869a98dbed877a09edb801bc6.tar.bz2 |
Add `DBShell::Sqlite3Client`
Much simpler `.build_command` than the Postgres version. Only building
arguments now. Want to try out executing the subprocess command.
Inspired of course by:
https://github.com/django/django/blob/66150f7cf61bc09547fa98586790df596eff6d77/django/db/backends/sqlite3/client.py
Diffstat (limited to 'spec/dbshell/sqlite3_client_spec.rb')
-rw-r--r-- | spec/dbshell/sqlite3_client_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/dbshell/sqlite3_client_spec.rb b/spec/dbshell/sqlite3_client_spec.rb new file mode 100644 index 0000000..4922993 --- /dev/null +++ b/spec/dbshell/sqlite3_client_spec.rb @@ -0,0 +1,16 @@ +require 'minitest/autorun' +require 'dbshell/sqlite3_client' + +describe DBShell::Sqlite3Client do + describe ".build_command" do + it "builds basic arguments" do + DBShell::Sqlite3Client.build_command({ + 'adapter' => 'sqlite3', + 'database' => 'db/development.sqlite3' + }).must_equal([ + 'sqlite3', + 'db/development.sqlite3' + ]) + end + end +end |