Skip to content

Commit ca88207

Browse files
committed
Fix existing bug in spec tests
1 parent 880d2b3 commit ca88207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/defines/pip_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
context "adds proxy to search command if set to latest" do
4949
let (:params) {{ :proxy => "http://my.proxy:3128", :ensure => 'latest' }}
5050
it { is_expected.to contain_exec("pip_install_rpyc").with_command("pip wheel --help > /dev/null 2>&1 && { pip wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; { pip --log /tmp/pip.log install --upgrade $wheel_support_flag --proxy=http://my.proxy:3128 rpyc || pip --log /tmp/pip.log install --upgrade --proxy=http://my.proxy:3128 rpyc ;}") }
51-
it { is_expected.to contain_exec("pip_install_rpyc").with_unless('pip search --proxy=http://my.proxy:3128 rpyc | grep -i INSTALLED | grep -i latest') }
51+
it { is_expected.to contain_exec("pip_install_rpyc").with_unless('pip search --proxy=http://my.proxy:3128 rpyc | grep -i INSTALLED.*latest') }
5252
end
5353
end
5454

0 commit comments

Comments
 (0)