spec/unit/packagers/pkgsrc_spec.rb in omnibus-6.1.7 vs spec/unit/packagers/pkgsrc_spec.rb in omnibus-6.1.9
- old
+ new
@@ -68,10 +68,10 @@
describe "#write_packlist" do
it "it writes the list of files" do
expect(subject).to receive(:shellout!)
.with "cd #{project.install_dir} && find . -type l -or -type f | sort >> #{staging_dir}/packlist"
subject.write_packlist
- expect(File.read("#{staging_dir}/packlist")).to match(/@pkgdir \/opt\/project/)
+ expect(File.read("#{staging_dir}/packlist")).to match(%r{@pkgdir /opt/project})
end
end
end
end