Browse Source

Update specs

pull/93/head
baarkerlounger 4 years ago
parent
commit
ebd818ef4b
  1. 2
      spec/controllers/case_logs_controller_spec.rb
  2. 2
      spec/features/case_log_spec.rb

2
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

2
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

Loading…
Cancel
Save