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

- old
+ new

@@ -1,9 +1,14 @@ require 'spec_helper' include Serverspec::Helper::Solaris +describe 'Serverspec commands of Solaris 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 "svcs -l httpd 2> /dev/null | grep 'enabled true'" } 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 -Gn root | grep -- wheel" }