diaspora/spec/workers/delete_post_from_service_spec.rb
Benjamin Neff fc6893d4fc
Remove facebook integration
Facebook removed the API and facebook integration is broken now, so lets
remove it.

closes #7874
2018-10-08 02:50:25 +02:00

13 lines
399 B
Ruby

# frozen_string_literal: true
describe Workers::DeletePostFromService do
it "calls service#delete_from_service with given opts" do
service = double
opts = {twitter_id: "23456"}
expect(service).to receive(:delete_from_service).with(opts)
allow(Service).to receive(:find_by_id).with("123").and_return(service)
Workers::DeletePostFromService.new.perform("123", opts)
end
end