Welcome to mirror list, hosted at ThFree Co, Russian Federation.

user_project_access_changed_service_spec.rb « services « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b4efe7de4318cc64147ed9ba6423076861468889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require 'spec_helper'

describe UserProjectAccessChangedService do
  describe '#execute' do
    it 'schedules the user IDs' do
      expect(AuthorizedProjectsWorker).to receive(:bulk_perform_and_wait).
        with([[1], [2]])

      described_class.new([1, 2]).execute
    end
  end
end