File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
spec/unit/provider/package Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,8 @@ def expect_pkgadd_with_env_and_name(source, &block)
8282
8383 context "#install" do
8484 it 'should use install_options as Array' do
85- provider . resource [ :source ] = '/tma1/'
86- provider . resource [ :install_options ] = [ '-r' , '-z' ]
87- expect ( provider ) . to receive ( :pkgadd ) . with ( [ '-r' , '-z' , 'bash' ] )
85+ provider . resource [ :install_options ] = [ '-z' ]
86+ expect ( provider ) . to receive ( :pkgadd ) . with ( [ '-r' , '-z' , 'bash--' ] )
8887 provider . install
8988 end
9089 end
@@ -93,12 +92,12 @@ def expect_pkgadd_with_env_and_name(source, &block)
9392 before do
9493 provider . resource [ :source ] = '/tmp/tcsh.tgz'
9594 provider . resource [ :name ] = 'tcsh'
96- allow ( provider ) . to receive ( :pkginfo ) . with ( 'tcsh' )
95+ allow ( provider ) . to receive ( :pkginfo ) . with ( 'tcsh-- ' )
9796 end
9897
9998 it "should return the ensure value if the package is already installed" do
10099 allow ( provider ) . to receive ( :properties ) . and_return ( { :ensure => '4.2.45' } )
101- allow ( provider ) . to receive ( :pkginfo ) . with ( '-Q' , 'tcsh' )
100+ allow ( provider ) . to receive ( :pkginfo ) . with ( '-Q' , 'tcsh-- ' )
102101 expect ( provider . latest ) . to eq ( '4.2.45' )
103102 end
104103
You can’t perform that action at this time.
0 commit comments