Merge pull request #7003 from svbergerem/remove-services-swallowing-errors-specs
Remove specs about services swallowing exceptions
This commit is contained in:
commit
96489e3ce0
2 changed files with 0 additions and 14 deletions
|
|
@ -16,14 +16,6 @@ describe Services::Facebook, :type => :model do
|
|||
@service.post(@post)
|
||||
end
|
||||
|
||||
it 'swallows exception raised by facebook always being down' do
|
||||
skip "temporarily disabled to figure out while some requests are failing"
|
||||
|
||||
stub_request(:post,"https://graph.facebook.com/me/feed").
|
||||
to_raise(StandardError)
|
||||
@service.post(@post)
|
||||
end
|
||||
|
||||
it 'removes text formatting markdown from post text' do
|
||||
message = double(urls: [])
|
||||
expect(message).to receive(:plain_text_without_markdown).and_return("")
|
||||
|
|
|
|||
|
|
@ -25,12 +25,6 @@ describe Services::Twitter, :type => :model do
|
|||
expect(@post.tweet_id).to match "1234"
|
||||
end
|
||||
|
||||
it 'swallows exception raised by twitter always being down' do
|
||||
skip
|
||||
expect_any_instance_of(Twitter::REST::Client).to receive(:update).and_raise(StandardError)
|
||||
@service.post(@post)
|
||||
end
|
||||
|
||||
it 'should call build_twitter_post' do
|
||||
url = "foo"
|
||||
expect(@service).to receive(:build_twitter_post).with(@post, 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue