stub realistic seller message

This commit is contained in:
Rimian Perkins 2017-04-24 06:31:18 +10:00
parent 9acaf51307
commit 2d75d6286f
1 changed files with 1 additions and 1 deletions

View File

@ -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