@@ -218,12 +218,12 @@ module Geography # rubocop:todo Metrics/ModuleLength
218218 end
219219 end
220220
221- context 'when context is a Person with user' do
221+ context 'when context is a Person with user' do # rubocop:todo RSpec/MultipleMemoizedHelpers
222222 let! ( :person_contact_detail ) do
223223 create ( :better_together_contact_detail , contactable : person )
224224 end
225225
226- let! ( :person_address ) do
226+ let! ( :person_address ) do # rubocop:todo RSpec/LetSetup
227227 create ( :better_together_address , privacy : 'private' , contact_detail : person_contact_detail )
228228 end
229229
@@ -241,18 +241,18 @@ module Geography # rubocop:todo Metrics/ModuleLength
241241 end
242242 end
243243
244- context 'when context is a Person without user' do
244+ context 'when context is a Person without user' do # rubocop:todo RSpec/MultipleMemoizedHelpers
245245 let ( :person_without_user ) { create ( :better_together_person ) }
246246
247- it 'returns only public addresses' do
247+ it 'returns only public addresses' do # rubocop:todo RSpec/MultipleExpectations
248248 result = described_class . available_addresses_for ( person_without_user )
249249
250250 expect ( result ) . to include ( public_address )
251251 expect ( result ) . not_to include ( private_address )
252252 end
253253 end
254254
255- context 'when context is a Community' do
255+ context 'when context is a Community' do # rubocop:todo RSpec/MultipleMemoizedHelpers
256256 let! ( :community_contact_detail ) do
257257 create ( :better_together_contact_detail , contactable : community )
258258 end
@@ -261,7 +261,7 @@ module Geography # rubocop:todo Metrics/ModuleLength
261261 create ( :better_together_address , privacy : 'private' , contact_detail : community_contact_detail )
262262 end
263263
264- it 'returns community addresses and public addresses' do
264+ it 'returns community addresses and public addresses' do # rubocop:todo RSpec/MultipleExpectations
265265 result = described_class . available_addresses_for ( community )
266266
267267 expect ( result ) . to include ( community_address )
@@ -271,7 +271,7 @@ module Geography # rubocop:todo Metrics/ModuleLength
271271 end
272272
273273 context 'when context is unsupported type' do
274- it 'returns only public addresses' do
274+ it 'returns only public addresses' do # rubocop:todo RSpec/MultipleExpectations
275275 result = described_class . available_addresses_for ( 'unsupported' )
276276
277277 expect ( result ) . to include ( public_address )
@@ -293,14 +293,14 @@ module Geography # rubocop:todo Metrics/ModuleLength
293293 end
294294 end
295295
296- context 'when context is a Person with user' do
296+ context 'when context is a Person with user' do # rubocop:todo RSpec/MultipleMemoizedHelpers
297297 let! ( :person_building ) do
298298 create ( :better_together_infrastructure_building ,
299299 creator : person ,
300300 privacy : 'private' )
301301 end
302302
303- it 'uses policy scope to return authorized buildings' do
303+ it 'uses policy scope to return authorized buildings' do # rubocop:todo RSpec/MultipleExpectations
304304 result = described_class . available_buildings_for ( person )
305305
306306 # Should include public buildings and person's own buildings
@@ -309,18 +309,18 @@ module Geography # rubocop:todo Metrics/ModuleLength
309309 expect ( result ) . not_to include ( private_building )
310310 end
311311
312- it 'includes proper associations' do
312+ it 'includes proper associations' do # rubocop:todo RSpec/MultipleExpectations
313313 result = described_class . available_buildings_for ( person )
314314
315315 expect ( result . includes_values ) . to include ( :string_translations )
316316 expect ( result . includes_values ) . to include ( :address )
317317 end
318318 end
319319
320- context 'when context is a Person without user' do
320+ context 'when context is a Person without user' do # rubocop:todo RSpec/MultipleMemoizedHelpers
321321 let ( :person_without_user ) { create ( :better_together_person ) }
322322
323- it 'returns only public buildings' do
323+ it 'returns only public buildings' do # rubocop:todo RSpec/MultipleExpectations
324324 result = described_class . available_buildings_for ( person_without_user )
325325
326326 expect ( result ) . to include ( public_building )
@@ -329,7 +329,7 @@ module Geography # rubocop:todo Metrics/ModuleLength
329329 end
330330
331331 context 'when context is a Community' do
332- it 'returns only public buildings' do
332+ it 'returns only public buildings' do # rubocop:todo RSpec/MultipleExpectations
333333 result = described_class . available_buildings_for ( community )
334334
335335 expect ( result ) . to include ( public_building )
0 commit comments