22 lines
556 B
Ruby
22 lines
556 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|