|
32 | 32 |
|
33 | 33 | context 'with feature toggle disabled' do
|
34 | 34 | before do
|
35 |
| - allow(FeatureGate).to receive(:enabled?).with('structured_addresses').and_return(true) |
36 |
| - allow(FeatureGate).to receive(:enabled?).with('address_migration').and_return(false) |
37 | 35 | allow(FeatureGate).to receive(:enabled?).with(:self_registration_reason).and_return(false)
|
38 | 36 | allow(FeatureGate).to receive(:enabled?).with('people.people_managers').and_return(false)
|
39 | 37 | allow(FeatureGate).to receive(:enabled?).with('people.people_managers.self_service_managed_creation').and_return(false)
|
|
50 | 48 |
|
51 | 49 | context 'with people_managers feature toggle enabled' do
|
52 | 50 | before do
|
53 |
| - allow(FeatureGate).to receive(:enabled?).with('structured_addresses').and_return(true) |
54 |
| - allow(FeatureGate).to receive(:enabled?).with('address_migration').and_return(false) |
55 | 51 | allow(FeatureGate).to receive(:enabled?).with(:self_registration_reason).and_return(false)
|
56 | 52 | allow(FeatureGate).to receive(:enabled?).with('people.people_managers').and_return(true)
|
57 | 53 | allow(FeatureGate).to receive(:enabled?).with('people.people_managers.self_service_managed_creation').and_return(false)
|
|
145 | 141 |
|
146 | 142 | context 'with feature toggle disabled' do
|
147 | 143 | before do
|
148 |
| - allow(FeatureGate).to receive(:enabled?).with('structured_addresses').and_return(true) |
149 |
| - allow(FeatureGate).to receive(:enabled?).with('address_migration').and_return(false) |
150 | 144 | allow(FeatureGate).to receive(:enabled?).with(:self_registration_reason).and_return(false)
|
151 | 145 | allow(FeatureGate).to receive(:enabled?).with('people.people_managers.self_service_managed_creation').and_return(true)
|
152 | 146 | allow(FeatureGate).to receive(:enabled?).with('people.people_managers').and_return(false)
|
|
161 | 155 |
|
162 | 156 | context 'with feature toggle enabled' do
|
163 | 157 | before do
|
164 |
| - allow(FeatureGate).to receive(:enabled?).with('structured_addresses').and_return(true) |
165 |
| - allow(FeatureGate).to receive(:enabled?).with('address_migration').and_return(false) |
166 | 158 | allow(FeatureGate).to receive(:enabled?).with(:self_registration_reason).and_return(false)
|
167 | 159 | allow(FeatureGate).to receive(:enabled?).with('people.people_managers').and_return(true)
|
168 | 160 | allow(FeatureGate).to receive(:enabled?).with('people.people_managers.self_service_managed_creation').and_return(true)
|
|
204 | 196 | describe 'registering new managed' do
|
205 | 197 | context 'with people_managers feature toggle disabled' do
|
206 | 198 | before do
|
207 |
| - allow(FeatureGate).to receive(:enabled?).with('structured_addresses').and_return(true) |
208 |
| - allow(FeatureGate).to receive(:enabled?).with('address_migration').and_return(false) |
209 | 199 | allow(FeatureGate).to receive(:enabled?).with(:self_registration_reason).and_return(false)
|
210 | 200 | allow(FeatureGate).to receive(:enabled?).with('people.people_managers').and_return(false)
|
211 | 201 | end
|
|
241 | 231 |
|
242 | 232 | context 'with people_managers feature toggle enabled' do
|
243 | 233 | before do
|
244 |
| - allow(FeatureGate).to receive(:enabled?).with('structured_addresses').and_return(true) |
245 |
| - allow(FeatureGate).to receive(:enabled?).with('address_migration').and_return(false) |
246 | 234 | allow(FeatureGate).to receive(:enabled?).with(:self_registration_reason).and_return(false)
|
247 | 235 | allow(FeatureGate).to receive(:enabled?).with('people.people_managers').and_return(true)
|
248 | 236 | end
|
|
0 commit comments