Skip to content

Commit

Permalink
[pull-request] Test push.default=upstream + no upstream config
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Jul 2, 2019
1 parent 12083a5 commit 2e00239
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions features/pull_request.feature
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,21 @@ Feature: hub pull-request
When I successfully run `hub pull-request -m hereyougo`
Then the output should contain exactly "the://url\n"

Scenario: Current branch is pushed to remote without upstream configuration
Given git "push.default" is set to "upstream"
And I am on the "feature" branch pushed to "origin/feature"
Given the GitHub API server:
"""
post('/repos/mislav/coral/pulls') {
assert :base => 'master',
:head => 'mislav:feature'
status 201
json :html_url => "the://url"
}
"""
When I successfully run `hub pull-request -m hereyougo`
Then the output should contain exactly "the://url\n"

Scenario: Branch with quotation mark in name
Given I am on the "feat'ure" branch with upstream "origin/feat'ure"
Given the GitHub API server:
Expand Down

0 comments on commit 2e00239

Please sign in to comment.