This repository was archived by the owner on Oct 11, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55class php::fpm::package (
66 $package_name,
77 $package_ensure,
8- $package_provider
8+ $package_provider = undef
99) {
1010
1111 package { $package_name:
Original file line number Diff line number Diff line change 1+ require 'spec_helper'
2+
3+ describe 'php::fpm::package' , :type => :class do
4+ context 'with package_name => php5-fpm' do
5+ let ( :params ) { { :package_name => 'php5-fpm' , :package_ensure => 'installed' } }
6+ it { should contain_package ( 'php5-fpm' ) }
7+ end
8+ end
Original file line number Diff line number Diff line change 1+ require 'spec_helper'
2+
3+ describe 'php::fpm' , :type => :class do
4+ it { should contain_class ( 'php::fpm::package' ) }
5+ it { should contain_class ( 'php::fpm::service' ) . that_requires ( 'Package[php5-fpm]' ) }
6+ it { should contain_php__fpm__config ( 'php-fpm' ) . that_requires ( 'Package[php5-fpm]' ) }
7+ it { should contain_file ( '/etc/php5/fpm/php-fpm.conf' ) . that_requires ( 'Package[php5-fpm]' ) }
8+ end
Original file line number Diff line number Diff line change 11require 'spec_helper'
22
33describe 'php' , :type => :class do
4- it { should contain_class 'php' }
5- it { should include_class 'php::params' }
4+ it { should compile . with_all_deps }
5+ it { should contain_class ( 'php' ) }
6+ it { should contain_class ( 'php::params' ) }
67end
You can’t perform that action at this time.
0 commit comments