[#41934] fixed unit test

pull/10552/head
Eric Schubert 3 years ago
parent 17ac3781e0
commit 5ad0bdcd4a
No known key found for this signature in database
GPG Key ID: 1D346C019BD4BAA2
  1. 5
      spec/models/queries/principals/principal_query_integrations_spec.rb

@ -31,13 +31,14 @@ require 'spec_helper'
describe Queries::Principals::PrincipalQuery, 'integration', type: :model do
let(:current_user) { create(:user) }
let(:instance) { described_class.new }
let!(:non_member_role) { create(:non_member) }
before do
login_as(current_user)
end
context 'with a member filter' do
let(:project) { create(:project) }
let(:project) { create(:project, public: true) }
let(:role) { create(:role) }
let(:project_user) do
create(:user,
@ -50,7 +51,7 @@ describe Queries::Principals::PrincipalQuery, 'integration', type: :model do
roles: [role])
end
end
let(:other_project) { create(:project) }
let(:other_project) { create(:project, public: true) }
let(:other_project_user) do
create(:user,
member_in_project: other_project,

Loading…
Cancel
Save