Commit 50c77d67 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Correctly validate if a middleware is not called

This is a small bugfix in this spec, we weren't checking if the
correct middleware was skipped.
parent da7ac0e1
......@@ -68,7 +68,7 @@ describe Gitlab::SidekiqMiddleware do
end
disabled_sidekiq_middlewares.each do |middleware|
expect_any_instance_of(Gitlab::SidekiqMiddleware::ArgumentsLogger).not_to receive(:call)
expect_any_instance_of(middleware).not_to receive(:call)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment