diaspora_federation/spec/routing/webfinger_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

21 lines
547 B
Ruby

# frozen_string_literal: true
module DiasporaFederation
describe ReceiveController, type: :routing do
routes { DiasporaFederation::Engine.routes }
it "routes GET host-meta" do
expect(get: ".well-known/host-meta").to route_to(
controller: "diaspora_federation/webfinger",
action: "host_meta"
)
end
it "routes GET webfinger" do
expect(get: "/.well-known/webfinger").to route_to(
controller: "diaspora_federation/webfinger",
action: "webfinger"
)
end
end
end