Merge pull request #16303 from Bo98/test-fixes
test: fix a couple failures on certain systems
This commit is contained in:
commit
cd6f3fe56d
@ -284,6 +284,7 @@ describe Caveats do
|
|||||||
let(:caveats) { described_class.new(f).caveats }
|
let(:caveats) { described_class.new(f).caveats }
|
||||||
|
|
||||||
it "adds the correct amount of new lines to the output" do
|
it "adds the correct amount of new lines to the output" do
|
||||||
|
expect(Utils::Service).to receive(:launchctl?).at_least(:once).and_return(true)
|
||||||
expect(caveats).to include("something else")
|
expect(caveats).to include("something else")
|
||||||
expect(caveats).to include("keg-only")
|
expect(caveats).to include("keg-only")
|
||||||
expect(caveats).to include("if you don't want/need a background service")
|
expect(caveats).to include("if you don't want/need a background service")
|
||||||
|
@ -65,7 +65,8 @@ describe UnpackStrategy do
|
|||||||
it "does not make other files writable" do
|
it "does not make other files writable" do
|
||||||
strategy.extract_nestedly(to: unpack_dir)
|
strategy.extract_nestedly(to: unpack_dir)
|
||||||
|
|
||||||
expect(unpack_dir/executable).not_to be_writable
|
# We don't check `writable?` here as that's always true as root.
|
||||||
|
expect((unpack_dir/executable).stat.mode & 0222).to be_zero
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user