From 49739327aa6c8edf5345a2701ee591807d59d679 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sat, 27 Jun 2015 19:30:40 +0200 Subject: [PATCH] change unused receive routes temporarely to /receive-new --- config/routes.rb | 4 ++-- spec/routing/receive_routing_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 64369d3..1da5a0b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,7 @@ DiasporaFederation::Engine.routes.draw do controller :receive do - post "receive/public" => :public, :as => "receive_public" - post "receive/users/:guid" => :private, :as => "receive_private" + post "receive-new/public" => :public, :as => "receive_public" + post "receive-new/users/:guid" => :private, :as => "receive_private" end controller :webfinger do diff --git a/spec/routing/receive_routing_spec.rb b/spec/routing/receive_routing_spec.rb index 87a53b9..4f72070 100644 --- a/spec/routing/receive_routing_spec.rb +++ b/spec/routing/receive_routing_spec.rb @@ -3,14 +3,14 @@ module DiasporaFederation routes { DiasporaFederation::Engine.routes } it "routes POST public" do - expect(post: "/receive/public").to route_to( + expect(post: "/receive-new/public").to route_to( controller: "diaspora_federation/receive", action: "public" ) end it "routes POST private" do - expect(post: "/receive/users/1234").to route_to( + expect(post: "/receive-new/users/1234").to route_to( controller: "diaspora_federation/receive", action: "private", guid: "1234"