Sha256: 49c587dded1874d39c9632ecf899577d3983b86f18c995cd58a882366c1be212

Contents?: true

Size: 1.06 KB

Versions: 21

Compression:

Stored size: 1.06 KB

Contents

require "spec_helper"

describe BasketsController do
  describe "routing" do

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

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

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

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

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

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

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

  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
enju_library-0.3.11 spec/routing/baskets_routing_spec.rb
enju_library-0.3.10 spec/routing/baskets_routing_spec.rb
enju_library-0.3.9 spec/routing/baskets_routing_spec.rb
enju_library-0.3.8 spec/routing/baskets_routing_spec.rb
enju_library-0.3.8.rc.2 spec/routing/baskets_routing_spec.rb
enju_library-0.3.8.rc.1 spec/routing/baskets_routing_spec.rb
enju_library-0.4.0.rc.1 spec/routing/baskets_routing_spec.rb
enju_library-0.3.7 spec/routing/baskets_routing_spec.rb
enju_library-0.3.6 spec/routing/baskets_routing_spec.rb
enju_library-0.4.0.beta.4 spec/routing/baskets_routing_spec.rb
enju_library-0.4.0.beta.3 spec/routing/baskets_routing_spec.rb
enju_library-0.4.0.beta.2 spec/routing/baskets_routing_spec.rb
enju_library-0.4.0.beta.1 spec/routing/baskets_routing_spec.rb
enju_library-0.3.5 spec/routing/baskets_routing_spec.rb
enju_library-0.3.4 spec/routing/baskets_routing_spec.rb
enju_library-0.3.3 spec/routing/baskets_routing_spec.rb
enju_library-0.3.2 spec/routing/baskets_routing_spec.rb
enju_library-0.3.1 spec/routing/baskets_routing_spec.rb
enju_library-0.3.0 spec/routing/baskets_routing_spec.rb
enju_library-0.3.0.rc.1 spec/routing/baskets_routing_spec.rb