Sha256: c152d18fbad20239def7940cab7cdfc678f5c6e46fd47668805f255cbd75729d
Contents?: true
Size: 461 Bytes
Versions: 9
Compression:
Stored size: 461 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '../../spec_helper') describe "DelayedJobJob" do describe "perform" do it "should purge the parameter" do require File.expand_path('lib/lacquer/delayed_job_job') @varnish_mock = double('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
9 entries across 9 versions & 1 rubygems