diff options
| author | Teddy Wing | 2017-04-29 23:26:59 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2017-04-29 23:26:59 +0200 | 
| commit | ad34e0127eae4965f4e48c132e06b3dfba474d18 (patch) | |
| tree | 11306864897ba007e2f94607ee35c24dcf6e3254 /spec | |
| parent | d976bb250e81c48f95eee50130e17c92a3e20a32 (diff) | |
| download | dbshell-rails-ad34e0127eae4965f4e48c132e06b3dfba474d18.tar.bz2 | |
DBShell::Client::Database: Add support for the 'postgis' adapter
PostGIS is, for our purposes, no different from Postgres. Both should
launch `psql`.
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/dbshell/client/database_spec.rb | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/spec/dbshell/client/database_spec.rb b/spec/dbshell/client/database_spec.rb index 0670334..68ba675 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 PostGIS" do +      DBShell::Client::Database.handler({ +        'adapter' => 'postgis' +      }).must_equal(DBShell::Client::Postgres) +    end +      it "handles MySQL" do        DBShell::Client::Database.handler({          'adapter' => 'mysql2' | 
