-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This content is related to the pilot so we want to remove this until we have a better idea of what survey we might send out for the private beta.
- Loading branch information
1 parent
0fa8e55
commit b52fd57
Showing
7 changed files
with
1 addition
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
then_i_see_the_confirmation_page | ||
and_i_receive_an_email_confirming_that_my_child_wont_be_vaccinated | ||
and_i_receive_a_text_confirming_that_my_child_wont_be_vaccinated | ||
and_i_receive_an_email_prompting_me_to_give_feedback | ||
|
||
when_the_nurse_checks_the_consent_responses | ||
then_they_see_that_the_child_has_consent_refused | ||
|
@@ -108,23 +107,13 @@ def then_i_see_the_confirmation_page | |
end | ||
|
||
def and_i_receive_an_email_confirming_that_my_child_wont_be_vaccinated | ||
expect(enqueued_jobs.first["scheduled_at"]).to be_nil | ||
expect( | ||
Time.zone.parse(enqueued_jobs.third["scheduled_at"]).to_i | ||
).to be_within(1.second).of(1.hour.from_now.to_i) | ||
|
||
expect_email_to "[email protected]", :parental_consent_confirmation_refused | ||
end | ||
|
||
def and_i_receive_a_text_confirming_that_my_child_wont_be_vaccinated | ||
expect_text_to "07123456789", :consent_refused | ||
end | ||
|
||
def and_i_receive_an_email_prompting_me_to_give_feedback | ||
expect_email_to "[email protected]", :parental_consent_give_feedback, :second | ||
expect(ActionMailer::Base.deliveries.count).to eq(2) | ||
end | ||
|
||
def when_the_nurse_checks_the_consent_responses | ||
sign_in @team.users.first | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,11 +142,6 @@ def then_i_get_a_confirmation_email_and_scheduled_survey_email | |
) | ||
|
||
expect_email_to("[email protected]", :parental_consent_confirmation) | ||
expect_email_to( | ||
"[email protected]", | ||
:parental_consent_give_feedback, | ||
:second | ||
) | ||
end | ||
|
||
def and_i_get_a_confirmation_text | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters