Fix tests for latest puppet/rspec versions

This commit is contained in:
2016-01-09 00:22:43 +00:00
parent a7d702a245
commit f46648d4c0
2 changed files with 2 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ describe 'dokuwiki::config' do
:local_conf_template => 'dokuwiki/local.php.erb', :local_conf_template => 'dokuwiki/local.php.erb',
:protected_conf_template => 'dokuwiki/local.protected.php.erb', :protected_conf_template => 'dokuwiki/local.protected.php.erb',
:ldap_servers => ['ldap'], :ldap_servers => ['ldap'],
:data_dir => '/var/www/localhost/htdocs/data',
}} }}
it { should contain_file('/var/www/localhost/htdocs/dokuwiki/conf/local.php') } it { should contain_file('/var/www/localhost/htdocs/dokuwiki/conf/local.php') }

View File

@@ -7,7 +7,7 @@ describe 'dokuwiki' do
}} }}
it 'we fail' do it 'we fail' do
expect { subject }.to raise_error(/not supported on an Unsupported/) expect { should compile }.to raise_error(/not supported on an Unsupported/)
end end
end end