mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-18 00:17:25 +00:00
The `feature` and `scenario` names are aliases only available in feature specs and not needed. It's confusing to have different names and we can easily move feature specs to system specs when using standard names.
15 lines
401 B
Ruby
15 lines
401 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
describe 'sitemap' do
|
|
let(:enterprise) { create(:distributor_enterprise) }
|
|
let!(:group) { create(:enterprise_group, enterprises: [enterprise], on_front_page: true) }
|
|
|
|
it "renders sitemap" do
|
|
visit '/sitemap.xml'
|
|
expect(page).to have_content enterprise_shop_url(enterprise)
|
|
expect(page).to have_content group_url(group)
|
|
end
|
|
end
|