docbrown/spec/workers/bust_cache_path_worker_spec.rb
Alex f70af66258
Update bust to EdgeCache::Bust (#12052)
* Update bust to EdgeCache::Bust

* Update specs

* Fix more specs

* Fix more specs :)
2020-12-29 09:53:15 +01:00

17 lines
430 B
Ruby

require "rails_helper"
RSpec.describe BustCachePathWorker, type: :worker do
let(:worker) { subject }
include_examples "#enqueues_on_correct_queue", "high_priority"
describe "#perform" do
let(:path) { "/foo" }
it "busts cache for given path" do
allow(EdgeCache::Bust).to receive(:call).with(path)
worker.perform(path)
expect(EdgeCache::Bust).to have_received(:call).with(path)
end
end
end