Sha256: 2ee0794807cb3fff5679716822b5be4c4fed289e41cf3fcdbfd07014e9a26b0c

Contents?: true

Size: 443 Bytes

Versions: 3

Compression:

Stored size: 443 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '../../spec_helper')

describe "ResqueJob" do
  describe "perform" do
    it "should purge the parameter" do
      require File.expand_path('lib/lacquer/resque_job')

      @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

3 entries across 3 versions & 1 rubygems

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