Sha256: 06bfc69b7ba1dfed8fa5ac70d145459ddea87c714298f8d76a4fe2c3401651bd

Contents?: true

Size: 1.4 KB

Versions: 51

Compression:

Stored size: 1.4 KB

Contents

require "spec_helper"

describe PatronRelationshipTypesController do
  describe "routing" do

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

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

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

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

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

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

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

  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre42 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre41 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre40 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre39 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre38 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre37 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre36 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre35 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre34 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre33 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre32 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre31 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre30 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre29 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre28 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre27 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre26 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre25 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre24 spec/routing/patron_relationship_types_routing_spec.rb
enju_biblio-0.1.0.pre23 spec/routing/patron_relationship_types_routing_spec.rb