Skip to content

Commit

Permalink
Fix SQLite integration tests on CentOS
Browse files Browse the repository at this point in the history
  • Loading branch information
zuazo committed Sep 23, 2015
1 parent afeb353 commit 06bbda9
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions test/integration/sqlite/serverspec/sqliste_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,27 @@
require_relative 'spec_helper'
require 'json'

family = os[:family].downcase
docroot_dir =
if %w(centos redhat fedora scientific amazon).include?(family)
'/var/www/html'
elsif %w(suse opensuse).include?(family)
'/srv/www/htdocs'
elsif %w(arch).include?(family)
'/srv/http'
elsif %w(freebsd).include?(family)
'/usr/local/www/apache24/data'
else
'/var/www'
end

describe 'sqlite' do
describe file('/var/www/owncloud/data') do
describe file("#{docroot_dir}/owncloud/data") do
it { should be_directory }
it { should be_mode 750 }
end

describe file('/var/www/owncloud/data/owncloud.db') do
describe file("#{docroot_dir}/owncloud/data/owncloud.db") do
it { should be_file }
it { should be_mode 644 }
end
Expand Down

0 comments on commit 06bbda9

Please sign in to comment.