Fix CI failure in Ticket::Article request spec caused by limiting agent_user groups

This commit is contained in:
Ryan Lue 2019-02-04 17:42:06 +08:00
parent 9f33ca5c0a
commit a4281154d1

View file

@ -5,10 +5,10 @@ RSpec.describe 'Ticket Article', type: :request do
let(:admin_user) do
create(:admin_user)
end
let(:group) { create(:group) }
let!(:group) { create(:group) }
let(:agent_user) do
create(:agent_user, groups: [Group.lookup(name: 'Users'), group])
create(:agent_user, groups: Group.all)
end
let(:customer_user) do
create(:customer_user)