Skip to content

Commit

Permalink
use regexp instead of fixed spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sawanoboly committed Jun 30, 2013
1 parent 6a51143 commit 732b33d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/solaris/commands_spec.rb
Expand Up @@ -54,12 +54,12 @@

describe 'check_installed' do
subject { commands.check_installed('httpd') }
it { should eq '/opt/local/bin/pkgin list 2> /dev/null | grep -qw ^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 '/opt/local/bin/pkgin list 2> /dev/null | grep -qw ^httpd-2.2' }
it { should eq 'pkg list -H httpd 2> /dev/null | grep -qw -- 2.2' }
end

describe 'check_file_contain_within' do
Expand Down

0 comments on commit 732b33d

Please sign in to comment.