spec/debian/commands_spec.rb in serverspec-0.4.8 vs spec/debian/commands_spec.rb in serverspec-0.4.9

- old
+ new

@@ -1,9 +1,14 @@ require 'spec_helper' include Serverspec::Helper::Debian +describe 'Serverspec commands of Debian family' do + it_behaves_like 'support command check_installed_by_gem', 'jekyll' + it_behaves_like 'support command check_installed_by_gem', 'jekyll', '1.0.2' +end + describe 'check_enabled' do subject { commands.check_enabled('httpd') } it { should eq 'ls /etc/rc3.d/ | grep -- httpd' } end @@ -154,14 +159,9 @@ end describe 'check_link' do subject { commands.check_link('/etc/system-release', '/etc/redhat-release') } it { should eq 'stat -c %N /etc/system-release | grep -- /etc/redhat-release' } -end - -describe 'check_installed_by_gem' do - subject { commands.check_installed_by_gem('jekyll') } - it { should eq 'gem list --local | grep -- \\^jekyll\\ ' } end describe 'check_belonging_group' do subject { commands.check_belonging_group('root', 'wheel') } it { should eq "id root | awk '{print $3}' | grep -- wheel" }