|
43 | 43 |
|
44 | 44 | before do |
45 | 45 | allow(formula_with_deps).to receive_messages( |
46 | | - runtime_formula_dependencies: [first_formula_dep, second_formula_dep], |
47 | | - any_installed_keg: instance_double(Keg, tab: tab_from_keg), |
| 46 | + installed_runtime_formula_dependencies: [first_formula_dep, second_formula_dep], |
| 47 | + any_installed_keg: instance_double(Keg, tab: tab_from_keg), |
48 | 48 | ) |
49 | 49 | allow(first_formula_dep).to receive_messages( |
50 | | - runtime_formula_dependencies: [second_formula_dep], |
51 | | - any_installed_keg: instance_double(Keg, tab: tab_from_keg), |
| 50 | + installed_runtime_formula_dependencies: [second_formula_dep], |
| 51 | + any_installed_keg: instance_double(Keg, tab: tab_from_keg), |
52 | 52 | ) |
53 | 53 | allow(second_formula_dep).to receive_messages( |
54 | | - runtime_formula_dependencies: [], |
55 | | - any_installed_keg: instance_double(Keg, tab: tab_from_keg), |
| 54 | + installed_runtime_formula_dependencies: [], |
| 55 | + any_installed_keg: instance_double(Keg, tab: tab_from_keg), |
56 | 56 | ) |
57 | 57 | allow(formula_is_build_dep).to receive_messages( |
58 | | - runtime_formula_dependencies: [], |
59 | | - any_installed_keg: instance_double(Keg, tab: tab_from_keg), |
| 58 | + installed_runtime_formula_dependencies: [], |
| 59 | + any_installed_keg: instance_double(Keg, tab: tab_from_keg), |
60 | 60 | ) |
61 | 61 | end |
62 | 62 | end |
|
65 | 65 | include_context "with formulae for dependency testing" |
66 | 66 |
|
67 | 67 | before do |
68 | | - allow(Formulary).to receive(:factory).with("three", { prefer_stub: false, warn: false }) |
| 68 | + allow(Formulary).to receive(:factory).with("three", { warn: false }) |
69 | 69 | .and_return(formula_is_build_dep) |
70 | 70 | end |
71 | 71 |
|
|
157 | 157 | let(:casks_multiple_deps) { [first_cask_no_deps, second_cask_no_deps, cask_multiple_deps] } |
158 | 158 |
|
159 | 159 | before do |
160 | | - allow(Formula).to receive("[]").with("zero").and_return(formula_with_deps) |
161 | | - allow(Formula).to receive("[]").with("one").and_return(first_formula_dep) |
162 | | - allow(Formula).to receive("[]").with("two").and_return(second_formula_dep) |
| 160 | + allow(Formulary).to receive(:resolve).with("zero").and_return(formula_with_deps) |
| 161 | + allow(Formulary).to receive(:resolve).with("one").and_return(first_formula_dep) |
| 162 | + allow(Formulary).to receive(:resolve).with("two").and_return(second_formula_dep) |
163 | 163 | end |
164 | 164 | end |
165 | 165 |
|
|
0 commit comments