Sha256: 7941c96390b0fc1a2a99f0f44c6909be23dfcf85a0bc52d4fa15fd24ea73c908

Contents?: true

Size: 612 Bytes

Versions: 43

Compression:

Stored size: 612 Bytes

Contents

class << Proudhon::Finger
  def fetch id
    obj = Object.new
    def obj.links
      { updates_from: 'feed' }
    end

    def obj.magic_key
      OpenSSL::PKey::RSA.generate 256
    end

    obj
  end
end

class << Proudhon::Atom
  def from_uri uri
    obj = Object.new

    def obj.subscribe(callback)
      true
    end

    obj
  end
end

RemoteSubject.class_eval do
  def build_webfinger_info
    {
      aliases: [ "http://example.com/#{ webfinger_id.split('@').first }" ]
    }

  end
end

Factory.define :remote_subject do |s|
  s.sequence(:webfinger_id) { |n| "remote_subject-#{ n }@example.com" }
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
social_stream-2.0.0.beta3 ostatus/spec/factories/remote_subject.rb
social_stream-ostatus-2.0.0.beta3 spec/factories/remote_subject.rb
social_stream-2.0.0.beta2 ostatus/spec/factories/remote_subject.rb
social_stream-ostatus-2.0.0.beta2 spec/factories/remote_subject.rb
social_stream-2.0.0.beta1 ostatus/spec/factories/remote_subject.rb
social_stream-ostatus-2.0.0.beta1 spec/factories/remote_subject.rb
social_stream-1.1.7 ostatus/spec/factories/remote_subject.rb
social_stream-1.1.6 ostatus/spec/factories/remote_subject.rb
social_stream-1.1.5 ostatus/spec/factories/remote_subject.rb
social_stream-1.1.4 ostatus/spec/factories/remote_subject.rb
social_stream-1.1.3 ostatus/spec/factories/remote_subject.rb
social_stream-1.1.2 ostatus/spec/factories/remote_subject.rb
social_stream-1.1.1 ostatus/spec/factories/remote_subject.rb
social_stream-1.1.0 ostatus/spec/factories/remote_subject.rb
social_stream-ostatus-1.1.0 spec/factories/remote_subject.rb
social_stream-1.0.1 ostatus/spec/factories/remote_subject.rb
social_stream-ostatus-1.0.0 spec/factories/remote_subject.rb
social_stream-0.30.2 ostatus/spec/factories/remote_subject.rb
social_stream-0.30.1 ostatus/spec/factories/remote_subject.rb
social_stream-0.30.0 ostatus/spec/factories/remote_subject.rb