Skip to content

Commit

Permalink
Merge pull request #859 from justinstoller/bug/master/1908-fixup-mod_php
Browse files Browse the repository at this point in the history
(FM-1908) fixup mod_php tests
  • Loading branch information
hunner committed Sep 23, 2014
2 parents 7755593 + 57f83d9 commit 5cb7f96
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions spec/acceptance/mod_php_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,42 +132,4 @@ class {'apache::mod::php':
end
end

context "provide source has priority over content" do
it 'succeeds in puppeting php' do
pp= <<-EOS
class {'apache':
mpm_module => 'prefork',
}
class {'apache::mod::php':
content => '# somecontent',
source => 'puppet:///modules/apache/spec',
}
EOS
apply_manifest(pp, :catch_failures => true)
end

describe file("#{mod_dir}/php5.conf") do
it { should contain "# This is a file only for spec testing" }
end
end

context "provide source has priority over template" do
it 'succeeds in puppeting php' do
pp= <<-EOS
class {'apache':
mpm_module => 'prefork',
}
class {'apache::mod::php':
template => 'apache/mod/php5.conf.erb',
source => 'puppet:///modules/apache/spec',
}
EOS
apply_manifest(pp, :catch_failures => true)
end

describe file("#{mod_dir}/php5.conf") do
it { should contain "# This is a file only for spec testing" }
end
end

end

0 comments on commit 5cb7f96

Please sign in to comment.