expect{resolve}.toraise_error(Gitlab::Graphql::Errors::ArgumentError,"A maximum of #{described_class::MAXIMUM_PARTICIPANTS} participants can be added")
end
end
end
end
context'when resource is not accessible to the user'do
it'raises an error'do
expect{resolve}.toraise_error(Gitlab::Graphql::Errors::ResourceNotAvailable,"The resource that you are attempting to access does not exist or you don't have permission to perform this action")