Poltergeist in the green, and resourceful refactor

This commit is contained in:
2015-02-27 15:12:08 +01:00
parent d1015dcc88
commit 046058b5d2
31 changed files with 210 additions and 165 deletions
-21
View File
@@ -6,26 +6,5 @@ describe SupplierController, type: :routing do
it "routes root to #home" do
get("/supplier").should route_to("supplier#home")
end
it "routes to #active_orders" do
get("/supplier/active_orders").should route_to("supplier#active_orders")
end
it "routes to #active_lists" do
get("/supplier/active_lists").should route_to("supplier#active_lists")
end
it "routes to #mark_as_open" do
post("/supplier/mark_as_open").should route_to("supplier#mark_as_open")
end
it "routes to #mark_as_closed" do
post("/supplier/mark_as_closed").should route_to("supplier#mark_as_closed")
end
it "routes to #settings" do
get("/supplier/settings").should route_to("supplier#edit")
end
it "routes to #update via put" do
put("/supplier/settings").should route_to("supplier#update")
end
it "routes to #update via post" do
post("/supplier/settings").should route_to("supplier#update")
end
end
end