Sha256: 16406d9a351c4498d01bf697d96bcb1364fdacff7dd05081d8bfbea30f8dae73

Contents?: true

Size: 617 Bytes

Versions: 10

Compression:

Stored size: 617 Bytes

Contents

require 'spec_helper'

describe Pushbullet do
  describe '::api_token=' do
    before { described_class.api_token = nil }
    after { described_class.api_token = 'DhOX5Q8Fps9mq4g90yfrfioRPyo1qQRd' }
    context 'given an api_token' do
      let(:token) { 'nice_try' }

      it 'sets the Pushbullet api token' do
        expect {
          described_class.api_token = token
        }.to change { described_class.api_token }.from(nil).to(token)
      end
    end
  end

  describe '::client' do
    it 'returns a Pushbullet::Client' do
      expect(described_class.client).to be_a Pushbullet::Client
    end
  end
end

Version data entries

10 entries across 8 versions & 2 rubygems

Version Path
tdiary-5.0.5 vendor/bundle/gems/ruby-pushbullet-0.1.4/spec/pushbullet_spec.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/ruby-pushbullet-0.1.4/spec/pushbullet_spec.rb
tdiary-5.0.4 vendor/bundle/gems/ruby-pushbullet-0.1.4/spec/pushbullet_spec.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/ruby-pushbullet-0.1.4/spec/pushbullet_spec.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/ruby-pushbullet-0.1.4/spec/pushbullet_spec.rb
ruby-pushbullet-0.1.4 spec/pushbullet_spec.rb
ruby-pushbullet-0.1.3 spec/pushbullet_spec.rb
ruby-pushbullet-0.1.2 spec/pushbullet_spec.rb
ruby-pushbullet-0.1.1 spec/pushbullet_spec.rb
ruby-pushbullet-0.1 spec/pushbullet_spec.rb