spec/command/trunk/remove_owner_spec.rb in cocoapods-trunk-1.2.0 vs spec/command/trunk/remove_owner_spec.rb in cocoapods-trunk-1.3.0
- old
+ new
@@ -37,10 +37,10 @@
end
end
it 'should successfully remove an owner' do
url = 'https://trunk.cocoapods.org/api/v1/pods/QueryKit/owners/kyle@cocoapods.org'
- WebMock::API.stub_request(:delete, url).
+ stub_request(:delete, url).
with(:headers => { 'Authorization' => 'Token 527d11fe429f3426cb8dbeba183a0d80' }).
to_return(:status => 200, :body => '[]', :headers => {})
command = Command.parse(%w( trunk remove-owner QueryKit kyle@cocoapods.org ))
command.stubs(:token).returns('527d11fe429f3426cb8dbeba183a0d80')