Sha256: ae6bf1c111190742426bdc8c8d5f1b754ef6faf2b7a5db46d1dbe98c19dfe9e6

Contents?: true

Size: 778 Bytes

Versions: 17

Compression:

Stored size: 778 Bytes

Contents

require "spec_helper"

describe PagesController do
  describe "routing" do

    it "routes to #index" do
      get("/pages").should route_to("pages#index")
    end

    it "routes to #new" do
      get("/pages/new").should route_to("pages#new")
    end

    it "routes to #show" do
      get("/pages/1").should route_to("pages#show", :id => "1")
    end

    it "routes to #edit" do
      get("/pages/1/edit").should route_to("pages#edit", :id => "1")
    end

    it "routes to #create" do
      post("/pages").should route_to("pages#create")
    end

    it "routes to #update" do
      put("/pages/1").should route_to("pages#update", :id => "1")
    end

    it "routes to #destroy" do
      delete("/pages/1").should route_to("pages#destroy", :id => "1")
    end

  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
the_role-2.5.4 spec/dummy_app/spec/routing/pages_routing_spec.rb
the_role-2.5.3 spec/dummy_app/spec/routing/pages_routing_spec.rb
the_role-2.5.2 spec/dummy_app/spec/routing/pages_routing_spec.rb
the_role-2.5.1 spec/dummy_app/spec/routing/pages_routing_spec.rb
the_role-2.5 spec/dummy_app/spec/routing/pages_routing_spec.rb
the_role-2.4 spec/dummy_app/spec/routing/pages_routing_spec.rb
the_role-2.3 spec/dummy_app/spec/routing/pages_routing_spec.rb
kuztuscms-0.0.10 spec/routing/kuztuscms/pages_routing_spec.rb
kuztuscms-0.0.9 spec/routing/kuztuscms/pages_routing_spec.rb
kuztuscms-0.0.8 spec/routing/kuztuscms/pages_routing_spec.rb
kuztuscms-0.0.7 spec/routing/kuztuscms/pages_routing_spec.rb
kuztuscms-0.0.6 spec/routing/kuztuscms/pages_routing_spec.rb
kuztuscms-0.0.5 spec/routing/kuztuscms/pages_routing_spec.rb
kuztuscms-0.0.4 spec/routing/kuztuscms/pages_routing_spec.rb
kuztuscms-0.0.3 spec/routing/kuztuscms/pages_routing_spec.rb
kuztuscms-0.0.2 spec/routing/kuztuscms/pages_routing_spec.rb
kuztuscms-0.0.1 spec/routing/kuztuscms/pages_routing_spec.rb