[rspec-users] Webrat visits fails, but works in browser

2008-07-25 Thread Christopher Bailey
I'm wondering if folks have suggestions for how I can debug the following problem. I have some RSpec Stories that use WebRat, and do a "visits hotels_path" type of thing. It is failing, yet the page works fine in the browser. I'm trying to figure out how to go about looking into why Webrat fail

Re: [rspec-users] Problems with mock assigned to a constant

2008-07-25 Thread David Chelimsky
On Fri, Jul 25, 2008 at 12:34 AM, Matt Lins <[EMAIL PROTECTED]> wrote: > On Fri, Jul 25, 2008 at 12:25 AM, Scott Taylor > <[EMAIL PROTECTED]> wrote: >> >> On Jul 25, 2008, at 1:15 AM, Matt Lins wrote: >> >>> On Thu, Jul 24, 2008 at 11:47 PM, Scott Taylor >>> <[EMAIL PROTECTED]> wrote: On

Re: [rspec-users] HTML Story Formatter

2008-07-25 Thread Joseph Wilk
To handle this I wrote a patch which delivered the styles in the html formatters output. In much the same way as the html spec formatter does. I know Aslak Hellesøy has been looking at the editable html stories. Is it acceptable to have stories have styles embedded in the html formatter until A

Re: [rspec-users] Problems with mock assigned to a constant

2008-07-25 Thread David Chelimsky
On Fri, Jul 25, 2008 at 7:57 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Fri, Jul 25, 2008 at 12:34 AM, Matt Lins <[EMAIL PROTECTED]> wrote: >> On Fri, Jul 25, 2008 at 12:25 AM, Scott Taylor >> <[EMAIL PROTECTED]> wrote: >>> >>> On Jul 25, 2008, at 1:15 AM, Matt Lins wrote: >>> On Thu,

Re: [rspec-users] HTML Story Formatter

2008-07-25 Thread David Chelimsky
On Fri, Jul 25, 2008 at 8:08 AM, Joseph Wilk <[EMAIL PROTECTED]> wrote: > To handle this I wrote a patch which delivered the styles in the html > formatters output. In much the same way as the html spec formatter does. > > I know Aslak Hellesøy has been looking at the editable html stories. > > Is

Re: [rspec-users] Webrat visits fails, but works in browser

2008-07-25 Thread Bart Zonneveld
On 25 jul 2008, at 10:11, Christopher Bailey wrote: I'm wondering if folks have suggestions for how I can debug the following problem. I have some RSpec Stories that use WebRat, and do a "visits hotels_path" type of thing. It is failing, yet the page works fine in the browser. I'm trying to

Re: [rspec-users] Problems with mock assigned to a constant

2008-07-25 Thread Matt Lins
Yes, gist is great! Thank you very much for taking the time to look at this. I like your suggestions very much and will use them. At this point I'm just messing around, but I don't understand why this doesn't work. One more bad implementation if you have time: http://gist.github.com/2372 I'm

Re: [rspec-users] Problems with mock assigned to a constant

2008-07-25 Thread David Chelimsky
> On Fri, Jul 25, 2008 at 8:15 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: >> On Fri, Jul 25, 2008 at 7:57 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: >>> On Fri, Jul 25, 2008 at 12:34 AM, Matt Lins <[EMAIL PROTECTED]> wrote: On Fri, Jul 25, 2008 at 12:25 AM, Scott Taylor <[EMAIL PR

Re: [rspec-users] Problems with mock assigned to a constant

2008-07-25 Thread Matt Lins
On Fri, Jul 25, 2008 at 8:40 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: >> On Fri, Jul 25, 2008 at 8:15 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: >>> On Fri, Jul 25, 2008 at 7:57 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: On Fri, Jul 25, 2008 at 12:34 AM, Matt Lins <[EMAIL PROTECT

Re: [rspec-users] Problems with mock assigned to a constant

2008-07-25 Thread David Chelimsky
On Fri, Jul 25, 2008 at 8:44 AM, Matt Lins <[EMAIL PROTECTED]> wrote: > On Fri, Jul 25, 2008 at 8:40 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: >>> On Fri, Jul 25, 2008 at 8:15 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: On Fri, Jul 25, 2008 at 7:57 AM, David Chelimsky <[EMAIL PROTECTED

Re: [rspec-users] Problems with mock assigned to a constant

2008-07-25 Thread David Chelimsky
On Fri, Jul 25, 2008 at 8:49 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Fri, Jul 25, 2008 at 8:44 AM, Matt Lins <[EMAIL PROTECTED]> wrote: >> On Fri, Jul 25, 2008 at 8:40 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: On Fri, Jul 25, 2008 at 8:15 AM, David Chelimsky <[EMAIL PROTECTED]

Re: [rspec-users] Problems with mock assigned to a constant

2008-07-25 Thread Matt Lins
Fair enough. Thanks. On Fri, Jul 25, 2008 at 8:53 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Fri, Jul 25, 2008 at 8:49 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: >> On Fri, Jul 25, 2008 at 8:44 AM, Matt Lins <[EMAIL PROTECTED]> wrote: >>> On Fri, Jul 25, 2008 at 8:40 AM, David Chelims

Re: [rspec-users] Webrat visits fails, but works in browser

2008-07-25 Thread Christopher Bailey
Ok, thanks. I have figured it out of course by now :) It was an issue with RedCloth. On Fri, Jul 25, 2008 at 5:56 AM, Bart Zonneveld <[EMAIL PROTECTED]> wrote: > > On 25 jul 2008, at 10:11, Christopher Bailey wrote: > >> I'm wondering if folks have suggestions for how I can debug the >> followin

Re: [rspec-users] Problems with mock assigned to a constant

2008-07-25 Thread Pat Maddox
On Fri, Jul 25, 2008 at 9:30 AM, Matt Lins <[EMAIL PROTECTED]> wrote: > Yes, gist is great! > > Thank you very much for taking the time to look at this. I like your > suggestions very much and will use them. At this point I'm just > messing around, but I don't understand why this doesn't work. >

Re: [rspec-users] Problems with mock assigned to a constant

2008-07-25 Thread Matt Lins
Yah, I looked around. I came out with a better understanding of rSpec's mocking internals, but no answer to the problem. I don't need it. I'll probably end up using FlexMock or Mocha for future projects anyway. I'd be happy to file a ticket if you think it's worthy of one. It was my first imple