Sha256: 2902a3f67c421d84bb74dc1692f7993f31d5b15293b779dae169dbe85d255760
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 KB
Contents
@settings Feature: Global Settings As a developer who wants to set global settings for interaction with GitHub API When I use interface provided by GHC I have ability to create configuration file Scenario: Installs Default Configuration File When I run `ghc init` interactively And I type "token" Then the output should contain: """ Writing new configuration file to /tmp/fakehome/.githubrc """ And a file named "/tmp/fakehome/.githubrc" should exist And the file "/tmp/fakehome/.githubrc" should contain "oauth_token: token" Scenario: Configuration File Exists Given an empty file named "/tmp/fakehome/.githubrc" When I run `ghc init` Then the output should contain: """ Not overwritting existing config file /tmp/fakehome/.githubrc, use --force to override. """ Scenario: Force Config File Override Given an empty file named "/tmp/fakehome/.githubrc" When I run `ghc init --force` interactively And I type "token" Then the output should contain: """ Please specify your GitHub Authentication Token (register on github.com to get it): """ Scenario: Installs Custom Configuration File When I run `ghc init myname` interactively And I type "token" Then a file named "/tmp/fakehome/myname" should exist And the output should contain: """ Writing new configuration file to /tmp/fakehome/myname """ Scenario: Check for presence of yaml attribute
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
github_cli-0.1.2 | features/settings.feature |
github_cli-0.1.1 | features/settings.feature |