Sha256: d734077b38fdf7bff1cbecc8a2a42d6b1f081fd3cb5dcfde1efb0a94ef487f04
Contents?: true
Size: 1.73 KB
Versions: 6
Compression:
Stored size: 1.73 KB
Contents
Feature: gcli hook @ci-run Scenario: Available commands When I run `gcli hook` Then the exit status should be 0 And the output should contain "hook create" And the output should contain "hook delete" And the output should contain "hook edit" And the output should contain "hook get" And the output should contain "hook list" And the output should contain "hook test" Scenario: List hooks Given the GitHub API server: """ get('/repos/wycats/thor/hooks') { status 200 } """ When I run `gcli hook ls wycats thor` Then the exit status should be 0 Scenario: Get hook Given the GitHub API server: """ get('/repos/wycats/thor/hooks/1') { status 200 } """ When I run `gcli hook get wycats thor 1` Then the exit status should be 0 Scenario: Create hook Given the GitHub API server: """ post('/repos/wycats/thor/hooks') { status 200 } """ When I run `gcli hook create wycats thor --name=web --config="url:http://example.com/webhook" --events=status` Then the exit status should be 0 Scenario: Edit hook Given the GitHub API server: """ patch('/repos/wycats/thor/hooks/1') { status 200 } """ When I run `gcli hook edit wycats thor 1 --params=name:web config:{}` Then the exit status should be 0 Scenario: Test hook Given the GitHub API server: """ post('/repos/wycats/thor/hooks/1/test') { status 200 } """ When I run `gcli hook test wycats thor 1` Then the exit status should be 0 Scenario: Delete hook Given the GitHub API server: """ delete('/repos/wycats/thor/hooks/1') { status 200 } """ When I run `gcli hook del wycats thor 1` Then the exit status should be 0
Version data entries
6 entries across 6 versions & 1 rubygems