Skip to content
Snippets Groups Projects
Commit 73187801 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Revert adding shared examples for every sidekiq worker

Since this already exists in `every_sidekiq_worker_spec.rb`.
parent 75dca155
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 48 deletions
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
Loading
Loading
@@ -47,6 +47,4 @@
end
end
end
it_behaves_like 'sidekiq worker'
end
Loading
Loading
@@ -41,6 +41,4 @@
end
end
end
it_behaves_like 'sidekiq worker'
end
Loading
Loading
@@ -20,6 +20,4 @@
end
end
end
it_behaves_like 'sidekiq worker'
end
Loading
Loading
@@ -27,6 +27,4 @@
end
end
end
it_behaves_like 'sidekiq worker'
end
Loading
Loading
@@ -20,6 +20,4 @@
end
end
end
it_behaves_like 'sidekiq worker'
end
Loading
Loading
@@ -33,6 +33,4 @@
end
end
end
it_behaves_like 'sidekiq worker'
end
Loading
Loading
@@ -36,6 +36,4 @@
described_class.new.perform(anything, nonexisting_project_id)
end
end
it_behaves_like 'sidekiq worker'
end
Loading
Loading
@@ -16,6 +16,4 @@
expect(worker.perform('unknown', project.owner.id)).to be_falsy
end
end
it_behaves_like 'sidekiq worker'
end
Loading
Loading
@@ -17,6 +17,4 @@
 
described_class.new.perform(current_user.id, user.id, "test" => "test")
end
it_behaves_like 'sidekiq worker'
end
Loading
Loading
@@ -60,6 +60,4 @@
described_class.new.perform(raw_message)
end
end
it_behaves_like 'sidekiq worker'
end
Loading
Loading
@@ -127,6 +127,4 @@
end
end
end
it_behaves_like 'sidekiq worker'
end
Loading
Loading
@@ -41,6 +41,4 @@
expect(queue_names).to include(worker.sidekiq_options['queue'].to_s)
end
end
it_behaves_like 'sidekiq worker'
end
Loading
Loading
@@ -47,6 +47,4 @@ def jobs_enqueued
Sidekiq::Queues.jobs_by_worker['ExpireBuildInstanceArtifactsWorker']
end
end
it_behaves_like 'sidekiq worker'
end
Loading
Loading
@@ -74,6 +74,4 @@
end
end
end
it_behaves_like 'sidekiq worker'
end
Loading
Loading
@@ -28,6 +28,4 @@
end
end
end
it_behaves_like 'sidekiq worker'
end
Loading
Loading
@@ -43,6 +43,4 @@
subject.perform(pipeline.id)
end
end
it_behaves_like 'sidekiq worker'
end
Loading
Loading
@@ -131,8 +131,6 @@
end
end
 
it_behaves_like 'sidekiq worker'
# Create a new commit on a random new branch
def create_objects(project)
rugged = project.repository.rugged
Loading
Loading
Loading
Loading
@@ -10,6 +10,4 @@
 
subject.perform
end
it_behaves_like 'sidekiq worker'
end
Loading
Loading
@@ -16,6 +16,4 @@
expect(Dir.exist?(project.path)).to be_falsey
end
end
it_behaves_like 'sidekiq worker'
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment