Remove extraneous authentication routes.

This commit is contained in:
Miles Gould
2015-01-11 11:46:17 +00:00
parent 401f3e176e
commit e25bb5578a
2 changed files with 1 additions and 22 deletions

View File

@@ -8,7 +8,7 @@ Growstuff::Application.routes.draw do
resources :photos
resources :authentications
resources :authentications, :only => [:create, :destroy]
resources :plantings
get '/plantings/owner/:owner' => 'plantings#index', :as => 'plantings_by_owner'

View File

@@ -2,31 +2,10 @@ require "rails_helper"
describe AuthenticationsController do
describe "routing" do
it "routes to #index" do
get("/authentications").should route_to("authentications#index")
end
it "routes to #new" do
get("/authentications/new").should route_to("authentications#new")
end
it "routes to #show" do
get("/authentications/1").should route_to("authentications#show", :id => "1")
end
it "routes to #edit" do
get("/authentications/1/edit").should route_to("authentications#edit", :id => "1")
end
it "routes to #create" do
post("/authentications").should route_to("authentications#create")
end
it "routes to #update" do
put("/authentications/1").should route_to("authentications#update", :id => "1")
end
it "routes to #destroy" do
delete("/authentications/1").should route_to("authentications#destroy", :id => "1")
end