Permalink
Browse files

Add nginx service spec

  • Loading branch information...
mknkisk committed May 8, 2016
1 parent f5fee86 commit 2784cf6ddad12d961fa76d9f4d2b4f966585960a
Showing with 2 additions and 16 deletions.
  1. +2 −16 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

0 comments on commit 2784cf6

Please sign in to comment.