mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-17 19:26:48 +00:00
16 lines
375 B
Ruby
16 lines
375 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
RSpec.describe GroupsController do
|
|
render_views
|
|
|
|
let!(:enterprise) { create(:distributor_enterprise) }
|
|
let!(:group) { create(:enterprise_group, enterprises: [enterprise], on_front_page: true) }
|
|
|
|
it "loads all enterprises for group" do
|
|
get :index
|
|
expect(response.body).to have_text enterprise.id
|
|
end
|
|
end
|