handle the response in the controller

This commit is contained in:
Rimian Perkins
2017-05-02 10:02:07 +10:00
parent a9d59d721f
commit e2a12a1b11
4 changed files with 2 additions and 9 deletions
@@ -79,7 +79,7 @@ module DiscourseDonations
end
it 'has no rewards' do
stripe.expects(:create).returns({ outcome: { seller_message: 'bummer' } })
stripe.expects(:create).returns({ 'outcome' => { 'seller_message' => 'bummer' } })
post :create
expect(response_rewards).to be_empty
end