test/test_cache_utils.rb in lacquer-0.2.1 vs test/test_cache_utils.rb in lacquer-0.2.2

- old
+ new

@@ -5,11 +5,13 @@ @controller = ControllerClass.new end context "when job backend is :none" do should "take paths to clear cache for" do + varnish_stub = mock('Varnish') + Lacquer::Varnish.stubs('new').returns(varnish_stub) + varnish_stub.expects(:purge).twice Lacquer.configuration.job_backend = :none - Lacquer::VarnishInterface.expects(:send_command).twice @controller.clear_cache_for('/', '/blog/posts') end end context "when job backend is :delayed_job" do