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

Version Path
lacquer-0.5.5 spec/lacquer/resque_job_spec.rb
lacquer-0.5.4 spec/lacquer/resque_job_spec.rb
lacquer-0.5.3 spec/lacquer/resque_job_spec.rb
lacquer-0.5.2 spec/lacquer/resque_job_spec.rb
lacquer-0.5.1 spec/lacquer/resque_job_spec.rb
lacquer-0.5.0.beta4 spec/lacquer/resque_job_spec.rb
lacquer-0.5.0.beta3 spec/lacquer/resque_job_spec.rb
lacquer-0.5.0.beta2 spec/lacquer/resque_job_spec.rb
lacquer-0.5.0.beta1 spec/lacquer/resque_job_spec.rb
hakon-lacquer-0.4.1 spec/lacquer/resque_job_spec.rb
lacquer-0.4.1 spec/lacquer/resque_job_spec.rb
lacquer-0.4.0 spec/lacquer/resque_job_spec.rb