mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove tests that reference removed code
This commit is contained in:
@@ -2,13 +2,9 @@ require 'spec_helper'
|
||||
|
||||
describe GroupsController, type: :controller do
|
||||
render_views
|
||||
let(:enterprise) { create(:distributor_enterprise) }
|
||||
|
||||
let!(:enterprise) { create(:distributor_enterprise) }
|
||||
let!(:group) { create(:enterprise_group, enterprises: [enterprise], on_front_page: true) }
|
||||
it "gets all visible groups" do
|
||||
allow(EnterpriseGroup).to receive_message_chain :on_front_page, :by_position
|
||||
expect(EnterpriseGroup).to receive :on_front_page
|
||||
get :index
|
||||
end
|
||||
|
||||
it "loads all enterprises for group" do
|
||||
get :index
|
||||
|
||||
Reference in New Issue
Block a user