This repository has been archived by the owner on Nov 17, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test for whether PostGIS was actually installed
- Loading branch information
1 parent
e8307c1
commit 4203064
Showing
4 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
test/integration/default/serverspec/postgis_extension_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'spec_helper' | ||
|
||
describe "PostGIS Extension" do | ||
get_postgis_version =<<-CMD | ||
su - postgres -c 'psql --user postgres -d template_postgis -c "select PostGIS_Full_Version();"' | ||
CMD | ||
|
||
describe command(get_postgis_version) do | ||
it { should return_exit_status 0 } | ||
end | ||
|
||
describe command(get_postgis_version) do | ||
it { should return_stdout(/POSTGIS=/) } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require 'serverspec' | ||
require 'pathname' | ||
require 'net/ssh' | ||
|
||
include SpecInfra::Helper::Exec | ||
|
||
RSpec.configure do |c| | ||
end | ||
|