diff --git a/config/routes.rb b/config/routes.rb index 3d8c0b1ce..ceca68687 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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' diff --git a/spec/routing/authentications_routing_spec.rb b/spec/routing/authentications_routing_spec.rb index db574d686..5d907428f 100644 --- a/spec/routing/authentications_routing_spec.rb +++ b/spec/routing/authentications_routing_spec.rb @@ -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