Browse Source

update test part 1

pull/739/head
Kat 3 years ago
parent
commit
fba30fd396
  1. 6
      spec/features/form/accessible_autocomplete_spec.rb

6
spec/features/form/accessible_autocomplete_spec.rb

@ -23,11 +23,11 @@ RSpec.describe "Accessible Automcomplete" do
context "when using accessible autocomplete" do context "when using accessible autocomplete" do
before do before do
allow_any_instance_of(Form::Question).to receive(:answer_option_synonyms).and_return(nil) allow_any_instance_of(Form::Question).to receive(:answer_option_synonyms).and_call_original
allow_any_instance_of(Form::Question).to receive(:answer_option_synonyms).with("E08000003").and_return("synonym") allow_any_instance_of(Form::Question).to receive(:answer_option_synonyms).with("E08000003").and_return("synonym")
allow_any_instance_of(Form::Question).to receive(:answer_option_append).and_return(nil) allow_any_instance_of(Form::Question).to receive(:answer_option_append).and_call_original
allow_any_instance_of(Form::Question).to receive(:answer_option_append).with("E08000003").and_return(" (append)") allow_any_instance_of(Form::Question).to receive(:answer_option_append).with("E08000003").and_return(" (append)")
allow_any_instance_of(Form::Question).to receive(:answer_option_hint).and_return(nil) allow_any_instance_of(Form::Question).to receive(:answer_option_hint).and_call_original
allow_any_instance_of(Form::Question).to receive(:answer_option_hint).with("E08000003").and_return("hint") allow_any_instance_of(Form::Question).to receive(:answer_option_hint).with("E08000003").and_return("hint")
visit("/logs/#{case_log.id}/accessible-select") visit("/logs/#{case_log.id}/accessible-select")
end end

Loading…
Cancel
Save