From 4dc34b54e31f14bfe75b53bfc2a82f0453adc733 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Fri, 18 Dec 2015 00:14:03 +0100 Subject: [PATCH] enable routes for receive --- 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 75ee044..21482c4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,7 @@ DiasporaFederation::Engine.routes.draw do controller :receive do - post "receive-new/public" => :public, :as => "receive_public" - post "receive-new/users/:guid" => :private, :as => "receive_private" + post "receive/public" => :public, :as => "receive_public" + post "receive/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 4f72070..87a53b9 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-new/public").to route_to( + expect(post: "/receive/public").to route_to( controller: "diaspora_federation/receive", action: "public" ) end it "routes POST private" do - expect(post: "/receive-new/users/1234").to route_to( + expect(post: "/receive/users/1234").to route_to( controller: "diaspora_federation/receive", action: "private", guid: "1234"