Sha256: 906e83a93a19a2670906c6a3a5328f6a0f1f0b5f5d9b7b94a7b3d8800e0e9a92

Contents?: true

Size: 778 Bytes

Versions: 9

Compression:

Stored size: 778 Bytes

Contents

require "spec_helper"

describe UsersController do
  describe "routing" do

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

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

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

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

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

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

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

  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
mail_manager-3.0.0 spec/test_app/spec/routing/users_routing_spec.rb
mail_manager-0.1.4 spec/test_app/spec/routing/users_routing_spec.rb
mail_manager-0.1.2 spec/test_app/spec/routing/users_routing_spec.rb
mail_manager-0.1.1 spec/test_app/spec/routing/users_routing_spec.rb
mail_manager-0.1.0 spec/test_app/spec/routing/users_routing_spec.rb
mail_manager-0.0.1 spec/test_app/spec/routing/users_routing_spec.rb
stuffer-0.0.2 lib/teststuff/spec/routing/users_routing_spec.rb
stuffer-0.0.1 lib/teststuff/spec/routing/users_routing_spec.rb
genderize-0.0.4 spec/dummy/spec/routing/users_routing_spec.rb