Add test for multi-word service argument warpping
This commit is contained in:
parent
0c6266ee60
commit
87f5d98923
@ -124,7 +124,21 @@ describe Caveats do
|
|||||||
caveats = described_class.new(f).caveats
|
caveats = described_class.new(f).caveats
|
||||||
|
|
||||||
expect(f.service?).to eq(true)
|
expect(f.service?).to eq(true)
|
||||||
expect(caveats).to include("'#{f.bin}/php' 'test'")
|
expect(caveats).to include("#{f.bin}/php test")
|
||||||
|
expect(caveats).to include("background service")
|
||||||
|
end
|
||||||
|
|
||||||
|
it "wraps multi-word service parameters" do
|
||||||
|
f = formula do
|
||||||
|
url "foo-1.0"
|
||||||
|
service do
|
||||||
|
run [bin/"nginx", "-g", "daemon off;"]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
caveats = described_class.new(f).caveats
|
||||||
|
|
||||||
|
expect(f.service?).to eq(true)
|
||||||
|
expect(caveats).to include("#{f.bin}/nginx -g 'daemon off;'")
|
||||||
expect(caveats).to include("background service")
|
expect(caveats).to include("background service")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user