Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
73187801
Commit
73187801
authored
Aug 22, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert adding shared examples for every sidekiq worker
Since this already exists in `every_sidekiq_worker_spec.rb`.
parent
75dca155
Changes
56
Show whitespace changes
Inline
Side-by-side
Showing
56 changed files
with
0 additions
and
120 deletions
+0
-120
spec/support/shared_examples/sidekiq_worker_shared_examples.rb
...support/shared_examples/sidekiq_worker_shared_examples.rb
+0
-10
spec/workers/authorized_projects_worker_spec.rb
spec/workers/authorized_projects_worker_spec.rb
+0
-2
spec/workers/background_migration_worker_spec.rb
spec/workers/background_migration_worker_spec.rb
+0
-2
spec/workers/build_coverage_worker_spec.rb
spec/workers/build_coverage_worker_spec.rb
+0
-2
spec/workers/build_finished_worker_spec.rb
spec/workers/build_finished_worker_spec.rb
+0
-2
spec/workers/build_hooks_worker_spec.rb
spec/workers/build_hooks_worker_spec.rb
+0
-2
spec/workers/build_success_worker_spec.rb
spec/workers/build_success_worker_spec.rb
+0
-2
spec/workers/create_gpg_signature_worker_spec.rb
spec/workers/create_gpg_signature_worker_spec.rb
+0
-2
spec/workers/delete_merged_branches_worker_spec.rb
spec/workers/delete_merged_branches_worker_spec.rb
+0
-2
spec/workers/delete_user_worker_spec.rb
spec/workers/delete_user_worker_spec.rb
+0
-2
spec/workers/email_receiver_worker_spec.rb
spec/workers/email_receiver_worker_spec.rb
+0
-2
spec/workers/emails_on_push_worker_spec.rb
spec/workers/emails_on_push_worker_spec.rb
+0
-2
spec/workers/every_sidekiq_worker_spec.rb
spec/workers/every_sidekiq_worker_spec.rb
+0
-2
spec/workers/expire_build_artifacts_worker_spec.rb
spec/workers/expire_build_artifacts_worker_spec.rb
+0
-2
spec/workers/expire_build_instance_artifacts_worker_spec.rb
spec/workers/expire_build_instance_artifacts_worker_spec.rb
+0
-2
spec/workers/expire_job_cache_worker_spec.rb
spec/workers/expire_job_cache_worker_spec.rb
+0
-2
spec/workers/expire_pipeline_cache_worker_spec.rb
spec/workers/expire_pipeline_cache_worker_spec.rb
+0
-2
spec/workers/git_garbage_collect_worker_spec.rb
spec/workers/git_garbage_collect_worker_spec.rb
+0
-2
spec/workers/gitlab_usage_ping_worker_spec.rb
spec/workers/gitlab_usage_ping_worker_spec.rb
+0
-2
spec/workers/group_destroy_worker_spec.rb
spec/workers/group_destroy_worker_spec.rb
+0
-2
spec/workers/invalid_gpg_signature_update_worker_spec.rb
spec/workers/invalid_gpg_signature_update_worker_spec.rb
+0
-2
spec/workers/merge_worker_spec.rb
spec/workers/merge_worker_spec.rb
+0
-2
spec/workers/namespaceless_project_destroy_worker_spec.rb
spec/workers/namespaceless_project_destroy_worker_spec.rb
+0
-2
spec/workers/new_issue_worker_spec.rb
spec/workers/new_issue_worker_spec.rb
+0
-2
spec/workers/new_merge_request_worker_spec.rb
spec/workers/new_merge_request_worker_spec.rb
+0
-2
spec/workers/new_note_worker_spec.rb
spec/workers/new_note_worker_spec.rb
+0
-2
spec/workers/pipeline_hooks_worker_spec.rb
spec/workers/pipeline_hooks_worker_spec.rb
+0
-2
spec/workers/pipeline_metrics_worker_spec.rb
spec/workers/pipeline_metrics_worker_spec.rb
+0
-2
spec/workers/pipeline_notification_worker_spec.rb
spec/workers/pipeline_notification_worker_spec.rb
+0
-2
spec/workers/pipeline_process_worker_spec.rb
spec/workers/pipeline_process_worker_spec.rb
+0
-2
spec/workers/pipeline_schedule_worker_spec.rb
spec/workers/pipeline_schedule_worker_spec.rb
+0
-2
spec/workers/pipeline_success_worker_spec.rb
spec/workers/pipeline_success_worker_spec.rb
+0
-2
spec/workers/pipeline_update_worker_spec.rb
spec/workers/pipeline_update_worker_spec.rb
+0
-2
spec/workers/post_receive_spec.rb
spec/workers/post_receive_spec.rb
+0
-2
spec/workers/process_commit_worker_spec.rb
spec/workers/process_commit_worker_spec.rb
+0
-2
spec/workers/project_cache_worker_spec.rb
spec/workers/project_cache_worker_spec.rb
+0
-2
spec/workers/project_destroy_worker_spec.rb
spec/workers/project_destroy_worker_spec.rb
+0
-2
spec/workers/propagate_service_template_worker_spec.rb
spec/workers/propagate_service_template_worker_spec.rb
+0
-2
spec/workers/prune_old_events_worker_spec.rb
spec/workers/prune_old_events_worker_spec.rb
+0
-2
spec/workers/reactive_caching_worker_spec.rb
spec/workers/reactive_caching_worker_spec.rb
+0
-2
spec/workers/remove_expired_group_links_worker_spec.rb
spec/workers/remove_expired_group_links_worker_spec.rb
+0
-2
spec/workers/remove_expired_members_worker_spec.rb
spec/workers/remove_expired_members_worker_spec.rb
+0
-2
spec/workers/remove_old_web_hook_logs_worker_spec.rb
spec/workers/remove_old_web_hook_logs_worker_spec.rb
+0
-2
spec/workers/remove_unreferenced_lfs_objects_worker_spec.rb
spec/workers/remove_unreferenced_lfs_objects_worker_spec.rb
+0
-2
spec/workers/repository_fork_worker_spec.rb
spec/workers/repository_fork_worker_spec.rb
+0
-2
spec/workers/repository_import_worker_spec.rb
spec/workers/repository_import_worker_spec.rb
+0
-2
spec/workers/schedule_update_user_activity_worker_spec.rb
spec/workers/schedule_update_user_activity_worker_spec.rb
+0
-2
spec/workers/stuck_ci_jobs_worker_spec.rb
spec/workers/stuck_ci_jobs_worker_spec.rb
+0
-2
spec/workers/stuck_import_jobs_worker_spec.rb
spec/workers/stuck_import_jobs_worker_spec.rb
+0
-2
spec/workers/stuck_merge_jobs_worker_spec.rb
spec/workers/stuck_merge_jobs_worker_spec.rb
+0
-2
spec/workers/system_hook_push_worker_spec.rb
spec/workers/system_hook_push_worker_spec.rb
+0
-2
spec/workers/trending_projects_worker_spec.rb
spec/workers/trending_projects_worker_spec.rb
+0
-2
spec/workers/update_merge_requests_worker_spec.rb
spec/workers/update_merge_requests_worker_spec.rb
+0
-2
spec/workers/update_user_activity_worker_spec.rb
spec/workers/update_user_activity_worker_spec.rb
+0
-2
spec/workers/upload_checksum_worker_spec.rb
spec/workers/upload_checksum_worker_spec.rb
+0
-2
spec/workers/use_key_worker_spec.rb
spec/workers/use_key_worker_spec.rb
+0
-2
No files found.
spec/support/shared_examples/sidekiq_worker_shared_examples.rb
deleted
100644 → 0
View file @
75dca155
shared_examples
'sidekiq worker'
do
let
(
:queues
)
do
YAML
.
load_file
(
Rails
.
root
.
join
(
'config'
,
'sidekiq_queues.yml'
))
.
fetch
(
:queues
,
[]).
map
(
&
:first
)
end
it
'is going to be processed inside a known sidekiq queue'
do
expect
(
described_class
.
sidekiq_options
[
'queue'
].
to_s
).
to
be_in
queues
end
end
spec/workers/authorized_projects_worker_spec.rb
View file @
73187801
...
@@ -47,6 +47,4 @@ describe AuthorizedProjectsWorker do
...
@@ -47,6 +47,4 @@ describe AuthorizedProjectsWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/background_migration_worker_spec.rb
View file @
73187801
...
@@ -41,6 +41,4 @@ describe BackgroundMigrationWorker, :sidekiq do
...
@@ -41,6 +41,4 @@ describe BackgroundMigrationWorker, :sidekiq do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/build_coverage_worker_spec.rb
View file @
73187801
...
@@ -20,6 +20,4 @@ describe BuildCoverageWorker do
...
@@ -20,6 +20,4 @@ describe BuildCoverageWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/build_finished_worker_spec.rb
View file @
73187801
...
@@ -27,6 +27,4 @@ describe BuildFinishedWorker do
...
@@ -27,6 +27,4 @@ describe BuildFinishedWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/build_hooks_worker_spec.rb
View file @
73187801
...
@@ -20,6 +20,4 @@ describe BuildHooksWorker do
...
@@ -20,6 +20,4 @@ describe BuildHooksWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/build_success_worker_spec.rb
View file @
73187801
...
@@ -33,6 +33,4 @@ describe BuildSuccessWorker do
...
@@ -33,6 +33,4 @@ describe BuildSuccessWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/create_gpg_signature_worker_spec.rb
View file @
73187801
...
@@ -36,6 +36,4 @@ describe CreateGpgSignatureWorker do
...
@@ -36,6 +36,4 @@ describe CreateGpgSignatureWorker do
described_class
.
new
.
perform
(
anything
,
nonexisting_project_id
)
described_class
.
new
.
perform
(
anything
,
nonexisting_project_id
)
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/delete_merged_branches_worker_spec.rb
View file @
73187801
...
@@ -16,6 +16,4 @@ describe DeleteMergedBranchesWorker do
...
@@ -16,6 +16,4 @@ describe DeleteMergedBranchesWorker do
expect
(
worker
.
perform
(
'unknown'
,
project
.
owner
.
id
)).
to
be_falsy
expect
(
worker
.
perform
(
'unknown'
,
project
.
owner
.
id
)).
to
be_falsy
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/delete_user_worker_spec.rb
View file @
73187801
...
@@ -17,6 +17,4 @@ describe DeleteUserWorker do
...
@@ -17,6 +17,4 @@ describe DeleteUserWorker do
described_class
.
new
.
perform
(
current_user
.
id
,
user
.
id
,
"test"
=>
"test"
)
described_class
.
new
.
perform
(
current_user
.
id
,
user
.
id
,
"test"
=>
"test"
)
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/email_receiver_worker_spec.rb
View file @
73187801
...
@@ -60,6 +60,4 @@ describe EmailReceiverWorker, :mailer do
...
@@ -60,6 +60,4 @@ describe EmailReceiverWorker, :mailer do
described_class
.
new
.
perform
(
raw_message
)
described_class
.
new
.
perform
(
raw_message
)
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/emails_on_push_worker_spec.rb
View file @
73187801
...
@@ -127,6 +127,4 @@ describe EmailsOnPushWorker, :mailer do
...
@@ -127,6 +127,4 @@ describe EmailsOnPushWorker, :mailer do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/every_sidekiq_worker_spec.rb
View file @
73187801
...
@@ -41,6 +41,4 @@ describe 'Every Sidekiq worker' do
...
@@ -41,6 +41,4 @@ describe 'Every Sidekiq worker' do
expect
(
queue_names
).
to
include
(
worker
.
sidekiq_options
[
'queue'
].
to_s
)
expect
(
queue_names
).
to
include
(
worker
.
sidekiq_options
[
'queue'
].
to_s
)
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/expire_build_artifacts_worker_spec.rb
View file @
73187801
...
@@ -47,6 +47,4 @@ describe ExpireBuildArtifactsWorker do
...
@@ -47,6 +47,4 @@ describe ExpireBuildArtifactsWorker do
Sidekiq
::
Queues
.
jobs_by_worker
[
'ExpireBuildInstanceArtifactsWorker'
]
Sidekiq
::
Queues
.
jobs_by_worker
[
'ExpireBuildInstanceArtifactsWorker'
]
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/expire_build_instance_artifacts_worker_spec.rb
View file @
73187801
...
@@ -74,6 +74,4 @@ describe ExpireBuildInstanceArtifactsWorker do
...
@@ -74,6 +74,4 @@ describe ExpireBuildInstanceArtifactsWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/expire_job_cache_worker_spec.rb
View file @
73187801
...
@@ -28,6 +28,4 @@ describe ExpireJobCacheWorker do
...
@@ -28,6 +28,4 @@ describe ExpireJobCacheWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/expire_pipeline_cache_worker_spec.rb
View file @
73187801
...
@@ -43,6 +43,4 @@ describe ExpirePipelineCacheWorker do
...
@@ -43,6 +43,4 @@ describe ExpirePipelineCacheWorker do
subject
.
perform
(
pipeline
.
id
)
subject
.
perform
(
pipeline
.
id
)
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/git_garbage_collect_worker_spec.rb
View file @
73187801
...
@@ -131,8 +131,6 @@ describe GitGarbageCollectWorker do
...
@@ -131,8 +131,6 @@ describe GitGarbageCollectWorker do
end
end
end
end
it_behaves_like
'sidekiq worker'
# Create a new commit on a random new branch
# Create a new commit on a random new branch
def
create_objects
(
project
)
def
create_objects
(
project
)
rugged
=
project
.
repository
.
rugged
rugged
=
project
.
repository
.
rugged
...
...
spec/workers/gitlab_usage_ping_worker_spec.rb
View file @
73187801
...
@@ -10,6 +10,4 @@ describe GitlabUsagePingWorker do
...
@@ -10,6 +10,4 @@ describe GitlabUsagePingWorker do
subject
.
perform
subject
.
perform
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/group_destroy_worker_spec.rb
View file @
73187801
...
@@ -16,6 +16,4 @@ describe GroupDestroyWorker do
...
@@ -16,6 +16,4 @@ describe GroupDestroyWorker do
expect
(
Dir
.
exist?
(
project
.
path
)).
to
be_falsey
expect
(
Dir
.
exist?
(
project
.
path
)).
to
be_falsey
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/invalid_gpg_signature_update_worker_spec.rb
View file @
73187801
...
@@ -26,6 +26,4 @@ describe InvalidGpgSignatureUpdateWorker do
...
@@ -26,6 +26,4 @@ describe InvalidGpgSignatureUpdateWorker do
described_class
.
new
.
perform
(
nonexisting_gpg_key_id
)
described_class
.
new
.
perform
(
nonexisting_gpg_key_id
)
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/merge_worker_spec.rb
View file @
73187801
...
@@ -38,6 +38,4 @@ describe MergeWorker do
...
@@ -38,6 +38,4 @@ describe MergeWorker do
expect
{
worker
.
perform
(
merge_request
.
id
,
user
.
id
,
{})
}
expect
{
worker
.
perform
(
merge_request
.
id
,
user
.
id
,
{})
}
.
to
change
{
merge_request
.
reload
.
merge_jid
}.
from
(
nil
).
to
(
'999'
)
.
to
change
{
merge_request
.
reload
.
merge_jid
}.
from
(
nil
).
to
(
'999'
)
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/namespaceless_project_destroy_worker_spec.rb
View file @
73187801
...
@@ -76,6 +76,4 @@ describe NamespacelessProjectDestroyWorker do
...
@@ -76,6 +76,4 @@ describe NamespacelessProjectDestroyWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/new_issue_worker_spec.rb
View file @
73187801
...
@@ -51,6 +51,4 @@ describe NewIssueWorker do
...
@@ -51,6 +51,4 @@ describe NewIssueWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/new_merge_request_worker_spec.rb
View file @
73187801
...
@@ -53,6 +53,4 @@ describe NewMergeRequestWorker do
...
@@ -53,6 +53,4 @@ describe NewMergeRequestWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/new_note_worker_spec.rb
View file @
73187801
...
@@ -46,6 +46,4 @@ describe NewNoteWorker do
...
@@ -46,6 +46,4 @@ describe NewNoteWorker do
described_class
.
new
.
perform
(
unexistent_note_id
)
described_class
.
new
.
perform
(
unexistent_note_id
)
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/pipeline_hooks_worker_spec.rb
View file @
73187801
...
@@ -20,6 +20,4 @@ describe PipelineHooksWorker do
...
@@ -20,6 +20,4 @@ describe PipelineHooksWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/pipeline_metrics_worker_spec.rb
View file @
73187801
...
@@ -54,6 +54,4 @@ describe PipelineMetricsWorker do
...
@@ -54,6 +54,4 @@ describe PipelineMetricsWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/pipeline_notification_worker_spec.rb
View file @
73187801
...
@@ -16,6 +16,4 @@ describe PipelineNotificationWorker, :mailer do
...
@@ -16,6 +16,4 @@ describe PipelineNotificationWorker, :mailer do
subject
.
perform
(
Ci
::
Pipeline
.
maximum
(
:id
).
to_i
.
succ
)
subject
.
perform
(
Ci
::
Pipeline
.
maximum
(
:id
).
to_i
.
succ
)
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/pipeline_process_worker_spec.rb
View file @
73187801
...
@@ -19,6 +19,4 @@ describe PipelineProcessWorker do
...
@@ -19,6 +19,4 @@ describe PipelineProcessWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/pipeline_schedule_worker_spec.rb
View file @
73187801
...
@@ -62,6 +62,4 @@ describe PipelineScheduleWorker do
...
@@ -62,6 +62,4 @@ describe PipelineScheduleWorker do
expect
{
subject
}.
not_to
change
{
project
.
pipelines
.
count
}
expect
{
subject
}.
not_to
change
{
project
.
pipelines
.
count
}
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/pipeline_success_worker_spec.rb
View file @
73187801
...
@@ -21,6 +21,4 @@ describe PipelineSuccessWorker do
...
@@ -21,6 +21,4 @@ describe PipelineSuccessWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/pipeline_update_worker_spec.rb
View file @
73187801
...
@@ -19,6 +19,4 @@ describe PipelineUpdateWorker do
...
@@ -19,6 +19,4 @@ describe PipelineUpdateWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/post_receive_spec.rb
View file @
73187801
...
@@ -140,6 +140,4 @@ describe PostReceive do
...
@@ -140,6 +140,4 @@ describe PostReceive do
described_class
.
new
.
perform
(
gl_repository
,
key_id
,
base64_changes
)
described_class
.
new
.
perform
(
gl_repository
,
key_id
,
base64_changes
)
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/process_commit_worker_spec.rb
View file @
73187801
...
@@ -134,6 +134,4 @@ describe ProcessCommitWorker do
...
@@ -134,6 +134,4 @@ describe ProcessCommitWorker do
expect
(
commit
.
authored_date
).
to
be_an_instance_of
(
Time
)
expect
(
commit
.
authored_date
).
to
be_an_instance_of
(
Time
)
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/project_cache_worker_spec.rb
View file @
73187801
...
@@ -87,6 +87,4 @@ describe ProjectCacheWorker do
...
@@ -87,6 +87,4 @@ describe ProjectCacheWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/project_destroy_worker_spec.rb
View file @
73187801
...
@@ -33,6 +33,4 @@ describe ProjectDestroyWorker do
...
@@ -33,6 +33,4 @@ describe ProjectDestroyWorker do
end
.
not_to
raise_error
end
.
not_to
raise_error
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/propagate_service_template_worker_spec.rb
View file @
73187801
...
@@ -26,6 +26,4 @@ describe PropagateServiceTemplateWorker do
...
@@ -26,6 +26,4 @@ describe PropagateServiceTemplateWorker do
subject
.
perform
(
service_template
.
id
)
subject
.
perform
(
service_template
.
id
)
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/prune_old_events_worker_spec.rb
View file @
73187801
...
@@ -23,6 +23,4 @@ describe PruneOldEventsWorker do
...
@@ -23,6 +23,4 @@ describe PruneOldEventsWorker do
expect
(
exactly_12_months_event
).
to
be_present
expect
(
exactly_12_months_event
).
to
be_present
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/reactive_caching_worker_spec.rb
View file @
73187801
...
@@ -12,6 +12,4 @@ describe ReactiveCachingWorker do
...
@@ -12,6 +12,4 @@ describe ReactiveCachingWorker do
subject
subject
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/remove_expired_group_links_worker_spec.rb
View file @
73187801
...
@@ -21,6 +21,4 @@ describe RemoveExpiredGroupLinksWorker do
...
@@ -21,6 +21,4 @@ describe RemoveExpiredGroupLinksWorker do
expect
(
non_expiring_project_group_link
.
reload
).
to
be_present
expect
(
non_expiring_project_group_link
.
reload
).
to
be_present
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/remove_expired_members_worker_spec.rb
View file @
73187801
...
@@ -55,6 +55,4 @@ describe RemoveExpiredMembersWorker do
...
@@ -55,6 +55,4 @@ describe RemoveExpiredMembersWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/remove_old_web_hook_logs_worker_spec.rb
View file @
73187801
...
@@ -15,6 +15,4 @@ describe RemoveOldWebHookLogsWorker do
...
@@ -15,6 +15,4 @@ describe RemoveOldWebHookLogsWorker do
expect
(
WebHookLog
.
all
).
not_to
include
(
week_old_record
,
three_days_old_record
)
expect
(
WebHookLog
.
all
).
not_to
include
(
week_old_record
,
three_days_old_record
)
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/remove_unreferenced_lfs_objects_worker_spec.rb
View file @
73187801
...
@@ -52,6 +52,4 @@ describe RemoveUnreferencedLfsObjectsWorker do
...
@@ -52,6 +52,4 @@ describe RemoveUnreferencedLfsObjectsWorker do
expect
(
LfsObject
.
where
(
id:
referenced_lfs_object2
.
id
)).
to
be_empty
expect
(
LfsObject
.
where
(
id:
referenced_lfs_object2
.
id
)).
to
be_empty
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/repository_fork_worker_spec.rb
View file @
73187801
...
@@ -69,6 +69,4 @@ describe RepositoryForkWorker do
...
@@ -69,6 +69,4 @@ describe RepositoryForkWorker do
expect
(
project
.
reload
.
import_status
).
to
eq
(
'failed'
)
expect
(
project
.
reload
.
import_status
).
to
eq
(
'failed'
)
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/repository_import_worker_spec.rb
View file @
73187801
...
@@ -43,6 +43,4 @@ describe RepositoryImportWorker do
...
@@ -43,6 +43,4 @@ describe RepositoryImportWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/schedule_update_user_activity_worker_spec.rb
View file @
73187801
...
@@ -22,6 +22,4 @@ describe ScheduleUpdateUserActivityWorker, :clean_gitlab_redis_shared_state do
...
@@ -22,6 +22,4 @@ describe ScheduleUpdateUserActivityWorker, :clean_gitlab_redis_shared_state do
subject
.
perform
(
1
)
subject
.
perform
(
1
)
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/stuck_ci_jobs_worker_spec.rb
View file @
73187801
...
@@ -132,6 +132,4 @@ describe StuckCiJobsWorker do
...
@@ -132,6 +132,4 @@ describe StuckCiJobsWorker do
worker
.
perform
worker
.
perform
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/stuck_import_jobs_worker_spec.rb
View file @
73187801
...
@@ -33,6 +33,4 @@ describe StuckImportJobsWorker do
...
@@ -33,6 +33,4 @@ describe StuckImportJobsWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/stuck_merge_jobs_worker_spec.rb
View file @
73187801
...
@@ -47,6 +47,4 @@ describe StuckMergeJobsWorker do
...
@@ -47,6 +47,4 @@ describe StuckMergeJobsWorker do
end
end
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/system_hook_push_worker_spec.rb
View file @
73187801
...
@@ -16,6 +16,4 @@ describe SystemHookPushWorker do
...
@@ -16,6 +16,4 @@ describe SystemHookPushWorker do
subject
.
perform
(
push_data
,
:push_hooks
)
subject
.
perform
(
push_data
,
:push_hooks
)
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/trending_projects_worker_spec.rb
View file @
73187801
...
@@ -8,6 +8,4 @@ describe TrendingProjectsWorker do
...
@@ -8,6 +8,4 @@ describe TrendingProjectsWorker do
described_class
.
new
.
perform
described_class
.
new
.
perform
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/update_merge_requests_worker_spec.rb
View file @
73187801
...
@@ -24,6 +24,4 @@ describe UpdateMergeRequestsWorker do
...
@@ -24,6 +24,4 @@ describe UpdateMergeRequestsWorker do
perform
perform
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/update_user_activity_worker_spec.rb
View file @
73187801
...
@@ -32,6 +32,4 @@ describe UpdateUserActivityWorker, :clean_gitlab_redis_shared_state do
...
@@ -32,6 +32,4 @@ describe UpdateUserActivityWorker, :clean_gitlab_redis_shared_state do
expect
(
Gitlab
::
UserActivities
.
new
.
to_a
).
to
be_empty
expect
(
Gitlab
::
UserActivities
.
new
.
to_a
).
to
be_empty
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/upload_checksum_worker_spec.rb
View file @
73187801
...
@@ -16,6 +16,4 @@ describe UploadChecksumWorker do
...
@@ -16,6 +16,4 @@ describe UploadChecksumWorker do
expect
(
upload
).
to
have_received
(
:save!
)
expect
(
upload
).
to
have_received
(
:save!
)
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
spec/workers/use_key_worker_spec.rb
View file @
73187801
...
@@ -20,6 +20,4 @@ describe UseKeyWorker do
...
@@ -20,6 +20,4 @@ describe UseKeyWorker do
expect
(
worker
.
perform
(
key
.
id
+
1
)).
to
eq
false
expect
(
worker
.
perform
(
key
.
id
+
1
)).
to
eq
false
end
end
end
end
it_behaves_like
'sidekiq worker'
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment