Sha256: 39ead3024d11ca238b245d0d02f81496daada25cbd4324fe39b5a750c0623d6f

Contents?: true

Size: 811 Bytes

Versions: 2

Compression:

Stored size: 811 Bytes

Contents

require 'spec_helper'

RSpec.describe Rumour do
  describe '.configure' do
    before do
      described_class.configure do |config|
        config.api_key = 'some_api_key'
        config.access_token = 'some_access_token'
        config.intercept_text_message_recipient = '+14108675309'
        config.intercept_push_notification_recipient = 'push_recipient'
      end
    end

    it 'assigns the authentication credentials' do
      expect(described_class.configuration.api_key).to eq('some_api_key')
      expect(described_class.configuration.access_token).to eq('some_access_token')
      expect(described_class.configuration.intercept_text_message_recipient).to eq('+14108675309')
      expect(described_class.configuration.intercept_push_notification_recipient).to eq('push_recipient')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rumour-ruby-0.0.7 spec/configuration_spec.rb
rumour-ruby-0.0.6 spec/configuration_spec.rb