removed unused code paths

This commit is contained in:
Douglas Eichelberger 2024-03-30 14:44:47 -07:00
parent 330d209e03
commit cd2397ca2c

View File

@ -3,20 +3,17 @@
require "formula_text_auditor" require "formula_text_auditor"
RSpec.describe Homebrew::FormulaTextAuditor do RSpec.describe Homebrew::FormulaTextAuditor do
alias_matcher :have_data, :be_data
alias_matcher :have_end, :be_end
alias_matcher :have_trailing_newline, :be_trailing_newline alias_matcher :have_trailing_newline, :be_trailing_newline
let(:dir) { mktmpdir } let(:dir) { mktmpdir }
def formula_text(name, body = nil, options = {}) def formula_text(name, body = nil)
path = dir/"#{name}.rb" path = dir/"#{name}.rb"
path.write <<~RUBY path.write <<~RUBY
class #{Formulary.class_s(name)} < Formula class #{Formulary.class_s(name)} < Formula
#{body} #{body}
end end
#{options[:patch]}
RUBY RUBY
described_class.new(path) described_class.new(path)