Sha256: e7fc29c3594832fce4e21952d7c57486cc97924c54f08388beac753ff19a3844

Contents?: true

Size: 1.15 KB

Versions: 19

Compression:

Stored size: 1.15 KB

Contents

require "rails_helper"

describe CheckedItemsController do
  describe "routing" do

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

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

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

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

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

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

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

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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