Sha256: 6c711da75a3e1bcbc9c1dc2175354c6d30cb538bf1b72aa988414d277b10ac5e

Contents?: true

Size: 838 Bytes

Versions: 10

Compression:

Stored size: 838 Bytes

Contents

require "spec_helper"

describe TemplatesController do
  describe "routing" do

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

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

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

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

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

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

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

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kuztuscms-0.0.10 spec/routing/kuztuscms/templates_routing_spec.rb
kuztuscms-0.0.9 spec/routing/kuztuscms/templates_routing_spec.rb
kuztuscms-0.0.8 spec/routing/kuztuscms/templates_routing_spec.rb
kuztuscms-0.0.7 spec/routing/kuztuscms/templates_routing_spec.rb
kuztuscms-0.0.6 spec/routing/kuztuscms/templates_routing_spec.rb
kuztuscms-0.0.5 spec/routing/kuztuscms/templates_routing_spec.rb
kuztuscms-0.0.4 spec/routing/kuztuscms/templates_routing_spec.rb
kuztuscms-0.0.3 spec/routing/kuztuscms/templates_routing_spec.rb
kuztuscms-0.0.2 spec/routing/kuztuscms/templates_routing_spec.rb
kuztuscms-0.0.1 spec/routing/kuztuscms/templates_routing_spec.rb