提交 416d5c0d 编写于 作者: M Mislav Marohnić

remove obsolete ci-status unit tests

The cukes cover the same funtionality
上级 fae048bb
Feature: hub ci-status
Background:
Given I am in "pencilbox" git repo
Given the "origin" remote has url "git://github.com/michiels/pencilbox.git"
Given I am in "git://github.com/michiels/pencilbox.git" git repo
And I am "michiels" on github.com with OAuth token "OTOKEN"
Scenario: Fetch commit SHA
......
......@@ -257,32 +257,6 @@ class HubTest < Test::Unit::TestCase
"push origin,staging master new-feature"
end
def test_ci_status_use_last_sha
stub_command_output "rev-parse -q HEAD", "head_sha"
stub_command_output "rev-parse -q head_sha", "head_sha"
stub_request(:get, "https://api.github.com/repos/defunkt/hub/statuses/head_sha").to_return(:body => Hub::JSON.generate([ { :state => "success" } ]))
expected = "success\n"
assert_output expected, "ci-status"
end
def test_ci_status_with_sha
stub_command_output "rev-parse -q sha", "sha"
stub_request(:get, "https://api.github.com/repos/defunkt/hub/statuses/sha").to_return(:body => Hub::JSON.generate([ { :state => "failure" } ]))
expected = "failure\n"
assert_output expected, "ci-status sha"
end
def test_ci_status_without_github_project
stub_repo_url('gh:singingwolfboy/sekrit.git')
stub_branch('refs/heads/feature')
stub_tracking('feature', 'origin', 'feature')
expected = "Aborted: the origin remote doesn't point to a GitHub repository.\n"
assert_output expected, "ci-status"
end
def test_pullrequest_from_branch_tracking_local
stub_branch('refs/heads/feature')
stub_tracking('feature', 'refs/heads/master')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册