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 @@ -103,20 +103,20 @@ def expect_pkgadd_with_env_and_name(source, &block)
103
103
104
104
it "should recognize a new version" do
105
105
pkginfo_query = 'tcsh-6.18.01p1'
106
- allow ( provider ) . to receive ( :pkginfo ) . with ( 'tcsh' ) . and_return ( pkginfo_query )
106
+ allow ( provider ) . to receive ( :pkginfo ) . with ( '-Q' , ' tcsh-- ') . and_return ( pkginfo_query )
107
107
expect ( provider . latest ) . to eq ( '6.18.01p1' )
108
108
end
109
109
110
110
it "should recognize a newer version" do
111
111
allow ( provider ) . to receive ( :properties ) . and_return ( { :ensure => '1.6.8' } )
112
112
pkginfo_query = 'tcsh-1.6.10'
113
- allow ( provider ) . to receive ( :pkginfo ) . with ( 'tcsh' ) . and_return ( pkginfo_query )
113
+ allow ( provider ) . to receive ( :pkginfo ) . with ( '-Q' , ' tcsh-- ') . and_return ( pkginfo_query )
114
114
expect ( provider . latest ) . to eq ( '1.6.10' )
115
115
end
116
116
117
117
it "should recognize a package that is already the newest" do
118
118
pkginfo_query = 'tcsh-6.18.01p0 (installed)'
119
- allow ( provider ) . to receive ( :pkginfo ) . with ( 'tcsh' ) . and_return ( pkginfo_query )
119
+ allow ( provider ) . to receive ( :pkginfo ) . with ( '-Q' , ' tcsh-- ') . and_return ( pkginfo_query )
120
120
expect ( provider . latest ) . to eq ( '6.18.01p0' )
121
121
end
122
122
end
You can’t perform that action at this time.
0 commit comments