Sha256: c42f0658f6f2b05ddc2f1d733bc9448c6682a719c0da92033f2328bb0d60407e

Contents?: true

Size: 1.15 KB

Versions: 27

Compression:

Stored size: 1.15 KB

Contents

require 'rails_helper'

describe ContentTypesController do
  describe "routing" do

    it "recognizes and generates #index" do
      { get: "/content_types" }.should route_to(controller: "content_types", action: "index")
    end

    it "recognizes and generates #new" do
      { get: "/content_types/new" }.should route_to(controller: "content_types", action: "new")
    end

    it "recognizes and generates #show" do
      { get: "/content_types/1" }.should route_to(controller: "content_types", action: "show", id: "1")
    end

    it "recognizes and generates #edit" do
      { get: "/content_types/1/edit" }.should route_to(controller: "content_types", action: "edit", id: "1")
    end

    it "recognizes and generates #create" do
      { post: "/content_types" }.should route_to(controller: "content_types", action: "create")
    end

    it "recognizes and generates #update" do
      { put: "/content_types/1" }.should route_to(controller: "content_types", action: "update", id: "1")
    end

    it "recognizes and generates #destroy" do
      { delete: "/content_types/1" }.should route_to(controller: "content_types", action: "destroy", id: "1")
    end

  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
enju_biblio-0.3.18 spec/routing/content_types_routing_spec.rb
enju_biblio-0.3.17 spec/routing/content_types_routing_spec.rb
enju_biblio-0.3.16 spec/routing/content_types_routing_spec.rb
enju_biblio-0.3.15 spec/routing/content_types_routing_spec.rb
enju_biblio-0.3.14 spec/routing/content_types_routing_spec.rb
enju_biblio-0.3.13 spec/routing/content_types_routing_spec.rb
enju_biblio-0.3.12 spec/routing/content_types_routing_spec.rb
enju_biblio-0.3.11 spec/routing/content_types_routing_spec.rb
enju_biblio-0.3.10 spec/routing/content_types_routing_spec.rb
enju_biblio-0.3.10.rc.3 spec/routing/content_types_routing_spec.rb
enju_biblio-0.3.10.rc.2 spec/routing/content_types_routing_spec.rb
enju_biblio-0.3.10.rc.1 spec/routing/content_types_routing_spec.rb
enju_biblio-0.3.9 spec/routing/content_types_routing_spec.rb
enju_biblio-0.4.0.rc.1 spec/routing/content_types_routing_spec.rb
enju_biblio-0.3.8 spec/routing/content_types_routing_spec.rb
enju_biblio-0.3.7 spec/routing/content_types_routing_spec.rb
enju_biblio-0.3.6 spec/routing/content_types_routing_spec.rb
enju_biblio-0.4.0.beta.2 spec/routing/content_types_routing_spec.rb
enju_biblio-0.4.0.beta.1 spec/routing/content_types_routing_spec.rb
enju_biblio-0.3.5 spec/routing/content_types_routing_spec.rb