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

Version Path
mechanize_store-0.0.19 spec/routing/mechanize_store/product_categories_routing_spec.rb
mechanize_store-0.0.18 spec/routing/mechanize_store/product_categories_routing_spec.rb
mechanize_store-0.0.17 spec/routing/mechanize_store/product_categories_routing_spec.rb
mechanize_store-0.0.16 spec/routing/mechanize_store/product_categories_routing_spec.rb
mechanize_store-0.0.15 spec/routing/mechanize_store/product_categories_routing_spec.rb
mechanize_store-0.0.14 spec/routing/mechanize_store/product_categories_routing_spec.rb
mechanize_store-0.0.13 spec/routing/store/product_categories_routing_spec.rb
mechanize_store-0.0.12 spec/routing/store/product_categories_routing_spec.rb
mechanize_store-0.0.11 spec/routing/store/product_categories_routing_spec.rb
mechanize_store-0.0.10 spec/routing/store/product_categories_routing_spec.rb
mechanize_store-0.0.8 spec/routing/store/product_categories_routing_spec.rb
mechanize_store-0.0.7 spec/routing/store/product_categories_routing_spec.rb
mechanize_store-0.0.6 spec/routing/store/product_categories_routing_spec.rb
mechanize_store-0.0.5 spec/routing/store/product_categories_routing_spec.rb
mechanize_store-0.0.4 spec/routing/store/product_categories_routing_spec.rb
mechanize_store-0.0.3 spec/routing/store/product_categories_routing_spec.rb