mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-11 18:26:50 +00:00
17 lines
422 B
Ruby
17 lines
422 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe "/.well-known/" do
|
|
describe "dfc/" do
|
|
it "publishes our endpoints" do
|
|
get "/.well-known/dfc/"
|
|
|
|
expect(response).to have_http_status :ok
|
|
expect(response.body).to include "ReadEnterprise"
|
|
expect(response.content_type).to eq "application/json; charset=utf-8"
|
|
expect(response.parsed_body.count).to eq 2
|
|
end
|
|
end
|
|
end
|