Sha256: b7a49cead1d1cafc6bbfbe043460f369710ce3043d327de068c11513dd98299c
Contents?: true
Size: 397 Bytes
Versions: 12
Compression:
Stored size: 397 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '../../spec_helper') describe "DelayedJobJob" do describe "perform" do it "should purge the parameter" do @varnish_mock = mock('varnish') Lacquer::Varnish.stub!(:new).and_return(@varnish_mock) @varnish_mock.should_receive(:purge).with('/').exactly(1).times Lacquer::DelayedJobJob.new('/').perform end end end
Version data entries
12 entries across 12 versions & 2 rubygems