Tumblr service swallows exceptions raised by tumblbeasts.

This commit is contained in:
Sarah Mei 2011-06-04 20:45:09 -07:00
parent 9dce7eab5d
commit 243699c8e9
2 changed files with 2 additions and 4 deletions

View file

@ -24,7 +24,7 @@ class Services::Tumblr < Service
begin
resp = access.post('http://tumblr.com/api/write', body)
resp
rescue
rescue Exception
nil
end
end

View file

@ -15,12 +15,10 @@ describe Services::Tumblr do
@service.post(@post)
end
it 'swallows exception raised by tumblr not being webscale' do
pending "meh"
it 'swallows exception raised by tumblr not being webscale' do
OAuth::AccessToken.any_instance.should_receive(:post).and_raise
@service.post(@post)
end
end
end