Re: [rspec-users] Story for Rest

2008-06-20 Thread Pat Maddox
On Fri, Jun 20, 2008 at 9:32 AM, Olivier Dupuis <[EMAIL PROTECTED]> wrote: > Hello all, > > I'm trying to write a story for a rest resource. > > Here's what I have so far: > > Story "Get prices for specific book", %{ > As a client > I want to get a list of prices for a specific book > So that

Re: [rspec-users] Story for Rest

2008-06-20 Thread Jim Morris
Attached is a custom matcher using hpricot, (and the spec for it) it has a "have_xpath matcher for checking xml. I has an earlier one using rexml but hpricot is faster, you can read about that here http://blog.wolfman.com/articles/2008/01/02/xpath-matchers-for-rspec This new hpricot one i

[rspec-users] Story for Rest

2008-06-20 Thread Olivier Dupuis
Hello all, I'm trying to write a story for a rest resource. Here's what I have so far: Story "Get prices for specific book", %{ As a client I want to get a list of prices for a specific book So that I can use it on my own application }, :type => RailsStory do Scenario "Requesting /books