Skip to content

Commit

Permalink
test cache: split regex into multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
whoiswillma committed Jun 22, 2020
1 parent 7c24ff1 commit bd2f5c3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Library/Homebrew/test/cmd/--cache_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@

it "prints the cache files for a given Formula and Cask" do
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 be_a_success
end
Expand Down

0 comments on commit bd2f5c3

Please sign in to comment.