Sha256: 7684673a3cebe9264e623505d5081b5d50d91095bdca7d435df80e6312ad2d6e

Contents?: true

Size: 1.14 KB

Versions: 87

Compression:

Stored size: 1.14 KB

Contents

require "spec_helper"

describe CreatesController do
  describe "routing" do

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

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

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

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

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

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

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

  end
end

Version data entries

87 entries across 87 versions & 1 rubygems

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