File: test_yadis.rb

package info (click to toggle)
libyadis-ruby 0.3.4-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze
  • size: 440 kB
  • ctags: 372
  • sloc: ruby: 2,122; sh: 12; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 484 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'test/unit'
require 'yadis'

class YADISTestCase < Test::Unit::TestCase

  def test_yadis_lid
    # need an xrds with lid stuff in it for this part
  end

  def test_priority
    xrds = XRDS.parse(File.open('data/brian_priority.xrds').read)    
    assert_equal(2, xrds.services.length)
    assert_equal('http://www.myopenid.com/server', xrds.services[0].uri)
    assert_equal('http://www.schtuff.com/?action=openid_server',
                 xrds.services[1].uri)
  end


end