Sha256: 36a2f83e0cc164a9b71b903cea9908b1ee346900a3bcb8a05e72f7239bcfbc3e

Contents?: true

Size: 882 Bytes

Versions: 87

Compression:

Stored size: 882 Bytes

Contents

require "spec_helper"

describe CreateTypesController do
  describe "routing" do

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

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

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

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

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

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

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

  end
end

Version data entries

87 entries across 87 versions & 1 rubygems

Version Path
enju_biblio-0.0.7 spec/routing/create_types_routing_spec.rb
enju_biblio-0.0.6 spec/routing/create_types_routing_spec.rb
enju_biblio-0.0.5 spec/routing/create_types_routing_spec.rb
enju_biblio-0.0.4 spec/routing/create_types_routing_spec.rb
enju_biblio-0.0.3 spec/routing/create_types_routing_spec.rb
enju_biblio-0.0.2 spec/routing/create_types_routing_spec.rb
enju_biblio-0.0.1 spec/routing/create_types_routing_spec.rb