Remove tests that reference removed code

This commit is contained in:
Matt-Yorkley
2019-05-09 11:34:00 +01:00
parent d5bd058754
commit 4155b17633
2 changed files with 2 additions and 41 deletions

View File

@@ -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