Skip to content

Commit 2e00239

Browse files
committed
[pull-request] Test push.default=upstream + no upstream config
#189 (comment)
1 parent 12083a5 commit 2e00239

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

features/pull_request.feature

+15
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,21 @@ Feature: hub pull-request
946946
When I successfully run `hub pull-request -m hereyougo`
947947
Then the output should contain exactly "the://url\n"
948948

949+
Scenario: Current branch is pushed to remote without upstream configuration
950+
Given git "push.default" is set to "upstream"
951+
And I am on the "feature" branch pushed to "origin/feature"
952+
Given the GitHub API server:
953+
"""
954+
post('/repos/mislav/coral/pulls') {
955+
assert :base => 'master',
956+
:head => 'mislav:feature'
957+
status 201
958+
json :html_url => "the://url"
959+
}
960+
"""
961+
When I successfully run `hub pull-request -m hereyougo`
962+
Then the output should contain exactly "the://url\n"
963+
949964
Scenario: Branch with quotation mark in name
950965
Given I am on the "feat'ure" branch with upstream "origin/feat'ure"
951966
Given the GitHub API server:

0 commit comments

Comments
 (0)