提交 037e0689 编写于 作者: S Sean Allred

Add tests for --include-pulls

上级 abeb048c
......@@ -12,6 +12,12 @@ Feature: hub issue
:direction => nil
json [
{ :number => 999,
:title => "First pull",
:state => "open",
:user => { :login => "octocat" },
:pull_request => { },
},
{ :number => 102,
:title => "First issue",
:state => "open",
......@@ -32,6 +38,42 @@ Feature: hub issue
#13 Second issue\n
"""
Scenario: Fetch issues and pull requests
Given the GitHub API server:
"""
get('/repos/github/hub/issues') {
assert :assignee => "Cornwe19",
:sort => nil,
:direction => nil
json [
{ :number => 999,
:title => "First pull",
:state => "open",
:user => { :login => "octocat" },
:pull_request => { },
},
{ :number => 102,
:title => "First issue",
:state => "open",
:user => { :login => "octocat" },
},
{ :number => 13,
:title => "Second issue",
:state => "open",
:user => { :login => "octocat" },
},
]
}
"""
When I successfully run `hub issue -a Cornwe19 --include-pulls`
Then the output should contain exactly:
"""
#999 First pull
#102 First issue
#13 Second issue\n
"""
Scenario: Fetch issues not assigned to any milestone
Given the GitHub API server:
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册