Sha256: a8541c1b361a682055c2d009d5b4685a7cbe2a2d711265e809e2782587dd6cf3
Contents?: true
Size: 481 Bytes
Versions: 16
Compression:
Stored size: 481 Bytes
Contents
require "spec_helper" module MechanizeStore describe ProductsController do describe "routing" do routes { MechanizeStore::Engine.routes } it "routes to #create" do post("/products/1/product_photos").should route_to("mechanize_store/product_photos#create", product_id: "1") end it "routes to #destroy" do delete("/product_photos/1").should route_to("mechanize_store/product_photos#destroy", :id => "1") end end end end
Version data entries
16 entries across 16 versions & 1 rubygems