mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Fix Layout/LineLength errors
This commit is contained in:
parent
b30bcea288
commit
f0fc6182fb
@ -25,7 +25,11 @@ RSpec.describe "patching", type: :system do
|
||||
end
|
||||
end
|
||||
|
||||
define_method(:formula) do |name = "formula_name", path: Formulary.core_path(name), spec: :stable, alias_path: nil, &block|
|
||||
define_method(:formula) do |name = "formula_name",
|
||||
path: Formulary.core_path(name),
|
||||
spec: :stable,
|
||||
alias_path: nil,
|
||||
&block|
|
||||
formula_subclass.class_eval(&block)
|
||||
formula_subclass.new(name, path, spec, alias_path:)
|
||||
end
|
||||
|
@ -131,7 +131,11 @@ RSpec.shared_context "integration test" do # rubocop:disable RSpec/ContextWordin
|
||||
end
|
||||
end
|
||||
|
||||
define_method(:setup_test_formula) do |name, content = nil, tap: CoreTap.instance, bottle_block: nil, tab_attributes: nil|
|
||||
define_method(:setup_test_formula) do |name,
|
||||
content = nil,
|
||||
tap: CoreTap.instance,
|
||||
bottle_block: nil,
|
||||
tab_attributes: nil|
|
||||
case name
|
||||
when /^testball/
|
||||
# Use a different tarball for testball2 to avoid lock errors when writing concurrency tests
|
||||
|
Loading…
x
Reference in New Issue
Block a user