Sha256: 71128c347ea791414fb610324dae89919c5691358ddb474a44c08660008abb1f

Contents?: true

Size: 489 Bytes

Versions: 3

Compression:

Stored size: 489 Bytes

Contents

require 'spec_helper'

RSpec.describe Public::Country do
  describe 'getting a list of supported countries', vcr: 'public/country/list' do
    let(:action) { Public::Country.list }
    let(:params) { {} }

    it 'makes the request to Phaxio' do
      expect_api_request :get, 'public/countries', params
      action
    end

    it 'returns a collection of supported country resources' do
      result = action
      expect(result).to be_a(Phaxio::Resource::Collection)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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