test cache: split regex into multiple lines
This commit is contained in:
parent
7c24ff19d5
commit
bd2f5c3b32
@ -23,7 +23,12 @@ describe "brew --cache", :integration_test do
|
|||||||
|
|
||||||
it "prints the cache files for a given Formula and Cask" do
|
it "prints the cache files for a given Formula and Cask" do
|
||||||
expect { brew "--cache", testball, cask_path("local-caffeine") }
|
expect { brew "--cache", testball, cask_path("local-caffeine") }
|
||||||
.to output(%r{#{HOMEBREW_CACHE}/downloads/[\da-f]{64}--testball-.*\ncask: #{HOMEBREW_CACHE}/downloads/[\da-f]{64}--caffeine\.zip}).to_stdout
|
.to output(
|
||||||
|
%r{
|
||||||
|
#{HOMEBREW_CACHE}/downloads/[\da-f]{64}--testball-.*\n
|
||||||
|
cask:\s#{HOMEBREW_CACHE}/downloads/[\da-f]{64}--caffeine\.zip
|
||||||
|
}x,
|
||||||
|
).to_stdout
|
||||||
.and not_to_output.to_stderr
|
.and not_to_output.to_stderr
|
||||||
.and be_a_success
|
.and be_a_success
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user