Remove extraneous authentication routes.

This commit is contained in:
Miles Gould committed 2015-01-11 11:57:13 +00:00
1 parent 401f3e176e
commit e25bb5578a
2 files changed
+1 -22

No files matched your search

+1 -1
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'
@@ -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