diff --git a/command/gist_test.go b/command/gist_test.go index 0285d5678..eeaac4701 100644 --- a/command/gist_test.go +++ b/command/gist_test.go @@ -5,9 +5,16 @@ import ( "encoding/json" "io/ioutil" "testing" + + "github.com/cli/cli/context" ) func TestGistCreate(t *testing.T) { + ctx := context.NewBlank() + initContext = func() context.Context { + return ctx + } + http := initFakeHTTP() http.StubResponse(200, bytes.NewBufferString(`