Skip to content

Commit

Permalink
Add nginx service spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mknkisk committed May 8, 2016
1 parent f5fee86 commit 2784cf6
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions spec/localhost.ubuntu/sample_spec.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,24 +1,10 @@
require 'spec_helper' require 'spec_helper'


describe package('httpd'), :if => os[:family] == 'redhat' do describe package('nginx') do
it { should be_installed } it { should be_installed }
end end


describe package('apache2'), :if => os[:family] == 'ubuntu' do describe service('nginx') do
it { should be_installed }
end

describe service('httpd'), :if => os[:family] == 'redhat' do
it { should be_enabled }
it { should be_running }
end

describe service('apache2'), :if => os[:family] == 'ubuntu' do
it { should be_enabled }
it { should be_running }
end

describe service('org.apache.httpd'), :if => os[:family] == 'darwin' do
it { should be_enabled } it { should be_enabled }
it { should be_running } it { should be_running }
end end
Expand Down

0 comments on commit 2784cf6

Please sign in to comment.