Sha256: c14111e260cae9087abb9b8854a839bc3d9e666c32d306f92888bed38eca7522
Contents?: true
Size: 385 Bytes
Versions: 12
Compression:
Stored size: 385 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '../../spec_helper') describe "ResqueJob" 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::ResqueJob.perform('/') end end end
Version data entries
12 entries across 12 versions & 2 rubygems