Guest User

Untitled

a guest
Jul 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. descreva "Faturas bancárias", tipo => :request faça
  2.  
  3.    "listar todas as contas de usuário" faça
  4.      user = FactoryBot.create (:user, user_id: "abcd")
  5.      FactoryBot.create (:bill, user_id: user.id, valor: 300, data: "15/06/2018")
  6.     
  7.      cabeçalhos = {"ACCEPT" => "application / json"}
  8.     
  9.      get "/bills", {: params => {: user_id => "abcd"}}, cabeçalhos
  10.  
  11.      esperar que o content_type da resposta seja ("application / json")
  12.      esperar que o corpo da resposta inclua ("{bills: [{value: 300, date:" 15/06/2018 "}]}")
  13.    fim
  14.  
  15. fim
Add Comment
Please, Sign In to add comment