moving weekend logic into the next_attempt_at logic in recipient_schedule

This commit is contained in:
Jared Cosulich 2017-04-18 12:00:24 -04:00
parent ac7858c5f6
commit a2300a58b9
4 changed files with 32 additions and 12 deletions

View file

@ -13,6 +13,7 @@ describe "survey:attempt_questions" do
n += 1.day until n.on_weekday?
return n
}
let(:ready_recipient_schedule) { double('ready recipient schedule', attempt_question: nil) }
let(:recipient_schedules) { double("recipient schedules", ready: [ready_recipient_schedule]) }
let(:active_schedule) { double("active schedule", recipient_schedules: recipient_schedules) }