From 57de1ff991a864c8adf669e3919247c555e7a75a Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Sat, 4 Nov 2017 19:26:38 +0200 Subject: Fix API raw file content access for default branch (#2849) --- integrations/api_repo_raw_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'integrations/api_repo_raw_test.go') diff --git a/integrations/api_repo_raw_test.go b/integrations/api_repo_raw_test.go index 045e812210..7ef930ff3f 100644 --- a/integrations/api_repo_raw_test.go +++ b/integrations/api_repo_raw_test.go @@ -25,4 +25,7 @@ func TestAPIReposRaw(t *testing.T) { req := NewRequestf(t, "GET", "/api/v1/repos/%s/repo1/raw/%s/README.md", user.Name, ref) session.MakeRequest(t, req, http.StatusOK) } + // Test default branch + req := NewRequestf(t, "GET", "/api/v1/repos/%s/repo1/raw/README.md", user.Name) + session.MakeRequest(t, req, http.StatusOK) } -- cgit v1.2.3