Sha256: f753ee8dcd7da1212b826b24173e39824c161a84e42d134ca28501c0e291d14e

Contents?: true

Size: 1.03 KB

Versions: 16

Compression:

Stored size: 1.03 KB

Contents

require "spec_helper"

module MechanizeStore
  describe ProductsController do
    describe "routing" do

      routes { MechanizeStore::Engine.routes }

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

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

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

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

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

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

      it "routes to #destroy" do
        delete("/products/1").should route_to("mechanize_store/products#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/products_routing_spec.rb
mechanize_store-0.0.18 spec/routing/mechanize_store/products_routing_spec.rb
mechanize_store-0.0.17 spec/routing/mechanize_store/products_routing_spec.rb
mechanize_store-0.0.16 spec/routing/mechanize_store/products_routing_spec.rb
mechanize_store-0.0.15 spec/routing/mechanize_store/products_routing_spec.rb
mechanize_store-0.0.14 spec/routing/mechanize_store/products_routing_spec.rb
mechanize_store-0.0.13 spec/routing/store/products_routing_spec.rb
mechanize_store-0.0.12 spec/routing/store/products_routing_spec.rb
mechanize_store-0.0.11 spec/routing/store/products_routing_spec.rb
mechanize_store-0.0.10 spec/routing/store/products_routing_spec.rb
mechanize_store-0.0.8 spec/routing/store/products_routing_spec.rb
mechanize_store-0.0.7 spec/routing/store/products_routing_spec.rb
mechanize_store-0.0.6 spec/routing/store/products_routing_spec.rb
mechanize_store-0.0.5 spec/routing/store/products_routing_spec.rb
mechanize_store-0.0.4 spec/routing/store/products_routing_spec.rb
mechanize_store-0.0.3 spec/routing/store/products_routing_spec.rb