Skip to content

Commit

Permalink
rake standard:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leklund committed Nov 2, 2023
1 parent 75feec7 commit 53b9b92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/sidekiq_prometheus/job_metrics_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def prometheus_labels
# execution order) that we remove it so we can test the fallback
# behavior.
if defined?(Sidekiq::Limiter)
Sidekiq.send(:remove_const, :"Limiter")
Sidekiq.send(:remove_const, :Limiter)
end
end

Expand All @@ -47,7 +47,7 @@ def prometheus_labels
expect(registry).not_to have_received(:get).with(:sidekiq_job_success)

expect(metric).to have_received(:increment).once.with(labels: labels)
expect(metric).to have_received(:increment).once.with(labels: labels.merge(error_class: 'StandardError'))
expect(metric).to have_received(:increment).once.with(labels: labels.merge(error_class: "StandardError"))
expect(metric).not_to have_received(:observe)
end
end
Expand Down

0 comments on commit 53b9b92

Please sign in to comment.