Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- descreva "Faturas bancárias", tipo => :request faça
- "listar todas as contas de usuário" faça
- user = FactoryBot.create (:user, user_id: "abcd")
- FactoryBot.create (:bill, user_id: user.id, valor: 300, data: "15/06/2018")
- cabeçalhos = {"ACCEPT" => "application / json"}
- get "/bills", {: params => {: user_id => "abcd"}}, cabeçalhos
- esperar que o content_type da resposta seja ("application / json")
- esperar que o corpo da resposta inclua ("{bills: [{value: 300, date:" 15/06/2018 "}]}")
- fim
- fim
Add Comment
Please, Sign In to add comment