Skip to content

Commit cd350d9

Browse files
committed
fix more specs
1 parent f2db2c6 commit cd350d9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

spec/unit/provider/package/openbsd_spec.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)