File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spec/unit/provider/package Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,13 +110,13 @@ def expect_pkgadd_with_env_and_name(source, &block)
110110 it "should recognize a newer version" do
111111 allow ( provider ) . to receive ( :properties ) . and_return ( { :ensure => '1.6.8' } )
112112 pkginfo_query = 'tcsh-1.6.10'
113- allow ( provider ) . to receive ( :pkginfo ) . with ( '-Q' , ' tcsh-- ') . and_return ( pkginfo_query )
113+ allow ( provider ) . to receive ( :pkginfo ) . with ( 'tcsh' ) . and_return ( pkginfo_query )
114114 expect ( provider . latest ) . to eq ( '1.6.10' )
115115 end
116116
117117 it "should recognize a package that is already the newest" do
118118 pkginfo_query = 'tcsh-6.18.01p0 (installed)'
119- allow ( provider ) . to receive ( :pkginfo ) . with ( '-Q' , ' tcsh-- ') . and_return ( pkginfo_query )
119+ allow ( provider ) . to receive ( :pkginfo ) . with ( 'tcsh' ) . and_return ( pkginfo_query )
120120 expect ( provider . latest ) . to eq ( '6.18.01p0' )
121121 end
122122 end
@@ -131,7 +131,7 @@ def expect_pkgadd_with_env_and_name(source, &block)
131131 it "should return the full unversioned package name when updating without a flavor" do
132132 provider . resource [ :name ] = 'puppet'
133133 provider . resource [ :ensure ] = 'latest'
134- expect ( provider . get_full_name ) . to eq ( 'puppet' )
134+ expect ( provider . get_full_name ) . to eq ( 'puppet-- ' )
135135 end
136136
137137 it "should use the ensure parameter if it is numeric" do
You can’t perform that action at this time.
0 commit comments