Sha256: 0ca5f7013015fba2eda1d39b51bb06ea9fb37c2c345b88eea837d48350996cfb

Contents?: true

Size: 444 Bytes

Versions: 9

Compression:

Stored size: 444 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 = double('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

9 entries across 9 versions & 1 rubygems

Version Path
lacquer-0.6.7.pre.alpha1 spec/lacquer/resque_job_spec.rb
lacquer-0.6.7.pre.alpha spec/lacquer/resque_job_spec.rb
lacquer-0.6.6 spec/lacquer/resque_job_spec.rb
lacquer-0.6.5 spec/lacquer/resque_job_spec.rb
lacquer-0.6.4 spec/lacquer/resque_job_spec.rb
lacquer-0.6.3 spec/lacquer/resque_job_spec.rb
lacquer-0.6.2 spec/lacquer/resque_job_spec.rb
lacquer-0.6.1 spec/lacquer/resque_job_spec.rb
lacquer-0.6.0 spec/lacquer/resque_job_spec.rb