1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

fixed failure test for delete_agent_token

This commit is contained in:
Thomas Cate 2013-08-29 12:38:12 -05:00
parent 1c3463ca8d
commit 2e08d22b4e
2 changed files with 5 additions and 1 deletions

View file

@ -14,6 +14,11 @@ module Fog
class Mock
def delete_agent_token(options = {})
if options == -1
raise Fog::Rackspace::Monitoring::NotFound
end
response = Excon::Response.new
response.status = 201
response.body = ""

View file

@ -30,7 +30,6 @@ Shindo.tests('Fog::Rackspace::Monitoring | agent_tests', ['rackspace','rackspace
account.create_agent_token(-1)
end
tests('#fail to delete agent token(-1)').raises(Fog::Rackspace::Monitoring::NotFound) do
pending if Fog.mocking?
account.delete_agent_token(-1)
end
end