diaspora/features/support/poor_mans_webmock.rb
2017-09-17 19:29:15 +02:00

37 lines
751 B
Ruby

# frozen_string_literal: true
# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
module Workers
class PublishToHub < Base
def perform(*_args)
# don't publish to pubsubhubbub in cucumber
end
end
class SendPrivate < Base
def perform(*_args)
# don't federate in cucumber
end
end
class SendPublic < Base
def perform(*_args)
# don't federate in cucumber
end
end
class PostToService < Base
def perform(*_args)
# don't post to services in cucumber
end
end
class FetchWebfinger < Base
def perform(*_args)
# don't do real discovery in cucumber
end
end
end