Sha256: ede026bac9a23351b94985258815b855693e108944522ad4a98db09ad1c7ce55
Contents?: true
Size: 456 Bytes
Versions: 3
Compression:
Stored size: 456 Bytes
Contents
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') }.to raise_error(Paypal::Exception::APIError) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
creative-paypal-express-1.4.1 | spec/paypal/ipn_spec.rb |
creative-paypal-express-1.4.0 | spec/paypal/ipn_spec.rb |
creative-paypal-express-1.3.0 | spec/paypal/ipn_spec.rb |