Skip to content

Commit

Permalink
Fix failing spec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoneycutt committed Jul 5, 2017
1 parent adf6b37 commit 0c963e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/defines/pip_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/' }}
Expand Down

0 comments on commit 0c963e3

Please sign in to comment.