Skip to content

Commit 26046da

Browse files
committed
fix
1 parent cb3b5c1 commit 26046da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/unit/provider/package/openbsd_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,20 +103,20 @@ def expect_pkgadd_with_env_and_name(source, &block)
103103

104104
it "should recognize a new version" do
105105
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)
107107
expect(provider.latest).to eq('6.18.01p1')
108108
end
109109

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('tcsh').and_return(pkginfo_query)
113+
allow(provider).to receive(:pkginfo).with('-Q', '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('tcsh').and_return(pkginfo_query)
119+
allow(provider).to receive(:pkginfo).with('-Q', 'tcsh--').and_return(pkginfo_query)
120120
expect(provider.latest).to eq('6.18.01p0')
121121
end
122122
end

0 commit comments

Comments
 (0)