Sha256: a283321b9a46000e822a4ea17fde7616c193344e31b35c4e8d795049419e1158

Contents?: true

Size: 1.15 KB

Versions: 6

Compression:

Stored size: 1.15 KB

Contents

require "spec_helper"

module MechanizeStore
  describe ProductSectionsController do
    describe "routing" do

      routes { MechanizeStore::Engine.routes }

      it "routes to #index" do
        get("/product_sections").should route_to("mechanize_store/product_sections#index")
      end

      it "routes to #new" do
        get("/product_sections/new").should route_to("mechanize_store/product_sections#new")
      end

      it "routes to #show" do
        get("/product_sections/1").should route_to("mechanize_store/product_sections#show", :id => "1")
      end

      it "routes to #edit" do
        get("/product_sections/1/edit").should route_to("mechanize_store/product_sections#edit", :id => "1")
      end

      it "routes to #create" do
        post("/product_sections").should route_to("mechanize_store/product_sections#create")
      end

      it "routes to #update" do
        put("/product_sections/1").should route_to("mechanize_store/product_sections#update", :id => "1")
      end

      it "routes to #destroy" do
        delete("/product_sections/1").should route_to("mechanize_store/product_sections#destroy", :id => "1")
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mechanize_store-0.0.19 spec/routing/mechanize_store/product_sections_routing_spec.rb
mechanize_store-0.0.18 spec/routing/mechanize_store/product_sections_routing_spec.rb
mechanize_store-0.0.17 spec/routing/mechanize_store/product_sections_routing_spec.rb
mechanize_store-0.0.16 spec/routing/mechanize_store/product_sections_routing_spec.rb
mechanize_store-0.0.15 spec/routing/mechanize_store/product_sections_routing_spec.rb
mechanize_store-0.0.14 spec/routing/mechanize_store/product_sections_routing_spec.rb