Skip to content

Commit

Permalink
Make sure files we add to the package actually show up in the resulti…
Browse files Browse the repository at this point in the history
…ng output
  • Loading branch information
jordansissel committed Oct 30, 2021
1 parent 4820028 commit 60de482
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/fpm/package/freebsd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
Dir.mkdir(subject.staging_path("/usr"))
Dir.mkdir(subject.staging_path("/usr/bin"))
File.write(subject.staging_path("/usr/bin/example"), "testing")
File.write(subject.staging_path("/usr/bin/hello"), "world")
subject.output(package)
end

Expand All @@ -37,6 +38,11 @@
insist { path }.start_with?("/")
end
end

it "should contain expected files" do
insist { files }.include?("/usr/bin/example")
insist { files }.include?("/usr/bin/hello")
end
end

context "+MANIFEST" do
Expand Down

0 comments on commit 60de482

Please sign in to comment.