Sha256: c1e4b9cb1727dca4414ecc4d38dc4168ae738087c8de01851f2bde86de1ec7bd

Contents?: true

Size: 1.4 KB

Versions: 15

Compression:

Stored size: 1.4 KB

Contents

require "spec_helper"

describe ManifestationsController do
  describe "routing" do

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

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

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

    it "recognizes ISBN" do
      { :get => "/isbn/4798002062" }.should route_to(:controller => "manifestations", :action => "index", :isbn => "4798002062")
    end

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

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

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

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

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre52 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre51 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre50 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre49 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre48 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre47 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre46 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre45 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre44 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre43 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre42 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre41 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre40 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre39 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre38 spec/routing/manifestations_routing_spec.rb