|
9 | 9 | let!(:app) { dummy_test_app("nothing") }
|
10 | 10 |
|
11 | 11 | before do
|
12 |
| - ENV["CPLN_UPSTREAM"] = upstream_app |
| 12 | + stub_env("CPLN_UPSTREAM", upstream_app) |
13 | 13 | # Ideally, we should have a different org, but for testing purposes, this works
|
14 |
| - ENV["CPLN_ORG_UPSTREAM"] = dummy_test_org |
| 14 | + stub_env("CPLN_ORG_UPSTREAM", dummy_test_org) |
15 | 15 |
|
16 | 16 | run_cpflow_command!("apply-template", "app", "-a", upstream_app)
|
17 | 17 | run_cpflow_command!("apply-template", "app", "rails", "-a", app)
|
|
40 | 40 | let!(:app) { dummy_test_app("invalid-release-script") }
|
41 | 41 |
|
42 | 42 | before do
|
43 |
| - ENV["CPLN_UPSTREAM"] = upstream_app |
| 43 | + stub_env("CPLN_UPSTREAM", upstream_app) |
44 | 44 | # Ideally, we should have a different org, but for testing purposes, this works
|
45 |
| - ENV["CPLN_ORG_UPSTREAM"] = dummy_test_org |
46 |
| - ENV["APP_NAME"] = app |
| 45 | + stub_env("CPLN_ORG_UPSTREAM", dummy_test_org) |
| 46 | + stub_env("APP_NAME", app) |
47 | 47 |
|
48 | 48 | run_cpflow_command!("apply-template", "app", "-a", upstream_app)
|
49 | 49 | run_cpflow_command!("apply-template", "app", "rails", "postgres", "-a", app)
|
|
77 | 77 | let!(:app) { dummy_test_app }
|
78 | 78 |
|
79 | 79 | before do
|
80 |
| - ENV["CPLN_UPSTREAM"] = upstream_app |
| 80 | + stub_env("CPLN_UPSTREAM", upstream_app) |
81 | 81 | # Ideally, we should have a different org, but for testing purposes, this works
|
82 |
| - ENV["CPLN_ORG_UPSTREAM"] = dummy_test_org |
83 |
| - ENV["APP_NAME"] = app |
| 82 | + stub_env("CPLN_ORG_UPSTREAM", dummy_test_org) |
| 83 | + stub_env("APP_NAME", app) |
84 | 84 |
|
85 | 85 | run_cpflow_command!("apply-template", "app", "-a", upstream_app)
|
86 | 86 | run_cpflow_command!("apply-template", "app", "rails", "postgres", "-a", app)
|
|
0 commit comments