diaspora_federation/spec/routing/receive_routing_spec.rb
Benjamin Neff 1dfe57ea7e
Add frozen_string_literal to all files
and remove redundant freezes
2019-10-21 03:11:12 +02:00

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