Sha256: dd1b24698b77b78846642d302afc1346b31f8a641cc91ba60cae5e0987aee47f
Contents?: true
Size: 1.26 KB
Versions: 3
Compression:
Stored size: 1.26 KB
Contents
Feature: gcli merge @ci-run Scenario: Available commands When I run `gcli merge` Then the exit status should be 0 And the output should contain "merge perform" Scenario: Merge success Given the GitHub API server: """ post('/repos/wycats/thor/merges') { body 'author' => { :login => 'octokit', :id => 1, :url => 'https://api.github.com/users/peter-murach' } status 201 } """ When I successfully run `gcli merge perform wycats thor --base=master --head=cool_feature` Then the stdout should contain "octokit" And the stdout should contain "201" Scenario: Nothing to merge Given the GitHub API server: """ post('/repos/wycats/thor/merges') { status 204 } """ When I successfully run `gcli merge perform wycats thor --base=master --head=cool_feature` Then the stdout should contain "204" Scenario: Merge conflict Given the GitHub API server: """ post('/repos/wycats/thor/merges') { body :message => "Merge conflict" status 409 } """ When I run `gcli merge perform wycats thor --base=master --head=cool_feature` Then the exit status should be 1 Then the stdout should contain "Merge conflict" And the stdout should contain "409"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
github_cli-0.6.2 | features/merging.feature |
github_cli-0.6.1 | features/merging.feature |
github_cli-0.6.0 | features/merging.feature |