From a5c0ac97e24a66112513082f400d3693b9aee40c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Sun, 29 Sep 2019 10:58:21 +0200 Subject: [PATCH] [release] Add a test scenario for `create -F ` --- features/release.feature | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/features/release.feature b/features/release.feature index 6d89c66c..b07f0836 100644 --- a/features/release.feature +++ b/features/release.feature @@ -387,6 +387,32 @@ MARKDOWN https://github.com/mislav/will_paginate/releases/v1.2.0\n """ + Scenario: Create a release from file + Given the GitHub API server: + """ + post('/repos/mislav/will_paginate/releases') { + assert :name => "Epic New Version", + :body => "body\ngoes\n\nhere" + + status 201 + json :html_url => "https://github.com/mislav/will_paginate/releases/v1.2.0" + } + """ + And a file named "message.txt" with: + """ + Epic New Version + + body + goes + + here + """ + When I successfully run `hub release create -F message.txt v1.2.0` + Then the output should contain exactly: + """ + https://github.com/mislav/will_paginate/releases/v1.2.0\n + """ + Scenario: Create a release with target commitish Given the GitHub API server: """ -- GitLab