Skip to content

Commit

Permalink
WIP lint: fix spec/requests added
Browse files Browse the repository at this point in the history
  • Loading branch information
KludgeKML committed Dec 16, 2024
1 parent 22941ec commit 0f69853
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/requests/contact_electoral_registration_office_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
end

context "and there are no contact details" do
let(:presenter) { instance_double(ElectoralPresenter, show_picker?: true) }
let(:presenter) { instance_double(ElectoralPresenter, show_picker?: true, addresses: []) }

it "GET show renders the address picker template" do
with_electoral_api_url do
Expand All @@ -52,7 +52,7 @@
end

context "but contact details are present" do
let(:presenter) { instance_double(ElectoralPresenter, show_picker?: false) }
let(:presenter) { instance_double(ElectoralPresenter, show_picker?: false, electoral_services: nil, use_electoral_services_contact_details?: false, use_registration_contact_details?: false) }

it "GET show doesn't render the address picker template" do
with_electoral_api_url do
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/places_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
it "shows location error" do
post "/slug", params: { postcode: invalid_postcode }

expect(LocationError.new(PlacesManagerResponse::INVALID_POSTCODE).postcode_error).to eq(describecontroller.view_assigns["location_error"].postcode_error)
expect(controller.view_assigns["location_error"].postcode_error).to eq(LocationError.new(PlacesManagerResponse::INVALID_POSTCODE).postcode_error)
end
end
end
Expand Down

0 comments on commit 0f69853

Please sign in to comment.