It's actually a real bitch! :) I extracted an HTTParty service I'm running in a few apps into a gem, and now find that I can't stub on it in cucumber like I want, so I guess, on investigation into it, that the mock service approach wouldn't really apply here. Probably a bug in the framework, as I'm on the latest betas for Rails and RSpec. I was on the verge of making some very bad decisions to get it working (like using some sort of drop-in construct for the service that stored expectations & recorded calls), so for the moment I'm taking a deep breath, counting to ten, and just working around it in the knowledge that it is very completely covered in RSpec. I know not having the full stack tested fully in Cucumber is going to be gnawing at my conscience, though!
On 9 June 2010 18:23, Ashley Moran <[email protected]> wrote: > > On 9 Jun 2010, at 11:20 AM, doug livesey wrote: > > > *Really* wish I'd remembered this advice on cuke-ing services before I'd > started in on this one! :) > > > Lol, what's cropped up since Doug? > > Funnily enough though, I just rewrote that Postmark app in Sinatra this > morning, as you were sending your email! It responds to DELETE now :) > > Ash > > -- > http://www.patchspace.co.uk/ > http://www.linkedin.com/in/ashleymoran > > > > -- > You received this message because you are subscribed to the Google Groups > "NWRUG" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nwrug-members%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nwrug-members?hl=en. > > -- You received this message because you are subscribed to the Google Groups "NWRUG" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nwrug-members?hl=en.
