Sha256: 989eec9d309693303c5bd1a9249155738a1e59f84667111c575eb6fadd8daf41

Contents?: true

Size: 558 Bytes

Versions: 2

Compression:

Stored size: 558 Bytes

Contents

require 'spec_helper'

describe SuckerPunch do
  describe 'logger' do
    it "delegates get to Celluloid's logger" do
      expect(SuckerPunch.logger).to eq Celluloid.logger
    end

    it "delegates set to Celluloid's logger" do
      expect(Celluloid).to receive(:logger=)
      SuckerPunch.logger = nil
    end
  end

  describe '.clear_queues' do
    it "clears SuckerPunch queues" do
      allow(SuckerPunch::Queue).to receive(:clear_all)

      SuckerPunch.clear_queues

      expect(SuckerPunch::Queue).to have_received(:clear_all)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sucker_punch-1.5.1 spec/sucker_punch_spec.rb
sucker_punch-1.5.0 spec/sucker_punch_spec.rb