spec/solaris/commands_spec.rb in serverspec-0.6.9 vs spec/solaris/commands_spec.rb in serverspec-0.6.10
- old
+ new
@@ -55,9 +55,14 @@
describe 'check_installed' do
subject { commands.check_installed('httpd') }
it { should eq 'pkg list -H httpd 2> /dev/null' }
end
+describe 'check_installed' do
+ subject { commands.check_installed('httpd', '2.2') }
+ it { should eq 'pkg list -H httpd 2> /dev/null | grep -qw -- 2.2' }
+end
+
describe 'check_file_contain_within' do
context 'contain a pattern in the file' do
subject { commands.check_file_contain_within('Gemfile', 'rspec') }
it { should eq "sed -n 1,\\$p Gemfile | grep -q -- rspec /dev/stdin" }
end