apocryphal icon indicating copy to clipboard operation
apocryphal copied to clipboard

assert_match

Open coryodaniel opened this issue 9 years ago • 0 comments

Add support for doing a match using the Swagger example and the HTTP Response (parsed). Options (:except, :only)

   test "Strict kitten making", %{swagger: swagger} do
     swagger
       |> Transaction.build(@mime, :post, "/kittens", 200)
       |> put_in([:request, :body], %{name: "Chuancy", type: "cat"})
       |> assert_match(except: [:inserted_at, :updated_at])
   end

coryodaniel avatar Sep 27 '16 02:09 coryodaniel