@@ -122,7 +122,7 @@ func TestRenameRun(t *testing.T) {
122122 httpStubs : func (reg * httpmock.Registry ) {
123123 reg .Register (
124124 httpmock .REST ("PATCH" , "repos/OWNER/REPO" ),
125- httpmock .StatusStringResponse (204 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
125+ httpmock .StatusStringResponse (200 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
126126 },
127127 execStubs : func (cs * run.CommandStubber ) {
128128 cs .Register (`git remote set-url origin https://github.com/OWNER/NEW_REPO.git` , 0 , "" )
@@ -141,7 +141,7 @@ func TestRenameRun(t *testing.T) {
141141 httpStubs : func (reg * httpmock.Registry ) {
142142 reg .Register (
143143 httpmock .REST ("PATCH" , "repos/OWNER/REPO" ),
144- httpmock .StatusStringResponse (204 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
144+ httpmock .StatusStringResponse (200 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
145145 },
146146 tty : true ,
147147 },
@@ -154,7 +154,7 @@ func TestRenameRun(t *testing.T) {
154154 httpStubs : func (reg * httpmock.Registry ) {
155155 reg .Register (
156156 httpmock .REST ("PATCH" , "repos/OWNER/REPO" ),
157- httpmock .StatusStringResponse (204 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
157+ httpmock .StatusStringResponse (200 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
158158 },
159159 execStubs : func (cs * run.CommandStubber ) {
160160 cs .Register (`git remote set-url origin https://github.com/OWNER/NEW_REPO.git` , 0 , "" )
@@ -169,7 +169,7 @@ func TestRenameRun(t *testing.T) {
169169 httpStubs : func (reg * httpmock.Registry ) {
170170 reg .Register (
171171 httpmock .REST ("PATCH" , "repos/OWNER/REPO" ),
172- httpmock .StatusStringResponse (204 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
172+ httpmock .StatusStringResponse (200 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
173173 },
174174 execStubs : func (cs * run.CommandStubber ) {
175175 cs .Register (`git remote set-url origin https://github.com/OWNER/NEW_REPO.git` , 0 , "" )
@@ -189,7 +189,7 @@ func TestRenameRun(t *testing.T) {
189189 httpStubs : func (reg * httpmock.Registry ) {
190190 reg .Register (
191191 httpmock .REST ("PATCH" , "repos/OWNER/REPO" ),
192- httpmock .StatusStringResponse (204 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
192+ httpmock .StatusStringResponse (200 , `{"name":"NEW_REPO","owner":{"login":"OWNER"}}` ))
193193 },
194194 execStubs : func (cs * run.CommandStubber ) {
195195 cs .Register (`git remote set-url origin https://github.com/OWNER/NEW_REPO.git` , 0 , "" )
0 commit comments