From 5f5edb65efe60b11088e596e606105ea144da6a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Fri, 18 Oct 2019 13:10:21 +0200 Subject: [PATCH] [gist] Assert gist payload in tests --- features/gist.feature | 2 ++ 1 file changed, 2 insertions(+) diff --git a/features/gist.feature b/features/gist.feature index b9ca0538..5448b538 100644 --- a/features/gist.feature +++ b/features/gist.feature @@ -97,6 +97,8 @@ Feature: hub gist Given the GitHub API server: """ post('/gists') { + halt 400 unless params[:files]["testfile.txt"]["content"] + halt 400 unless params[:files]["testfile2.txt"]["content"] status 201 json({ :html_url => 'http://gists.github.com/somehash', -- GitLab