Browse Source

fix typo

pull/2995/head
Carolyn 2 months ago
parent
commit
7d2dfbee8a
  1. 2
      spec/helpers/locations_helper_spec.rb
  2. 2
      spec/helpers/schemes_helper_spec.rb

2
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

2
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

Loading…
Cancel
Save