@@ -123,7 +123,7 @@ func TestRenameRun(t *testing.T) {
123123 httpStubs : func (reg * httpmock.Registry ) {
124124 reg .Register (
125125 httpmock .REST ("PATCH" , "repos/OWNER/REPO" ),
126- httpmock .StatusStringResponse (204 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
126+ httpmock .StatusStringResponse (200 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
127127 },
128128 execStubs : func (cs * run.CommandStubber ) {
129129 cs .Register (`git remote set-url origin https://github.com/OWNER/NEW_REPO.git` , 0 , "" )
@@ -143,7 +143,7 @@ func TestRenameRun(t *testing.T) {
143143 httpStubs : func (reg * httpmock.Registry ) {
144144 reg .Register (
145145 httpmock .REST ("PATCH" , "repos/OWNER/REPO" ),
146- httpmock .StatusStringResponse (204 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
146+ httpmock .StatusStringResponse (200 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
147147 },
148148 tty : true ,
149149 },
@@ -156,7 +156,7 @@ func TestRenameRun(t *testing.T) {
156156 httpStubs : func (reg * httpmock.Registry ) {
157157 reg .Register (
158158 httpmock .REST ("PATCH" , "repos/OWNER/REPO" ),
159- httpmock .StatusStringResponse (204 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
159+ httpmock .StatusStringResponse (200 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
160160 },
161161 execStubs : func (cs * run.CommandStubber ) {
162162 cs .Register (`git remote set-url origin https://github.com/OWNER/NEW_REPO.git` , 0 , "" )
@@ -171,7 +171,7 @@ func TestRenameRun(t *testing.T) {
171171 httpStubs : func (reg * httpmock.Registry ) {
172172 reg .Register (
173173 httpmock .REST ("PATCH" , "repos/OWNER/REPO" ),
174- httpmock .StatusStringResponse (204 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
174+ httpmock .StatusStringResponse (200 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
175175 },
176176 execStubs : func (cs * run.CommandStubber ) {
177177 cs .Register (`git remote set-url origin https://github.com/OWNER/NEW_REPO.git` , 0 , "" )
@@ -192,7 +192,7 @@ func TestRenameRun(t *testing.T) {
192192 httpStubs : func (reg * httpmock.Registry ) {
193193 reg .Register (
194194 httpmock .REST ("PATCH" , "repos/OWNER/REPO" ),
195- httpmock .StatusStringResponse (204 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
195+ httpmock .StatusStringResponse (200 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
196196 },
197197 execStubs : func (cs * run.CommandStubber ) {
198198 cs .Register (`git remote set-url origin https://github.com/OWNER/NEW_REPO.git` , 0 , "" )
0 commit comments