Bug in xfn_test.rb?

瀏覽次數:0 次
跳到第一則未讀訊息

Steve Ivy

未讀,
2007年11月16日 上午10:42:242007/11/16
收件者:mofo
I've been trying to track down what I thought was a bug in some
changes to mofo that I'm working on, but I'm starting to think it's a
bug in the xfn tests, but I'm not certain.

After having this test in xfn_tests.rb fail:

> me = $xfn.me
> me.should.be.an.instance_of Array

I finally started looking at the fixture - xfn_test.html. There's
actually only one valid rel="me" in the test data:

> <dl class="valid">
> <dt>Identity</dt>
> <dd><a href="#me" rel="me">me</a> (exclusive of all other values)</dd>
> </dl>

There are a slew of invalid rel="me *" links later in the document,
but a recent change to mofo means that the valid rel="me" is the only
one found. So I think that testing that $xfn.me is an instance_of
Array is a bug.

Before I file this as a bug and submit a patch, can anyone confirm
that this, or am I missing something?

Thanks,

--Steve
回覆所有人
回覆作者
轉寄
0 則新訊息