New article

yep ...

Normally I wouldn't be pedantic, but somehow I feel unit testing documentation should be 100% tested

···

-----Original Message-----
From: Ghislain Mary [mailto:nospam@lunacymaze.org]
Sent: Wednesday, 8 June 2005 5:10 PM
To: ruby-talk ML
Subject: Re: new article

Neville Burnell a écrit :

Hi,

I'm just reading the PDF and on pg 13 you flesh out the echo() method,
but the def doesn't include any parameters, in particular it should [I
think] be:

Def echo(url)

So the echo method as documented should fail, correct ?

Nev

In fact, you don't need the url parameter. But you're right there's an error in this example. You should read:

response = http.get("/service/echo?api_key=#{@key}")

instead of

response = http.get("/service/#{url}")

And in the test, you just need:

connection.echo()

instead of

connection.echo("/service/echo")

HTH

Ghislain