Guest User

Untitled

a guest
Jun 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. it "should show a waiting message until invoice is successefully paid" do
  2. @invoice = Fabricate(:invoice) { status "pending" }
  3. get :receive_payment, :secure_id => @invoice.to_secure_id
  4. response.should render_template ('invoice/receive_payment')
  5.  
  6. end
  7.  
  8. it "should redirect to invoice if status = paid " do
  9. @invoice = Fabricate(:invoice) { status "paid" }
  10. get :receive_payment, :secure_id => @invoice.to_secure_id
  11. response.should redirect_to(view_invoice_url)
  12. end
Add Comment
Please, Sign In to add comment