Commit ad704347 authored by syasonik's avatar syasonik

Swap to more sensible shift factory defaults

parent c729dc18
...@@ -4,7 +4,7 @@ FactoryBot.define do ...@@ -4,7 +4,7 @@ FactoryBot.define do
factory :incident_management_oncall_shift, class: 'IncidentManagement::OncallShift' do factory :incident_management_oncall_shift, class: 'IncidentManagement::OncallShift' do
association :participant, :with_developer_access, factory: :incident_management_oncall_participant association :participant, :with_developer_access, factory: :incident_management_oncall_participant
rotation { participant.rotation } rotation { participant.rotation }
starts_at { 5.days.ago } starts_at { rotation.starts_at }
ends_at { 2.days.from_now } ends_at { starts_at + rotation.shift_duration }
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment