Sha256: a646bad18443ee13469b69bca2abaed703a053222d84e05fd06004f1f8be49fb

Contents?: true

Size: 1.33 KB

Versions: 51

Compression:

Stored size: 1.33 KB

Contents

require "spec_helper"

describe PatronRelationshipsController do
  describe "routing" do

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

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

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

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

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

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

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

  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre22 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre21 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre20 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre19 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre18 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre17 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre16 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre15 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre14 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre13 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre12 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre11 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre10 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre9 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre8 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre7 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre6 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre5 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre4 spec/routing/patron_relationships_routing_spec.rb
enju_biblio-0.1.0.pre3 spec/routing/patron_relationships_routing_spec.rb