Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it "should show a waiting message until invoice is successefully paid" do
- @invoice = Fabricate(:invoice) { status "pending" }
- get :receive_payment, :secure_id => @invoice.to_secure_id
- response.should render_template ('invoice/receive_payment')
- end
- it "should redirect to invoice if status = paid " do
- @invoice = Fabricate(:invoice) { status "paid" }
- get :receive_payment, :secure_id => @invoice.to_secure_id
- response.should redirect_to(view_invoice_url)
- end
Add Comment
Please, Sign In to add comment