Browse Source

PR fixes

pull/264/head
Stéphane Meny 3 years ago
parent
commit
5bc3f952c4
No known key found for this signature in database
GPG Key ID: 9D0AFEA988527923
  1. 1
      spec/features/form/saving_data_spec.rb
  2. 2
      spec/models/form_handler_spec.rb

1
spec/features/form/saving_data_spec.rb

@ -85,7 +85,6 @@ RSpec.describe "Form Saving Data" do
it "displays checkbox answers in inputs if they are already saved" do
visit("/logs/#{case_log_with_checkbox_questions_answered.id.to_s.dasherize}/accessibility-requirements")
# Something about our styling makes the selenium webdriver think the actual radio buttons are not visible so we pass false here
expect(page).to have_checked_field(
"case-log-accessibility-requirements-housingneeds-a-field",
visible: :all,

2
spec/models/form_handler_spec.rb

@ -21,7 +21,7 @@ RSpec.describe FormHandler do
end
end
it "onlies load the form once at boot time" do
it "loads the form once at boot time" do
form_handler = described_class.instance
expect(Form).not_to receive(:new).with(:any, test_form_name)
expect(form_handler.get_form(test_form_name)).to be_a(Form)

Loading…
Cancel
Save