Fix Layout/LineLength errors

This commit is contained in:
Carlo Cabrera 2025-07-12 04:25:24 +08:00 committed by Carlo Cabrera
parent b30bcea288
commit f0fc6182fb
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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