Browse Source

Rubocop

pull/192/head
baarkerlounger 3 years ago
parent
commit
abd6ddddf3
  1. 7
      spec/views/form/page_view_spec.rb

7
spec/views/form/page_view_spec.rb

@ -2,7 +2,6 @@ require "rails_helper"
require_relative "../../request_helper" require_relative "../../request_helper"
RSpec.describe "form/page" do RSpec.describe "form/page" do
before do before do
RequestHelper.stub_http_requests RequestHelper.stub_http_requests
end end
@ -30,7 +29,7 @@ RSpec.describe "form/page" do
end end
context "with radio type" do context "with radio type" do
let(:attribs) { { type: "radio", answer_options: {"1": "A", "2": "B"} } } let(:attribs) { { type: "radio", answer_options: { "1": "A", "2": "B" } } }
it "renders the guidance partial for radio questions" do it "renders the guidance partial for radio questions" do
expect(rendered).to match(expected_guidance) expect(rendered).to match(expected_guidance)
end end
@ -51,14 +50,14 @@ RSpec.describe "form/page" do
end end
context "with select type" do context "with select type" do
let(:attribs) { { type: "select", answer_options: {"1": "A", "2": "B"} } } let(:attribs) { { type: "select", answer_options: { "1": "A", "2": "B" } } }
it "renders the guidance partial for select questions" do it "renders the guidance partial for select questions" do
expect(rendered).to match(expected_guidance) expect(rendered).to match(expected_guidance)
end end
end end
context "with checkbox type" do context "with checkbox type" do
let(:attribs) { { type: "checkbox", answer_options: {"1": "A", "2": "B"} } } let(:attribs) { { type: "checkbox", answer_options: { "1": "A", "2": "B" } } }
it "renders the guidance partial for checkbox questions" do it "renders the guidance partial for checkbox questions" do
expect(rendered).to match(expected_guidance) expect(rendered).to match(expected_guidance)
end end

Loading…
Cancel
Save