Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Commit

Permalink
Update: add a test for config_dir and suffix attributes
Browse files Browse the repository at this point in the history
Related: DEVOPS-124
  • Loading branch information
till committed Apr 18, 2016
1 parent 240083c commit 77e224a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions php/spec/fixtures/recipes/php-config.rb
Expand Up @@ -2,6 +2,8 @@
config node['config-spec']['config']
prefix_dir node['config-spec']['prefix_dir']
extension_path node['config-spec']['extension_path']
config_dir node['config-spec']['config_dir']
suffix node['config-spec']['ini_suffix']
load_extension node['config-spec']['load_extension']
zend_extension node['config-spec']['zend_extension']
end
11 changes: 11 additions & 0 deletions php/spec/provider-config_spec.rb
Expand Up @@ -110,4 +110,15 @@
.with_content(fixture)
end
end

describe 'another path' do
before do
node.set['config-spec']['config_dir'] = 'etc/php/5.6/conf.d'
node.set['config-spec']['ini_suffix'] = ''
end

it 'creates a .ini file' do
expect(chef_run).to render_file('/prefix/dir/etc/php/5.6/conf.d/modulename.ini')
end
end
end

0 comments on commit 77e224a

Please sign in to comment.