2020-11-24 15:15:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2022-10-11 01:57:18 +05:30
|
|
|
RSpec.describe 'Resolvers::GroupMembersResolver' do
|
2020-11-24 15:15:51 +05:30
|
|
|
include GraphqlHelpers
|
|
|
|
|
2022-10-11 01:57:18 +05:30
|
|
|
let(:described_class) { Resolvers::GroupMembersResolver }
|
|
|
|
|
2021-01-29 00:20:46 +05:30
|
|
|
specify do
|
|
|
|
expect(described_class).to have_nullable_graphql_type(Types::GroupMemberType.connection_type)
|
|
|
|
end
|
|
|
|
|
2020-11-24 15:15:51 +05:30
|
|
|
it_behaves_like 'querying members with a group' do
|
|
|
|
let_it_be(:resource_member) { create(:group_member, user: user_1, group: group_1) }
|
|
|
|
let_it_be(:resource) { group_1 }
|
|
|
|
end
|
|
|
|
end
|