diff --git a/spec/helpers/locations_helper_spec.rb b/spec/helpers/locations_helper_spec.rb index 0a8eed96f..48374661c 100644 --- a/spec/helpers/locations_helper_spec.rb +++ b/spec/helpers/locations_helper_spec.rb @@ -115,7 +115,7 @@ RSpec.describe LocationsHelper do expect(location_active_periods(location).third).to have_attributes(from: over_a_year_ago + 3.months, to: nil) end - it "returns correct active periods when reactivation happends during a deactivated period" do + it "returns correct active periods when reactivation happens during a deactivated period" do FactoryBot.create(:location_deactivation_period, deactivation_date: over_a_year_ago, reactivation_date: one_year_ago, location:) FactoryBot.create(:location_deactivation_period, deactivation_date: beginning_of_collection + 2.days, reactivation_date: over_a_year_ago + 1.month, location:) location.reload diff --git a/spec/helpers/schemes_helper_spec.rb b/spec/helpers/schemes_helper_spec.rb index 8ffde636a..70ace2e24 100644 --- a/spec/helpers/schemes_helper_spec.rb +++ b/spec/helpers/schemes_helper_spec.rb @@ -62,7 +62,7 @@ RSpec.describe SchemesHelper do expect(scheme_active_periods(scheme).third).to have_attributes(from: Time.zone.local(2022, 8, 5), to: nil) end - it "returns correct active periods when reactivation happends during a deactivated period" do + it "returns correct active periods when reactivation happens during a deactivated period" do FactoryBot.create(:scheme_deactivation_period, deactivation_date: Time.zone.local(2022, 5, 5), reactivation_date: Time.zone.local(2022, 11, 11), scheme:) FactoryBot.create(:scheme_deactivation_period, deactivation_date: Time.zone.local(2022, 4, 6), reactivation_date: Time.zone.local(2022, 7, 7), scheme:) scheme.reload