Sha256: 9611cad100c5d47e7ae0e048d2931233ad3596e57085b256cc99e883faa5c4b3

Contents?: true

Size: 1.27 KB

Versions: 9

Compression:

Stored size: 1.27 KB

Contents

require "spec_helper"

describe SubjectHeadingTypesController do
  describe "routing" do

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

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

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

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

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

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

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

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
enju_subject-0.3.4 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.3.3 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.4.0.rc.1 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.3.2 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.4.0.beta.1 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.3.1 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.3.0 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.3.0.rc.1 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.3.0.beta.1 spec/routing/subject_heading_types_routing_spec.rb