mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Set ivars directly
This commit is contained in:
parent
1a95bb3b03
commit
330d209e03
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
require "deprecate_disable"
|
require "deprecate_disable"
|
||||||
require "formula_text_auditor"
|
require "formula_text_auditor"
|
||||||
|
require "formula_versions"
|
||||||
require "resource_auditor"
|
require "resource_auditor"
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
|
@ -2,16 +2,12 @@
|
|||||||
|
|
||||||
require "formula_auditor"
|
require "formula_auditor"
|
||||||
|
|
||||||
module Count
|
RSpec.describe Homebrew::FormulaAuditor do
|
||||||
def self.increment
|
let(:dir) { mktmpdir }
|
||||||
|
let(:foo_version) do
|
||||||
@count ||= 0
|
@count ||= 0
|
||||||
@count += 1
|
@count += 1
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
RSpec.describe Homebrew::FormulaAuditor do
|
|
||||||
let(:dir) { mktmpdir }
|
|
||||||
let(:foo_version) { Count.increment }
|
|
||||||
let(:formula_subpath) { "Formula/foo#{foo_version}.rb" }
|
let(:formula_subpath) { "Formula/foo#{foo_version}.rb" }
|
||||||
let(:origin_tap_path) { Tap::TAP_DIRECTORY/"homebrew/homebrew-foo" }
|
let(:origin_tap_path) { Tap::TAP_DIRECTORY/"homebrew/homebrew-foo" }
|
||||||
let(:origin_formula_path) { origin_tap_path/formula_subpath }
|
let(:origin_formula_path) { origin_tap_path/formula_subpath }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user