Sha256: fe7e99d6d09e2d5268172085be4103d8022d980fe2a676453a4ced2acfd6f1ce

Contents?: true

Size: 460 Bytes

Versions: 9

Compression:

Stored size: 460 Bytes

Contents

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

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

      @varnish_mock = double('varnish')
      Lacquer::Varnish.stub(:new).and_return(@varnish_mock)

      @varnish_mock.should_receive(:purge).with('/').exactly(1).times
      Lacquer::SidekiqWorker.new.perform('/')
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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