Sha256: 2ee3b6cad9a335113d6e872b18ed086c39a6bd335f85eb050c11c135272e7b5d

Contents?: true

Size: 412 Bytes

Versions: 3

Compression:

Stored size: 412 Bytes

Contents

require 'spec_helper'

RSpec.describe Account do
  describe 'getting account information', vcr: 'account/get' do
    let(:action) { Account.get params }
    let(:params) { {} }

    it 'sends the request to Phaxio' do
      expect_api_request :get, 'account/status', params
      action
    end

    it 'returns an account object' do
      result = action
      expect(result).to be_a(Account)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phaxio-2.1.2 spec/resources/account_spec.rb
phaxio-2.1.1 spec/resources/account_spec.rb
phaxio-2.1.0 spec/resources/account_spec.rb