diff options
author | Diego Silva <diego.silva@live.com> | 2019-05-04 12:11:06 +0300 |
---|---|---|
committer | Diego Silva <diego.silva@live.com> | 2019-05-09 18:54:20 +0300 |
commit | 091b15b7421374df4e06bfdb91bef6a0c36072cf (patch) | |
tree | 9326d025e1a1e356f28847f698fcd9751f986364 /spec/workers/detect_repository_languages_worker_spec.rb | |
parent | 389de5e1e49f19ecdcad72992cfe8884b9fc7e60 (diff) |
Change DetectRepositoryLanguagesWorker to not receive user
Fixes #60425
Diffstat (limited to 'spec/workers/detect_repository_languages_worker_spec.rb')
-rw-r--r-- | spec/workers/detect_repository_languages_worker_spec.rb | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/spec/workers/detect_repository_languages_worker_spec.rb b/spec/workers/detect_repository_languages_worker_spec.rb index dbf32555985..755eb8dbf6b 100644 --- a/spec/workers/detect_repository_languages_worker_spec.rb +++ b/spec/workers/detect_repository_languages_worker_spec.rb @@ -4,7 +4,6 @@ require 'spec_helper' describe DetectRepositoryLanguagesWorker do set(:project) { create(:project) } - let(:user) { project.owner } subject { described_class.new } @@ -14,19 +13,13 @@ describe DetectRepositoryLanguagesWorker do allow(::Projects::DetectRepositoryLanguagesService).to receive(:new).and_return(service) expect(service).to receive(:execute) - subject.perform(project.id, user.id) + subject.perform(project.id) end context 'when invalid ids are used' do it 'does not raise when the project could not be found' do expect do - subject.perform(-1, user.id) - end.not_to raise_error - end - - it 'does not raise when the user could not be found' do - expect do - subject.perform(project.id, -1) + subject.perform(-1) end.not_to raise_error end end |