Sha256: 844a428512cc4f45518bad586609fd60c5da1e88f9e29dce1dc4975b9833ae8a
Contents?: true
Size: 1.18 KB
Versions: 16
Compression:
Stored size: 1.18 KB
Contents
require "spec_helper" module MechanizeStore describe ProductCategoriesController do describe "routing" do routes { MechanizeStore::Engine.routes } it "routes to #index" do get("/product_categories").should route_to("mechanize_store/product_categories#index") end it "routes to #new" do get("/product_categories/new").should route_to("mechanize_store/product_categories#new") end it "routes to #show" do get("/product_categories/1").should route_to("mechanize_store/product_categories#show", :id => "1") end it "routes to #edit" do get("/product_categories/1/edit").should route_to("mechanize_store/product_categories#edit", :id => "1") end it "routes to #create" do post("/product_categories").should route_to("mechanize_store/product_categories#create") end it "routes to #update" do put("/product_categories/1").should route_to("mechanize_store/product_categories#update", :id => "1") end it "routes to #destroy" do delete("/product_categories/1").should route_to("mechanize_store/product_categories#destroy", :id => "1") end end end end
Version data entries
16 entries across 16 versions & 1 rubygems