Sha256: 960728b179980cec70551dd0f7a63c0195802e3c65d311510fd1b4887ea45d9a

Contents?: true

Size: 823 Bytes

Versions: 10

Compression:

Stored size: 823 Bytes

Contents

require "spec_helper"

describe ArticlesController do
  describe "routing" do

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

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

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

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

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

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

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

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kuztuscms-0.0.10 spec/routing/kuztuscms/articles_routing_spec.rb
kuztuscms-0.0.9 spec/routing/kuztuscms/articles_routing_spec.rb
kuztuscms-0.0.8 spec/routing/kuztuscms/articles_routing_spec.rb
kuztuscms-0.0.7 spec/routing/kuztuscms/articles_routing_spec.rb
kuztuscms-0.0.6 spec/routing/kuztuscms/articles_routing_spec.rb
kuztuscms-0.0.5 spec/routing/kuztuscms/articles_routing_spec.rb
kuztuscms-0.0.4 spec/routing/kuztuscms/articles_routing_spec.rb
kuztuscms-0.0.3 spec/routing/kuztuscms/articles_routing_spec.rb
kuztuscms-0.0.2 spec/routing/kuztuscms/articles_routing_spec.rb
kuztuscms-0.0.1 spec/routing/kuztuscms/articles_routing_spec.rb