Skip to content

Commit

Permalink
Rot my teeth on that sweet sweet syntactical sugar
Browse files Browse the repository at this point in the history
  • Loading branch information
zspencer committed Oct 10, 2024
1 parent 08a4f96 commit 6d55c7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/furniture/marketplace/delivery_areas_system_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
it "Makes the DeliveryArea selectable" do
visit(polymorphic_path(marketplace.location(child: :delivery_areas)))
click_link("Archived Delivery Areas")
within("##{dom_id(delivery_area)}") do
within(delivery_area) do
click_link("Edit")
end

Expand All @@ -55,7 +55,7 @@
cart = create(:marketplace_cart, delivery_area:, marketplace:)
visit(polymorphic_path(marketplace.location(child: :delivery_areas)))
click_link("Archived Delivery Areas")
within("##{dom_id(delivery_area)}") do
within(delivery_area) do
accept_confirm { click_link(I18n.t("destroy.link_to")) }
end

Expand All @@ -71,7 +71,7 @@
visit(polymorphic_path(marketplace.location(child: :delivery_areas)))
click_link("Archived Delivery Areas")

within("##{dom_id(delivery_area)}") do
within(delivery_area) do
expect(page).to have_no_content(I18n.t("destroy.link_to"))
end
end
Expand Down

0 comments on commit 6d55c7f

Please sign in to comment.