[rspec-users] Fixing "expected success? to return true, got false"
Mark A. Richman
mark at markrichman.com
Wed Jan 7 13:05:56 EST 2009
Steve,
That's really useful! Thank you.
- Mark
On Wed, Jan 7, 2009 at 12:40 PM, Stephen Eley <sfeley at gmail.com> wrote:
> On Wed, Jan 7, 2009 at 6:36 AM, Matt Wynne <matt at mattwynne.net> wrote:
> >
> > I would start your debugging by adding a puts statement between lines 26
> and
> > 27 to show more of the (unexpected) response. Looking at response.code or
> > response.body should give you some clues.
>
> You can also check the logfiles. I often keep two terminals running
> in the background whenever I'm doing BDD coding; one's running
> autospec, and the other one has 'tail -f log/test.log'. I don't have
> to look at that all the time, but when something breaks and I can't
> figure out why it's a huge time saver. I also found this post of Ben
> Mabey's to be very useful for figuring out which chunk of log goes
> with which spec:
>
>
> http://www.benmabey.com/2008/07/04/global-setup-in-rspec-or-how-to-add-logging-for-specs/
>
>
>
> --
> Have Fun,
> Steve Eley (sfeley at gmail.com)
> ESCAPE POD - The Science Fiction Podcast Magazine
> http://www.escapepod.org
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090107/5e7882e6/attachment.html>
More information about the rspec-users
mailing list