2020-09-14 11:09:28 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe Resolvers::GroupMembersResolver do
|
|
|
|
include GraphqlHelpers
|
|
|
|
|
2020-11-09 19:08:52 -05:00
|
|
|
specify do
|
|
|
|
expect(described_class).to have_nullable_graphql_type(Types::GroupMemberType.connection_type)
|
|
|
|
end
|
|
|
|
|
2020-09-14 11:09:28 -04:00
|
|
|
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
|