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)
82
82
83
83
context "#install" do
84
84
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--' ] )
88
87
provider . install
89
88
end
90
89
end
@@ -93,12 +92,12 @@ def expect_pkgadd_with_env_and_name(source, &block)
93
92
before do
94
93
provider . resource [ :source ] = '/tmp/tcsh.tgz'
95
94
provider . resource [ :name ] = 'tcsh'
96
- allow ( provider ) . to receive ( :pkginfo ) . with ( 'tcsh' )
95
+ allow ( provider ) . to receive ( :pkginfo ) . with ( 'tcsh-- ' )
97
96
end
98
97
99
98
it "should return the ensure value if the package is already installed" do
100
99
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-- ' )
102
101
expect ( provider . latest ) . to eq ( '4.2.45' )
103
102
end
104
103
You can’t perform that action at this time.
0 commit comments