Sha256: be182433030c46c6c004c31a44788605cbcc03a59e547cb7eb1a069a403f740e

Contents?: true

Size: 1.41 KB

Versions: 26

Compression:

Stored size: 1.41 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_id => "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

26 entries across 26 versions & 1 rubygems

Version Path
enju_biblio-0.2.0.beta.3 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.2.0.beta.2 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.2.0.beta.1 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.3 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.2 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.1 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre71 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre70 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre69 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre68 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre67 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre66 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre65 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre64 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre63 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre62 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre61 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre60 spec/routing/manifestations_routing_spec.rb
enju_biblio-0.1.0.pre59 spec/routing/manifestations_routing_spec.rb