Sha256: 34c5852eecd1e0494c1897fa502ebdcdfcafb7b32c6333e5d3ef472e699ed8ec

Contents?: true

Size: 460 Bytes

Versions: 3

Compression:

Stored size: 460 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 = 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

3 entries across 3 versions & 1 rubygems

Version Path
lacquer-0.5.8 spec/lacquer/delayed_job_job_spec.rb
lacquer-0.5.7 spec/lacquer/delayed_job_job_spec.rb
lacquer-0.5.6 spec/lacquer/delayed_job_job_spec.rb