diaspora/features/support/poor_mans_webmock.rb
2016-08-15 23:43:24 +03:00

35 lines
720 B
Ruby

# 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