diaspora_federation/spec/routing/receive_routing_spec.rb
2015-12-18 00:14:03 +01:00

20 lines
525 B
Ruby

module DiasporaFederation
describe ReceiveController, type: :routing do
routes { DiasporaFederation::Engine.routes }
it "routes POST public" do
expect(post: "/receive/public").to route_to(
controller: "diaspora_federation/receive",
action: "public"
)
end
it "routes POST private" do
expect(post: "/receive/users/1234").to route_to(
controller: "diaspora_federation/receive",
action: "private",
guid: "1234"
)
end
end
end