Tumblr service swallows exceptions raised by tumblbeasts.
This commit is contained in:
parent
9dce7eab5d
commit
243699c8e9
2 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue