Skip to content

Commit 459f999

Browse files
committed
Fix unit tests
1 parent 4d3d818 commit 459f999

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

lib/omnibus/packagers/deb.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ def write_control_file
214214
section: section,
215215
conflicts: project.conflicts,
216216
replaces: project.replaces,
217+
provides: project.provides,
217218
dependencies: project.runtime_dependencies,
218219
}
219220
)

spec/unit/packagers/deb_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module Omnibus
1010
project.build_version("1.2.3")
1111
project.build_iteration("2")
1212
project.maintainer("Chef Software")
13+
project.provide("chefy-package")
1314
project.license(project_license) if project_license
1415
end
1516
end
@@ -136,6 +137,7 @@ module Omnibus
136137
expect(contents).to include("Vendor: Omnibus <[email protected]>")
137138
expect(contents).to include("Architecture: amd64")
138139
expect(contents).to include("Maintainer: Chef Software")
140+
expect(contents).to include("Provides: chefy-package")
139141
expect(contents).to include("Installed-Size: 0")
140142
expect(contents).to include("Section: misc")
141143
expect(contents).to include("Priority: extra")

spec/unit/packagers/rpm_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module Omnibus
1111
project.build_iteration("2")
1212
project.maintainer("Chef Software")
1313
project.replace("old-project")
14+
project.provide("chefy-package")
1415
project.license(project_license) if project_license
1516
end
1617
end

spec/unit/project_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module Omnibus
2828
it_behaves_like "a cleanroom setter", :homepage, %{homepage 'https://getchef.com'}
2929
it_behaves_like "a cleanroom setter", :description, %{description 'Installs the thing'}
3030
it_behaves_like "a cleanroom setter", :replace, %{replace 'old-chef'}
31+
it_behaves_like "a cleanroom setter", :provide, %{provide 'chefy-package'}
3132
it_behaves_like "a cleanroom setter", :conflict, %{conflict 'puppet'}
3233
it_behaves_like "a cleanroom setter", :build_version, %{build_version '1.2.3'}
3334
it_behaves_like "a cleanroom setter", :build_iteration, %{build_iteration 1}

0 commit comments

Comments
 (0)