spec/resources/public/country_spec.rb in phaxio-2.1.0.pre vs spec/resources/public/country_spec.rb in phaxio-2.1.0
- old
+ new
@@ -1,16 +1,10 @@
require 'spec_helper'
RSpec.describe Public::Country do
- describe 'getting a list of supported countries' do
+ describe 'getting a list of supported countries', vcr: 'public/country/list' 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