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

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