Skip to content

Commit

Permalink
Enable and fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bkcsoft committed Apr 10, 2017
1 parent 5f81701 commit 0b8ad58
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
20 changes: 10 additions & 10 deletions models/fixtures/commit_status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
id: 1
index: 1
repo_id: 1
state: pending
sha: 1234123412341234123412341234123412341234
state: "pending"
sha: "1234123412341234123412341234123412341234"
target_url: https://example.com/builds/
description: My awesome CI-service
context: ci/awesomeness
Expand All @@ -13,8 +13,8 @@
id: 2
index: 2
repo_id: 1
state: warning
sha: 1234123412341234123412341234123412341234
state: "warning"
sha: "1234123412341234123412341234123412341234"
target_url: https://example.com/converage/
description: My awesome Coverage service
context: cov/awesomeness
Expand All @@ -24,8 +24,8 @@
id: 3
index: 3
repo_id: 1
state: success
sha: 1234123412341234123412341234123412341234
state: "success"
sha: "1234123412341234123412341234123412341234"
target_url: https://example.com/converage/
description: My awesome Coverage service
context: cov/awesomeness
Expand All @@ -35,8 +35,8 @@
id: 4
index: 4
repo_id: 1
state: failed
sha: 1234123412341234123412341234123412341234
state: "failure"
sha: "1234123412341234123412341234123412341234"
target_url: https://example.com/builds/
description: My awesome CI-service
context: ci/awesomeness
Expand All @@ -46,8 +46,8 @@
id: 5
index: 5
repo_id: 1
state: error
sha: 1234123412341234123412341234123412341234
state: "error"
sha: "1234123412341234123412341234123412341234"
target_url: https://example.com/builds/
description: My awesome deploy service
context: deploy/awesomeness
Expand Down
4 changes: 1 addition & 3 deletions models/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

// +build disabled

package models

import (
Expand Down Expand Up @@ -35,7 +33,7 @@ func TestGetCommitStatuses(t *testing.T) {
assert.Equal(t, statuses[3].Context, "ci/awesomeness")
assert.Equal(t, statuses[3].State, CommitStatusFailure)

assert.Equal(t, statuses[4].Context, "ci/awesomeness")
assert.Equal(t, statuses[4].Context, "deploy/awesomeness")
assert.Equal(t, statuses[4].State, CommitStatusError)
}
}

0 comments on commit 0b8ad58

Please sign in to comment.