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
@@ -1,24 +1,10 @@
require 'spec_helper'

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

describe package('apache2'), :if => os[:family] == 'ubuntu' 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
describe service('nginx') do
it { should be_enabled }
it { should be_running }
end
Expand Down

0 comments on commit 2784cf6

Please sign in to comment.