change unused receive routes temporarely to /receive-new

This commit is contained in:
Benjamin Neff 2015-06-27 19:30:40 +02:00
parent b9d8ab0b38
commit 49739327aa
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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"