Mislav Marohnić
28be560825
Ensure that the SHA for each test commit is unique
...
Since the test commits are empty and had identical commit messages, two
commits with the same parent could end up having identical SHAs. To
avoid that, generate a unique message for each empty commit.
2016-09-12 10:00:49 +02:00
Mislav Marohnić
3ab56f59b5
Fix assigning labels/assignees without the other
...
The GitHub API doesn't seem to like receiving `"assignees": null`.
Fixes #1240
2016-09-08 23:27:32 +02:00
Pascal Corpet
516773a65a
Make tests more robuts to various locales.
2016-02-15 09:29:42 +01:00
Mislav Marohnić
44a4761edf
Have `hub help hub` open hub man page
2016-01-22 22:47:17 +11:00
Mislav Marohnić
0bbe55b2f6
Merge remote-tracking branch 'origin/clone-usage'
2016-01-22 01:37:26 +11:00
Mislav Marohnić
b64cc38f43
Really reset current localization settings
...
Fixes #841
2015-09-28 00:00:26 +02:00
Mislav Marohnić
17a4df595a
Add scheme to HUB_TEST_HOST to avoid confusing Go error
2015-09-27 22:42:49 +02:00
Mislav Marohnić
1c6d4b8cf5
Make GITHUB_TOKEN have precedence over auth info from config
2015-09-26 10:41:53 +02:00
Mislav Marohnić
2b7df7cf81
Fix path to bash completion script when Xcode's git is used on Travis
2015-06-02 18:00:15 +02:00
Jingwen Owen Ou
7b55582ee8
Rename environment variables starting with `GH_` to `HUB_`
2015-01-20 21:59:04 -08:00
Mislav Marohnić
00b846af46
Backport cukes from 1.12-stable branch
2014-12-24 20:20:28 -08:00
Mislav Marohnić
a0835d446b
Merge pull request #743 from github/imporve_auth_process
...
Improve authentication process for v2.2.0
Fixes #728 , fixes #622
2014-12-24 20:03:53 -08:00
Mislav Marohnić
f94c31cc0f
Add cukes from https://github.com/github/hub/pull/738
2014-12-24 09:10:21 -08:00
Jingwen Owen Ou
356173d4a4
Back port cukes from v1.12.3
...
v2.2.0 doesn’t have the bug bc4b450b61
but back porting the cukes in case there’ll be regression for v2.2.0.
2014-12-24 09:02:18 -08:00
Owen Ou
c8ffd06ec3
Build Hub in a temporary dir for cukes
...
We need to run the packaging script for every platform using a Vagrant box. During the packaging step, cukes are run. However, the workspace is shared between host and the Vagrant box. Instead of cleaning up the built binary for each platform, build it into a temporary dir.
2014-10-15 16:18:28 -07:00
Mislav Marohnić
3294fe5560
Merge pull request #601 from github/no-curl
...
gh: Move away from using curl for patches and to GitHub API
2014-09-22 08:22:04 -07:00
Mislav Marohnić
cac0abae06
Have `am/apply` use API for getting patches instead of curl
...
This enables fetching patches from private repos that you have access to.
2014-09-21 00:30:10 -07:00
Jingwen Owen Ou
e08ecd2a5b
Remove toml related code in cukes
2014-09-16 09:59:43 -07:00
Jingwen Owen Ou
72d8220279
Revert cukes to test yaml config
2014-09-16 09:59:42 -07:00
Mislav Marohnić
3e79a4eb54
Fix `am/apply` cukes for scenarios with Gist via curl
2014-07-27 23:31:10 -07:00
Mislav Marohnić
5539949491
Merge remote-tracking branch 'origin/master' into cukes-master
2014-07-27 14:18:13 -07:00
Mislav Marohnić
186e44fbcb
Port `hub am` tests to cukes
2014-07-25 20:06:38 -07:00
Jingwen Owen Ou
827e1d67d7
Fix apply to recognize enterprise URLs
2014-07-25 14:52:24 -07:00
Jingwen Owen Ou
69a181bb87
Merge remote-tracking branch 'origin/master' into merge_master
...
Conflicts:
Gemfile.lock
features/browse.feature
2014-07-15 10:48:26 -07:00
Mislav Marohnić
8d759e5549
Bump Aruba & rspec-expectations
...
Also get rid of deprecation warnings for `should` and `failure_message_for_should`
2014-07-11 11:52:46 -07:00
Jingwen Owen Ou
04677d39f4
Merge remote-tracking branch 'origin/master' into merge_master
...
Conflicts:
features/pull_request.feature
2014-06-09 07:38:09 -07:00
Mislav Marohnić
ea0103fbc5
Fix "invalid byte sequence" errors in `pull-request`
...
If the user's `LANG` environment variable doesn't include "UTF-8", the
default external encoding in Ruby will be US-ASCII and as such, string
operations will fail dealing with pull request message or changelog that
contains non-ASCII characters.
This explicitly configures external encoding in hub to default to "UTF-8".
This applies to data over ARGV, `$stdin.read`, and reading files.
Fixes #566
2014-05-17 23:22:17 +07:00
Jingwen Owen Ou
50fce1d4e8
Rename GH_API_HOST to HUB_TEST_HOST
2014-04-01 10:21:37 -07:00
Jingwen Owen Ou
8648a58d1e
Use explicit binary dir for hub
2014-03-31 16:51:51 -07:00
Jingwen Owen Ou
b70cb9d7de
Rename Credential to Host
...
See comment https://github.com/github/hub/pull/515#discussion_r10915319
2014-03-25 17:01:00 -07:00
Jingwen Owen Ou
6416ced1f6
Clarify comments on sleeping in `type`
2014-03-25 16:49:29 -07:00
Jingwen Owen Ou
b2f2a1291a
Fix errors due to the toml gem doesn't dump array of table correctly
...
See https://github.com/jm/toml/issues/31
2014-03-24 16:39:43 -07:00
Jingwen Owen Ou
45409be4b1
Slow down the typing in cukes
2014-03-24 14:37:19 -07:00
Jingwen Owen Ou
67a22db2c9
Match the new array of table TOML format
2014-03-13 10:04:28 -07:00
Jingwen Owen Ou
3635b9c701
Fix cukes setup steps to use toml
2014-03-09 15:08:07 -07:00
Jingwen Owen Ou
146516d3c3
Format API response error
2014-02-23 13:34:10 -08:00
Jingwen Owen Ou
34c744c531
Rebuild hub when cucumber test starts
2014-02-21 10:19:40 -08:00
Mislav Marohnić
257c77f93e
Ensure that test server always responds with valid JSON
...
Even for blank responses, 404s and error pages. Otherwise Sawyer chokes.
2014-02-04 05:23:54 +01:00
Mislav Marohnić
faae74ca01
Make the cucumber test suite work against gh
...
gh should be compiled and named `./hub` in the project root
2014-02-04 05:23:54 +01:00
Mislav Marohnić
eb0c9be39e
Fix detecting git completions for bash & zsh for Boxen in tests
...
Fixes test failures with Boxen git 1.8.2-boxen1
2014-01-19 04:25:18 +01:00
Mislav Marohnić
1242b2f89a
Speed up hub execution in cukes by skipping RubyGems
2013-12-20 06:31:48 +01:00
Mislav Marohnić
f52c0a5061
Rewrite API auth to allow Enterprise email login
...
API authentication and persisting of credentials in Config was
convoluted and inflexible, and it wasn't possible to log in with
different credentials than your GitHub screen name. Since Enterprise
supports different authentication schemes, it's important to allow
emails for login as well (or any string for that matter) and retrieve
the user's screen name after successful authentication.
This also improves handling special characters in Basic Auth usernames
and passwords.
Fixes #407
2013-12-19 17:01:44 +01:00
Mislav Marohnić
68a43f9c51
Better timeouts in completion tests
...
- Increase timeouts to 3 seconds
- Implement waiting for completion in a way that it detects when pane
contents have changed instead of waiting for a fixed amount every time.
Hopefully fixes failures such as:
- https://travis-ci.org/github/hub/jobs/14369618
- https://travis-ci.org/github/hub/jobs/14369403
2013-11-22 15:50:38 +01:00
Mislav Marohnić
8dc5b2a6b5
Increase Aruba process exit timeout
...
Attempt to fix https://travis-ci.org/github/hub/jobs/13973842
2013-11-14 16:27:57 +01:00
Mislav Marohnić
ddc4ea3d3c
Increase timeout while waiting for shell prompt
...
Attempt to fix https://travis-ci.org/github/hub/jobs/13973437
2013-11-14 16:16:35 +01:00
Mislav Marohnić
d6ba91f7fa
Compensate for variable sorting in bash shell completion
...
Fixes https://travis-ci.org/github/hub/jobs/13920941
2013-11-14 16:05:57 +01:00
Mislav Marohnić
a766b98b72
Account for various locations of bash/zsh completion scripts
...
On different systems, bash/zsh completion scripts for git are installed
in various places. Account for that by searching the list of known paths.
In zsh mode, if a git-distributed zsh completion script can't be found
(e.g. on Ubuntu), ignore that and let it fall back to zsh-distributed
completion script.
2013-11-14 16:05:56 +01:00
Mislav Marohnić
1e0fe6566e
Run shell completion tests in an isolated tmux instance
...
Makes these tests work when executed outside of tmux as well.
Adds tmux 1.6 compatibility. The tests should now work with tmux 1.6-1.9
2013-11-14 16:05:11 +01:00
Mislav Marohnić
d073862634
Make bash completion script compatible with bash v3
...
Previus version was written for bash v4 and was causing syntax error
when used with older versions of bash that still ship with most systems.
References 3565094d30
Closes #359
2013-11-12 16:44:26 +01:00
Mislav Marohnić
e4add4c856
put all our chips to WEBrick
...
Hopefully solves random test failures:
https://travis-ci.org/github/hub/jobs/9030244
2013-07-13 05:15:26 +02:00