Sha256: 84620b01e1887b5a4f7ea3d3b4c66917881b10b400d39b70f46b0d95dfb51bac

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

require 'nuge'

describe Nuge do
  describe '.configure 'do
    it 'applies the provided block to the pusher class' do
      client = Object.new

      Nuge.configure do |config|
        config.clients = [client]
      end

      expect(Nuge::Pusher.clients).to include(client)
    end
  end

  describe '.pusher' do
    it 'provides a shortcut to creating a pusher instance' do
      expect(Nuge.pusher).to be_instance_of(Nuge::Pusher)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nuge-0.1.0 spec/nuge_spec.rb