spec/paypal/exception/api_error_spec.rb in ianfleeton-paypal-express-0.8.2 vs spec/paypal/exception/api_error_spec.rb in ianfleeton-paypal-express-0.8.3
- old
+ new
@@ -86,9 +86,17 @@
subject { super().message }
it { is_expected.to eq("PayPal API Error") }
end
end
+ context 'when refund failure params given' do
+ let(:params) { { REFUNDSTATUS: 'None' } }
+ describe 'error.response.refund_status' do
+ subject { error.response.refund_status }
+ it { should eq 'None' }
+ end
+ end
+
context 'otherwise' do
subject { error }
let(:params) { 'Failure' }
describe '#response' do