From 306732d27c290fc35b3889de414cccdbfeaac15d Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sat, 21 Dec 2019 09:41:21 +1300 Subject: [PATCH] seed routing spec now using slugs --- spec/routing/seeds_routing_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/routing/seeds_routing_spec.rb b/spec/routing/seeds_routing_spec.rb index 0528a5b8d..65710acb1 100644 --- a/spec/routing/seeds_routing_spec.rb +++ b/spec/routing/seeds_routing_spec.rb @@ -14,11 +14,11 @@ describe SeedsController do end it "routes to #show" do - get("/seeds/1").should route_to("seeds#show", id: "1") + get("/seeds/corn").should route_to("seeds#show", slug: 'corn') end it "routes to #edit" do - get("/seeds/1/edit").should route_to("seeds#edit", id: "1") + get("/seeds/corn/edit").should route_to("seeds#edit", slug: 'corn') end it "routes to #create" do @@ -26,11 +26,11 @@ describe SeedsController do end it "routes to #update" do - put("/seeds/1").should route_to("seeds#update", id: "1") + put("/seeds/corn").should route_to("seeds#update", slug: 'corn') end it "routes to #destroy" do - delete("/seeds/1").should route_to("seeds#destroy", id: "1") + delete("/seeds/corn").should route_to("seeds#destroy", slug: 'corn') end end end