提交 5f5edb65 编写于 作者: M Mislav Marohnić

[gist] Assert gist payload in tests

上级 5dd4ac94
......@@ -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',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册