Sha256: 94b82812b66ee2ab9bf70694341ba4c04b55b2037f93dae28f74c0712b599b18

Contents?: true

Size: 1.22 KB

Versions: 17

Compression:

Stored size: 1.22 KB

Contents

require "spec_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

17 entries across 17 versions & 1 rubygems

Version Path
enju_circulation-0.2.0.beta.2 spec/routing/checked_items_routing_spec.rb
enju_circulation-0.2.0.beta.1 spec/routing/checked_items_routing_spec.rb
enju_circulation-0.1.2 spec/routing/checked_items_routing_spec.rb
enju_circulation-0.1.1 spec/routing/checked_items_routing_spec.rb
enju_circulation-0.1.0 spec/routing/checked_items_routing_spec.rb
enju_circulation-0.1.0.pre49 spec/routing/checked_items_routing_spec.rb
enju_circulation-0.1.0.pre48 spec/routing/checked_items_routing_spec.rb
enju_circulation-0.1.0.pre47 spec/routing/checked_items_routing_spec.rb
enju_circulation-0.1.0.pre46 spec/routing/checked_items_routing_spec.rb
enju_circulation-0.1.0.pre45 spec/routing/checked_items_routing_spec.rb
enju_circulation-0.1.0.pre44 spec/routing/checked_items_routing_spec.rb
enju_circulation-0.1.0.pre43 spec/routing/checked_items_routing_spec.rb
enju_circulation-0.1.0.pre42 spec/routing/checked_items_routing_spec.rb
enju_circulation-0.1.0.pre41 spec/routing/checked_items_routing_spec.rb
enju_circulation-0.1.0.pre40 spec/routing/checked_items_routing_spec.rb
enju_circulation-0.1.0.pre39 spec/routing/checked_items_routing_spec.rb
enju_circulation-0.1.0.pre38 spec/routing/checked_items_routing_spec.rb