Sha256: eeb68a2e7a36ccb09af8945e164afa51d43cb3425359dadcb533a56e483c560c
Contents?: true
Size: 482 Bytes
Versions: 23
Compression:
Stored size: 482 Bytes
Contents
require 'spec_helper' describe Paypal::IPN do describe '.verify!' do context 'when valid' do before { fake_response 'IPN/valid', :IPN } subject { Paypal::IPN.verify!('raw-post-body') } it { should be_true } end context 'when invalid' do before { fake_response 'IPN/invalid', :IPN } subject {} it do expect { Paypal::IPN.verify!('raw-post-body') }.should raise_error(Paypal::Exception::APIError) end end end end
Version data entries
23 entries across 23 versions & 1 rubygems