Skip to content

Commit

Permalink
update the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Apr 28, 2017
1 parent 88026a4 commit 6477e37
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion integrations/issue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
func TestNoLoginViewIssue(t *testing.T) {
assert.NoError(t, models.LoadFixtures())

req, err := http.NewRequest("GET", "/user1/repo1/issues/1", nil)
req, err := http.NewRequest("GET", "/user2/repo1/issues/1", nil)
assert.NoError(t, err)
resp := MakeRequest(req)
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)
Expand Down
15 changes: 15 additions & 0 deletions models/fixtures/repo_unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-
id: 1
repo_id: 1
type: 1
index: 0
config: "{}"
created_unix: 946684810

-
id: 2
repo_id: 1
type: 2
index: 0
config: "{}"
created_unix: 946684810

0 comments on commit 6477e37

Please sign in to comment.