From e468a5f4c2c503b3218cd0d715e01a3c0ef4dda7 Mon Sep 17 00:00:00 2001 From: Garrett Honeycutt Date: Wed, 5 Jul 2017 10:09:19 -0400 Subject: [PATCH] Fix failing spec tests --- spec/defines/pip_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/defines/pip_spec.rb b/spec/defines/pip_spec.rb index e03fd7f1..56216c59 100644 --- a/spec/defines/pip_spec.rb +++ b/spec/defines/pip_spec.rb @@ -34,11 +34,11 @@ describe "proxy as" do context "defaults to empty" do let (:params) {{ }} - it { is_expected.to contain_exec("pip_install_rpyc").without_command(/--proxy/) } + it { should_not contain_exec("pip_install_rpyc").with_command(/--proxy/) } end context "does not add proxy to search command if set to latest and proxy is unset" do let (:params) {{ :ensure => 'latest' }} - it { is_expected.to contain_exec("pip_install_rpyc").without_command(/--proxy/) } + it { should_not contain_exec("pip_install_rpyc").with_command(/--proxy/) } it { is_expected.to contain_exec("pip_install_rpyc").without_unless(/--proxy/) } end context "adds proxy to install command if proxy set" do @@ -55,7 +55,7 @@ describe 'index as' do context 'defaults to empty' do let (:params) {{ }} - it { is_expected.to contain_exec('pip_install_rpyc').without_command(/--index-url/) } + it { should_not contain_exec('pip_install_rpyc').with_command(/--index-url/) } end context 'adds index to install command if index set' do let (:params) {{ :index => 'http://www.example.com/simple/' }}