Fix test failure on Ruby 1.8 due to hash order

Hashes are unordered in Ruby 1.8, so we can't check for this in debug
output: `{"name": "dotfiles", "private": false}`. The keys might appear
in different order.

A proper fix would be to normalize keys order before output assertion in
tests, but I can't be bothered to make that. Here I'm simply avoiding to
make any assertions for that line.

https://travis-ci.org/github/hub/jobs/19817554
This commit is contained in:
Mislav Marohnić 2014-02-28 18:13:46 +01:00
Родитель c54a78953f
Коммит 95129ee632
1 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -141,15 +141,19 @@ Feature: hub create
"""
And $HUB_VERBOSE is "on"
When I successfully run `hub create`
Then the stderr should contain exactly:
Then the stderr should contain:
"""
> GET https://api.github.com/repos/mislav/dotfiles
> Authorization: token [REDACTED]
< HTTP 404
"""
And the stderr should contain:
"""
> POST https://api.github.com/user/repos
> Authorization: token [REDACTED]
{"name": "dotfiles", "private": false}
"""
And the stderr should contain:
"""
< HTTP 200
< Location: http://disney.com
{"full_name":"mislav/dotfiles"}\n