Browse Source

Rubocop

pull/39/head^2
baarkerlounger 3 years ago
parent
commit
8f272c55b7
  1. 32
      spec/controllers/case_logs_controller_spec.rb
  2. 6
      spec/features/case_log_spec.rb

32
spec/controllers/case_logs_controller_spec.rb

@ -91,26 +91,24 @@ RSpec.describe CaseLogsController, type: :controller do
previous_page: "accessibility_requirements" } previous_page: "accessibility_requirements" }
end end
let(:questions_for_page) do let(:questions_for_page) do
{"accessibility_requirements"=> { "accessibility_requirements" =>
{ {
"type"=>"checkbox", "type" => "checkbox",
"answer_options"=> "answer_options" =>
{"accessibility_requirements_fully_wheelchair_accessible_housing"=>"Fully wheelchair accessible housing", { "accessibility_requirements_fully_wheelchair_accessible_housing" => "Fully wheelchair accessible housing",
"accessibility_requirements_wheelchair_access_to_essential_rooms"=>"Wheelchair access to essential rooms", "accessibility_requirements_wheelchair_access_to_essential_rooms" => "Wheelchair access to essential rooms",
"accessibility_requirements_level_access_housing"=>"Level access housing", "accessibility_requirements_level_access_housing" => "Level access housing",
"accessibility_requirements_other_disability_requirements"=>"Other disability requirements", "accessibility_requirements_other_disability_requirements" => "Other disability requirements",
"accessibility_requirements_no_disability_requirements"=>"No disability requirements", "accessibility_requirements_no_disability_requirements" => "No disability requirements",
"divider_a"=>true, "divider_a" => true,
"accessibility_requirements_do_not_know"=>"Do not know", "accessibility_requirements_do_not_know" => "Do not know",
"divider_b"=>true, "divider_b" => true,
"accessibility_requirements_prefer_not_to_say"=>"Prefer not to say" "accessibility_requirements_prefer_not_to_say" => "Prefer not to say" },
}
}, },
"tenant_code"=> "tenant_code" =>
{ {
"type"=>"text" "type" => "text",
} } }
}
end end
it "updates both question fields" do it "updates both question fields" do

6
spec/features/case_log_spec.rb

@ -160,15 +160,15 @@ RSpec.describe "Test Features" do
# Something about our styling makes the selenium webdriver think the actual radio buttons are not visible so we pass false here # 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( expect(page).to have_checked_field(
"case-log-accessibility-requirements-accessibility-requirements-fully-wheelchair-accessible-housing-field", "case-log-accessibility-requirements-accessibility-requirements-fully-wheelchair-accessible-housing-field",
visible: false visible: false,
) )
expect(page).to have_unchecked_field( expect(page).to have_unchecked_field(
"case-log-accessibility-requirements-accessibility-requirements-wheelchair-access-to-essential-rooms-field", "case-log-accessibility-requirements-accessibility-requirements-wheelchair-access-to-essential-rooms-field",
visible: false visible: false,
) )
expect(page).to have_checked_field( expect(page).to have_checked_field(
"case-log-accessibility-requirements-accessibility-requirements-level-access-housing-field", "case-log-accessibility-requirements-accessibility-requirements-level-access-housing-field",
visible: false visible: false,
) )
end end
end end

Loading…
Cancel
Save