diff --git a/spec/controllers/case_logs_controller_spec.rb b/spec/controllers/case_logs_controller_spec.rb index 8192173fc..1b4c1fcf6 100644 --- a/spec/controllers/case_logs_controller_spec.rb +++ b/spec/controllers/case_logs_controller_spec.rb @@ -125,7 +125,7 @@ RSpec.describe CaseLogsController, type: :controller do context "conditional routing" do before do - allow_any_instance_of(CaseLogValidator).to receive(:validate_household_pregnancy).and_return(true) + allow_any_instance_of(CaseLogValidator).to receive(:validate_pregnancy).and_return(true) end let(:case_log_form_conditional_question_yes_params) do diff --git a/spec/features/case_log_spec.rb b/spec/features/case_log_spec.rb index a616b7baf..6db2cbe6a 100644 --- a/spec/features/case_log_spec.rb +++ b/spec/features/case_log_spec.rb @@ -449,7 +449,7 @@ RSpec.describe "Test Features" do describe "conditional page routing", js: true do before do - allow_any_instance_of(CaseLogValidator).to receive(:validate_household_pregnancy).and_return(true) + allow_any_instance_of(CaseLogValidator).to receive(:validate_pregnancy).and_return(true) end it "can route the user to a different page based on their answer on the current page" do