spec/gentoo/commands_spec.rb in serverspec-0.4.8 vs spec/gentoo/commands_spec.rb in serverspec-0.4.9
- old
+ new
@@ -1,9 +1,14 @@
require 'spec_helper'
include Serverspec::Helper::Gentoo
+describe 'Serverspec commands of Gentoo 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 "/sbin/rc-update show | grep -- \\^\\\\s\\*httpd\\\\s\\*\\|\\\\s\\*\\\\\\(boot\\\\\\|default\\\\\\)" }
end
@@ -152,14 +157,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" }