require 'spec_helper' RSpec.describe Public::Country do describe 'getting a list of supported countries' do let(:action) { Public::Country.list } let(:params) { {} } around do |example| VCR.use_cassette('resources/public/country/list') do example.run end end 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