Sha256: 5207479b7b9756ad007c363e639c2bfa1f6b74ce5099ed8ff0dd52ddde995789

Contents?: true

Size: 726 Bytes

Versions: 3

Compression:

Stored size: 726 Bytes

Contents

require 'spec_helper'

RSpec.describe Phaxio do
  subject { Phaxio }

  it 'sets the api key' do
    subject.api_key = 'test-api-key'
    expect(subject.api_key).to eq('test-api-key')
  end

  it 'sets the api secret' do
    subject.api_secret = 'test-api-secret'
    expect(subject.api_secret).to eq('test-api-secret')
  end

  it 'sets the webhook token' do
    subject.webhook_token = 'test-webhook-token'
    expect(subject.webhook_token).to eq('test-webhook-token')
  end

  it 'sets and gets the webhook token as callback_token' do
    subject.callback_token = 'test-callback-token'
    expect(subject.callback_token).to eq('test-callback-token')
    expect(subject.webhook_token).to eq('test-callback-token')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phaxio-2.1.2 spec/phaxio_spec.rb
phaxio-2.1.1 spec/phaxio_spec.rb
phaxio-2.1.0 spec/phaxio_spec.rb