Sha256: c14be4d869f8458d06dc47554fd9e53e18756a1bcb9c194141a9778606270d36
Contents?: true
Size: 596 Bytes
Versions: 17
Compression:
Stored size: 596 Bytes
Contents
require "spec_helper" describe Pubnub do around :each do |example| example.run_with_retry retry: 10 end context "version" do it "has VERSION" do expect(Pubnub::VERSION).to match(/\d+\.\d+\..+/) end end context "logger" do it "is settable" do logger = Logger.new("pubnub.log") _pubnub = Pubnub.new(subscribe_key: "valid", logger: logger) expect(Pubnub.logger).to be logger end it "is set by default if not provided" do _pubnub = Pubnub.new(subscribe_key: "valid") expect(Pubnub.logger.class).to be Logger end end end
Version data entries
17 entries across 17 versions & 1 rubygems