Sha256: 3f9a4b290ae1a36152d80dd3284e36163e0631bf13675f0eaa9e116549b643a7

Contents?: true

Size: 1.07 KB

Versions: 27

Compression:

Stored size: 1.07 KB

Contents

require 'rails_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

27 entries across 27 versions & 1 rubygems

Version Path
enju_biblio-0.3.18 spec/routing/creates_routing_spec.rb
enju_biblio-0.3.17 spec/routing/creates_routing_spec.rb
enju_biblio-0.3.16 spec/routing/creates_routing_spec.rb
enju_biblio-0.3.15 spec/routing/creates_routing_spec.rb
enju_biblio-0.3.14 spec/routing/creates_routing_spec.rb
enju_biblio-0.3.13 spec/routing/creates_routing_spec.rb
enju_biblio-0.3.12 spec/routing/creates_routing_spec.rb
enju_biblio-0.3.11 spec/routing/creates_routing_spec.rb
enju_biblio-0.3.10 spec/routing/creates_routing_spec.rb
enju_biblio-0.3.10.rc.3 spec/routing/creates_routing_spec.rb
enju_biblio-0.3.10.rc.2 spec/routing/creates_routing_spec.rb
enju_biblio-0.3.10.rc.1 spec/routing/creates_routing_spec.rb
enju_biblio-0.3.9 spec/routing/creates_routing_spec.rb
enju_biblio-0.4.0.rc.1 spec/routing/creates_routing_spec.rb
enju_biblio-0.3.8 spec/routing/creates_routing_spec.rb
enju_biblio-0.3.7 spec/routing/creates_routing_spec.rb
enju_biblio-0.3.6 spec/routing/creates_routing_spec.rb
enju_biblio-0.4.0.beta.2 spec/routing/creates_routing_spec.rb
enju_biblio-0.4.0.beta.1 spec/routing/creates_routing_spec.rb
enju_biblio-0.3.5 spec/routing/creates_routing_spec.rb