stub realistic seller message
This commit is contained in:
parent
9acaf51307
commit
2d75d6286f
|
@ -38,7 +38,7 @@ module DiscourseDonations
|
||||||
let(:stripe) { ::Stripe::Charge }
|
let(:stripe) { ::Stripe::Charge }
|
||||||
|
|
||||||
it 'has no rewards' do
|
it 'has no rewards' do
|
||||||
stripe.expects(:create).returns({ bummer: true })
|
stripe.expects(:create).returns({ outcome: { seller_message: 'bummer' } })
|
||||||
post :create
|
post :create
|
||||||
expect(response_rewards).to eq({})
|
expect(response_rewards).to eq({})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue