2023-04-23 21:23:45 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe Members::BaseService, feature_category: :projects do
|
|
|
|
let_it_be(:access_requester) { create(:group_member) }
|
|
|
|
|
|
|
|
describe '#resolve_access_request_todos' do
|
|
|
|
it 'calls the resolve_access_request_todos of todo service' do
|
|
|
|
expect_next_instance_of(TodoService) do |todo_service|
|
|
|
|
expect(todo_service)
|
2023-07-09 08:55:56 +05:30
|
|
|
.to receive(:resolve_access_request_todos).with(access_requester)
|
2023-04-23 21:23:45 +05:30
|
|
|
end
|
|
|
|
|
2023-07-09 08:55:56 +05:30
|
|
|
described_class.new.send(:resolve_access_request_todos, access_requester)
|
2023-04-23 21:23:45 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|