Sha256: 3d2e1ea5fbac1a9416ab57e4d3fa3fc72cf295437a0114daa45fa84c042e5ea6
Contents?: true
Size: 611 Bytes
Versions: 1
Compression:
Stored size: 611 Bytes
Contents
require 'test/unit' require "openid/service" class FakeYadis def uri return '' end end class OpenIDServiceEndpointTestCase < Test::Unit::TestCase def test_parse File.open('data/brian.xrds') do |f| xrds = XRDS.new(f.read) assert_not_nil(xrds) assert_equal(xrds.services.length, 1) service = xrds.services[0] service.yadis = FakeYadis.new openid_service = OpenID::OpenIDServiceEndpoint.from_endpoint(service) assert_not_nil(openid_service) assert_equal(openid_service.server_url, 'http://www.myopenid.com/server') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-openid-1.0.2 | test/service.rb |