Sha256: c0096c356b22e0b7132ed7bf53718db05eaba181721842e4ff9adb4b09898826

Contents?: true

Size: 1.34 KB

Versions: 60

Compression:

Stored size: 1.34 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

60 entries across 60 versions & 2 rubygems

Version Path
enju_subject-0.2.3 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.2.2 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.2.1 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.2.0 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.2.0.beta.5 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.2.0.beta.4 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.2.0.beta.3 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.2.0.beta.2 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.2.0.beta.1 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.1.1 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.1.0 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.1.0.pre34 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.1.0.pre33 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.1.0.pre32 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.1.0.pre31 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.1.0.pre30 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.1.0.pre29 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.1.0.pre28 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.1.0.pre27 spec/routing/subject_heading_types_routing_spec.rb
enju_subject-0.1.0.pre26 spec/routing/subject_heading_types_routing_spec.rb